+-------------------------------------------------------------------------------
| Running ejabberd on OpenBSD
+-------------------------------------------------------------------------------

ejabberd is listening on all IPv4 addresses (0.0.0.0). To listen on
IPv6 addresses you need to duplicate the listener in
/etc/ejabberd/ejabberd.yml

By default ejabberd and ejabberdctl are configured not to use epmd.
To use epmd, comment out the ERL_DIST_PORT setting in
/etc/ejabberd/ejabberdctl.cfg

To run a cluster you should distribute the same cookie
/var/db/ejabberd/.erlang.cookie to all machines. These files
should have permission 0400 and be owned by _ejabberd:_ejabberd. You
will also need to customize the machines node name via rc flags like
this

    rcctl set ejabberd flags --node ejabberd@somehost

or via ERLANG_NODE in /etc/ejabberd/ejabberdctl.cfg

    ERLANG_NODE=ejabberd@somehost

Note that to change a node name, you should migrate Mnesia, see:
https://docs.ejabberd.im/admin/guide/managing/?h=mnesia_change_nodename#change-computer-hostname
