Setting Up ejabberd

  1. Start with the example configuration file.

  2. Replace localhost with your XMPP domain.

  3. Specify the server’s public turn_ipv4_address.

  4. Specify certfiles readable by the user running ejabberd.
  5. Set up SQL.

  6. Make at least the following ports accessible on the server’s public IP address:

  7. Optionally create the following SRV records for XMPP(S) in DNS:

     _xmpps-client._tcp.example.com. 86400 IN SRV 2 0 5223 server.example.com.
     _xmpp-client._tcp.example.com.  86400 IN SRV 5 0 5222 server.example.com.
     _xmpp-server._tcp.example.com.  86400 IN SRV 5 0 5269 server.example.com.
  8. Optionally check your setup with the compliance tester.