Don't understand german? Read or subscribe to my english-only feed.

Setting up your own jabber server: ejabberd

It was on my todo list since ages, finally I took some minutes to set up my own jabber server (reach me at mika@jabber.grml.org). I’m using ejabberd, a free and open source instant messaging server written in Erlang.

Reference system: Debian etch (current stable), ejabberd version 1.1.2-6, installed via a simple:

# aptitude install ejabberd

Adjust the hostname in /etc/ejabberd/ejabberd.cfg (I suggest to use something like ‘jabber.$YOURDOMAIN’ so you can update jabber’s DNS SRV according on upgrades, downtimes, moves,…):

{hosts, ["jabber.yourdomain"]}.

Register an account:

# /etc/init.d/ejabberd restart
# ejabberdctl register username jabber.yourdomain password

You might want to give your username admin permissions, so adjust /etc/ejabberd/ejabberd.cfg according:

{acl, admin, {user, "username"}}.

That’s it. If you want to disable registration of users just use (instead of the ‘allow’ line):

{access, register, [{deny, all}]}.

Restart the server and make sure you have a running server:

# /etc/init.d/ejabberd restart
# ejabberdctl status

Now you should be able to point your browser to http://yourdomain:5280/admin/ and set up your new jabber account inside your jabber client.

2 Responses to “Setting up your own jabber server: ejabberd”

  1. raw Says:

    hast du den jabberd auf der nslu2 installiert?

  2. mika Says:

    @raw: nö, die nslu2 sind interne Geräte (im LAN)