XMPP Federation and ejabberd

Lots of complaints are floating around the ‘net of problems with ejabberd federation and Google Talk. I finally solved my problem: IPv6 configuration.

To enable federation using DNS SRV records (as any XMPP admin should), you have to load DNS settings into Erlang. With ejabberd, this can be accomplished by the creation of /etc/ejabberd/inetrc with the following line:

{file, resolv, "/etc/resolv.conf"}.

Then add -kernel inetrc "/etc/ejabberd/inetrc" to the ejabberd command-line. However, if your resolve.conf only contains an IPv6 name server, like mine, you’ll want to create a separate file with an IPv4 server. I named the file /etc/resolve-v4.conf, and added a single IPv4 name server. Finally, I can add Google Talk users!

Tweet This!
Defined tags for this entry: ,

About This Entry