- Installing ejabberd:
aptitude install ejabberd
- Configuration:
nano /etc/ejabberd/ejabberd.cfg
- Find and change the line:
{acl, admin, {user, "YOURNAME", "YOURDOMAIN"}}.
- Append a little below your domain:
{hosts, ["YOURDOMAIN"]}.
- Restart ejabberd:
ejabberdctl restart
- Register an account for yourself:
ejabberdctl register YOURNAME YOURDOMAIN YOURPASSWORD
- If the ejabberd is on a different server set SRV records:
jid.YOURDOMAIN.TLD. A IPSERVEREJABBERD
_xmpp-client._tcp.YOURDOMAIN.TLD. SRV 10 0 5222 jid.YOURDOMAIN.TLD.
_xmpp-server._tcp.YOURDOMAIN.TLD. SRV 10 0 5269 jid.YOURDOMAIN.TLD.