Difference between revisions of "Installing Ejabberd on Debian"

From WIKI
(SRV DNS configuration)
(Ads)
 
(3 intermediate revisions by the same user not shown)
Line 64: Line 64:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
+
==Ads==
 +
* '''Host your XMPP server to [https://www.mvps.net/?aff=2798 cheap DDoS-protected VPS]''': KVM & 2GB RAM & 1 Core & 25 GB SSD France & Nederland & UK & Germany Location &  Free backup- €3.00/ month
  
 
[[Category:Manual]]
 
[[Category:Manual]]

Latest revision as of 01:10, 14 August 2019

Install Ejabberd

  • For Debian 9
apt-get -t stretch-backports install ejabberd
  • For Debian 10
apt install ejabberd

Edit /etc/ejabberd/ejabberd.yml

hosts:
#  - localhost
   - example.com

Let's Encrypt configuration

mv /etc/ejabberd/ejabberd.pem "/etc/ejabberd/backup.pem.$(date +%Y%m%d-%H%M%S)"; cat /root/.acme.sh/404.city_ecc/404.city.key /root/.acme.sh/404.city_ecc/fullchain.cer >> /etc/ejabberd/ejabberd.pem; chown ejabberd  /etc/ejabberd/ejabberd.pem;
  • Delete 'mod_s2s_dialback: {}'. This is a deprecated option allowing the use of self-signed certificates s2s
  mod_roster:
    versioning: true
# mod_s2s_dialback: {}
  mod_shared_roster: {}
  • Reload config
ejabberdctl reload_config

Creating a user from Linux console

ejabberdctl register user example.com password


SRV DNS configuration

Need if the ip of your site and the ip of your server are different or you use non-standard port

SRV record

_xmpp-client._tcp.example.com.	300	IN	SRV	0			1	5222	xmpp.example.com.
_xmpp-server._tcp.example.com.	300	IN	SRV	0			1	5269	xmpp.example.com.

A record:

Change ip 8.8.8.8 to your IP-adress

xmpp.example.com.	300	IN	A	8.8.8.8

Ads

  • Host your XMPP server to cheap DDoS-protected VPS: KVM & 2GB RAM & 1 Core & 25 GB SSD France & Nederland & UK & Germany Location & Free backup- €3.00/ month