[ejabberd] anyone here managed to do s2s to gmail.com domain using TLS ?

Chris Maciejewski chris at wima.co.uk
Tue Nov 2 18:04:23 MSK 2010


Yes, I managed to do that by adding SRV record to the DNS server used
by my ejabberd box.

Used dnsmasqd to do it, by adding this line to /etc/dnsmasql.conf:

srv-host=_xmpp-server._tcp.gmail.com,talk.google.com,5222

This way ejabberd will resolved gmail.com to talk.google.com port 2222
which is where Google hosts TLS enabled XMPP service.

...However now I am facing different problem. ejabber is throwing
"invalid namespace" error, see below:

=INFO REPORT==== 2010-11-02 14:20:02 ===
I(<0.360.0>:ejabberd_s2s_out:1158) : Trying to open s2s connection:
xmpp.mydomain.com -> gmail.com with TLS=true

=INFO REPORT==== 2010-11-02 14:20:02 ===
I(<0.360.0>:ejabberd_s2s_out:306) : Closing s2s connection:
xmpp.mydomain.com -> gmail.com (invalid namespace).
Namespace provided: "jabber:client"
Namespace expected: "jabber:server"
xmlns:db provided: []
All attributes: [{"from","gmail.com"},
                 {"id","E9F941E425357751"},
                 {"version","1.0"},
                 {"xmlns:stream","http://etherx.jabber.org/streams"},
                 {"xmlns","jabber:client"}]

The actual XML data on the wire:

T 10.10.10.51:52953 -> 209.85.229.125:5222 [AP]
<?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:server'
xmlns:db='jabber:server:dialback' to='gmail.com' version='1.0'>
##
T 209.85.229.125:5222 -> 10.10.10.51:52953 [AP]
<stream:stream from="gmail.com" id="E9F941E425357751" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
##
T 10.10.10.51:52953 -> 209.85.229.125:5222 [AP]
<stream:error><invalid-namespace
xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>
##


Any suggestions to the above issue very much appreciated.

Kind regards,
Chris


More information about the ejabberd mailing list