[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:


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"},

The actual XML data on the wire:

T -> [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 -> [AP]
<stream:stream from="gmail.com" id="E9F941E425357751" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
T -> [AP]

Any suggestions to the above issue very much appreciated.

Kind regards,

More information about the ejabberd mailing list