Simple Ejabberd Setup for Small Companies

Posted on September 10, 2015

Pretty much everyone at one of the companies I work with hates HipChat. It went down again tonight so I set up an ejabberd box. Obviously ejabberd does fewer things than HipChat but at least we can keep the damned service up.

Actually getting a basic setup running on Ubuntu 14.04 is pretty easy:

ufw allow 22/tcp
ufw enable

nano /etc/hosts

# add your server's hostname after 'localhost'

apt-get install ejabberd
nano /etc/ejabberd/ejabberd.cfg

# Under "Options which are set by Debconf and managed by ucf"...
# * change Hostname under 
# * change admin user password and hostname

service ejabberd restart

# add some users
ejabberdctl register "user" "yourhostname" "password"

ufw allow 5222/tcp
ufw allow 5269/tcp

That's it.

The MUC (group chat) module is enabled by default. Connect via SSL.

If you prefer, the Prosody (Lua-based server) setup is nearly identical.

Read or create comments on this post's page »