PS: Для тех кто не в курсе по ключам к этой утилите - под катом есть основные и дополнительные:
читать дальше »
--no-tls-verify
--tls-ca-path
-f,
--file use configuration file instead of ~/.sendxmpprc
-u,
--username use instead of the one in the configuration file
-p,
--password use instead of the one in the configuration file
-j,
--jserver use jabber server instead of the one in the configuration file. Note that you can add : to use a non-default port, ie.
-j myjabber.org:1234
-r,
--resource use resource for the sender [default: 'sendxmpp']; when sending to a chatroom, this determines the 'alias'
-t,
--tls connect securely, using TLS
-c,
--chatroom send the message to a chatroom
-s,
--subject set the subject for the message to [default: '']; when sending to a chatroom, this will set the subject for the chatroom
-m,
--message read the message from (a file) instead of stdin
-i,
--interactive work in interactive mode, reading lines from stdin and sending the one-at-time
-v,
--verbose give verbose output about what is happening
-h,
--help,
--usage show a 'Usage' message
-d,
--debug show debugging info while running.
WARNING: This will include passwords etc. so be careful with the output!
По ссылкам подробнее все.
http://pwet.fr/man/linux/commandes/sendxmpp
http://sendxmpp.hostname.sk/
---------------------------------------------------------------------------------------------
По теме:
Я не могу победить его снова.
Я использую яндекс почта для домена. (
https://pdd.yandex.ru/
)
Пишу команду:
echo blabla | sendxmpp.exe -u "
admin@2xxx.ru" -p "werwerwe23" -j "xmpp.yandex.ru:5222" [url=mailto:
bla-bla@jabber.ru@jabber.ru]
bla-bla@jabber.ru[/url]
и получаю отбой...
Сould not connect to 'xmpp.yandex.ru' on port 5222:
или
Сould not connect to 'domain-xmpp.ya.ru' on port 5222:
Джаббер клиент обычный нормально при этом авторизуется.
Помню, что есть особенность, с ненадобностью включения SASL аутефикации.
http://help.yandex.ru/pdd/chat.xml
Вот лог отладки:
читать дальше »
XML::Stream: new: hostname = (Windows)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x3ed38))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x3ed58))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x3edb288))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x3edbd10))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x3ed70))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x3e378))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x3e150))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x3edb390))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x3ed28))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x3ed80))
XMPP::Conn: xmppCallbackInit: stop
sendxmpp: ssl_verify: 0
sendxmpp: tls_ca_path:
XMPP::Conn: Connect: host(xmpp.yandex.ru:5222) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
XML::Stream: Connect: Got a connection
XML::Stream: Send: ()
XML::Stream: Read: buff()
XML::Stream: _handle_root: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(stream:stream) att( xmlns:str
eam
http://etherx.jabber.org/streams
xmlns jabber:client from ya.ru id 7593108 xml:lang en )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(stream:error) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(host-unknown) att( x
mlns urn:ietf:params:xml:ns:xmpp-streams )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(host-unknown)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(stream:error)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(stream:stream)
XML::Stream: Node: _handle_close: check( -1 )
XML::Stream: Node: _handle_close: rootTag(stream:stream) tag(stream:stream)
Could not connect to 'xmpp.yandex.ru' on port 5222: