

# You can put here as many accounts as you want. # The 'admin' ACL grants administrative privileges to XMPP accounts. " myotherdomain.xx" Configure forced encryption for clients listen:Ĭertfile: "/etc/ejabberd/mycert.pem" starttls: true starttls_required: trueĬiphers: "ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256"ĭhfile: "/etc/ejabberd/dh2048.pem Add admin users acl: # You can define one or several, for example: Note the indents in the YAML file! vi /etc/ejabberd/ejabberd.yml Add your domains # hosts: Domains served by ejabberd. The config file is /etc/ejabberd/ejabber.yml. Openssl req -x509 -sha256 -days 3650 -key key.pem -in csr.csr -out mycert.pemĬhmod 640 mycert.pem Generate Diffie-Hellman key openssl dhparam -out /etc/ejabberd/dh2048.pem 2048Ĭhgrp ejabberd dh2048.pem Configure ejabberd.yml

Openssl req -new -sha256 -key key.pem -out csr.csr Iptables -A -p tcp -m tcp -dport 5269 -j ACCEPTįor 10 years cd /etc/ejabberd openssl genrsa -out key.pem 4096 Xmpp-bosh 5280/tcp http-bind # ejabberd mod_http_bind Open ports on firewall iptables -A -p tcp -m tcp -dport 5222 -j ACCEPT Xmpp-server 5269/tcp jabber-server # Jabber Server Connection Tcp6 0 0 :::5280 :::* LISTEN 21487/ beam Add ports to services vi /etc/services xmpp-client 5222/tcp jabber-client # Jabber Client Connection
#INSTALL EJABBERD UBUNTU INSTALL#
Update the system and install the package apt-get updateĪpt-get dist-upgrade apt-get install ejabberdĮjabberd is now installed.

Ejabberd is an open source XMPP server for Microsoft Windows, Linux, Mac and more.
