jabberd2 XMPP server

Package installation

Install the package using the appropriate tool, as demonstrated in Example 12.11, “Installing jabberd2 on Debian/Ubuntu” and Example 12.12, “Install jabberd2 on Fedora/RHEL/CentOS”.

Example 12.11. Installing jabberd2 on Debian/Ubuntu

$ sudo apt-get install jabberd2
$ sudo addgroup jabber ssl-cert 

Example 12.12. Install jabberd2 on Fedora/RHEL/CentOS

$ sudo yum install jabberd
$ sudo addgroup jabberd ssl-cert 


jabberd2's configuration files are in /etc/jabberd2/ (Debian/Ubuntu) or /etc/jabberd/ (Fedora/RHEL/CentOS). It can use the certificates created in Chapter 9, TLS certificate creation. jabberd2 is modular and each of the components needs to be configured.

The most basic jabberd configuration requires setting the hostname of the server in c2s.xml as demonstrated in Example 12.13, “jabberd2 c2s.xml example” and the JID domain in sm.xml as demonstrated in Example 12.14, “jabberd2 sm.xml example” The default storage module in sm.xml and authreg module in c2s.xml are sqlite which works well for most installations.

Example 12.13. jabberd2 c2s.xml example

<id password-change='mu'

Example 12.14. jabberd2 sm.xml example


Further reading

The jabberd2 web site gives more detailed documentation about setting up the server.