Difference between revisions of "Linux ejabberd"

From John Freier
Jump to: navigation, search
Line 7: Line 7:
 
== Startup ==
 
== Startup ==
 
To start, stop, status, restart
 
To start, stop, status, restart
   # ejabberdctl status
+
   # ejabberdctl start
  
 
== Config ==
 
== Config ==
Line 18: Line 18:
 
Turned off user registration. Switch 'allow' to 'deny'.  You will need to register users before turning this off.
 
Turned off user registration. Switch 'allow' to 'deny'.  You will need to register users before turning this off.
 
   {access, register, [{deny, all}]}.
 
   {access, register, [{deny, all}]}.
 +
 +
TTLS - I needed to enable TTLS to be able to communicate between servers. To get this working correctly I also needed to uncomment out the pem cert.
 +
  {s2s_use_starttls, true}.
 +
 
 +
  {s2s_certfile, "/etc/ejabberd/ejabberd.pem"}
 +
  
 
== Register an account CLI ==
 
== Register an account CLI ==
 
This is how you register an account.
 
This is how you register an account.
 
   # ejabberdctl register myuser johnfreier.com password
 
   # ejabberdctl register myuser johnfreier.com password

Revision as of 13:43, 17 May 2016

ejabberd is an open source platform built on Jabber/XMPP.

XMPP (Extensible Messaging and Presence Protocol)

https://github.com/processone/ejabberd

Startup

To start, stop, status, restart

 # ejabberdctl start

Config

Host - Updated the host to include my domain.

 {hosts, ["localhost", "johnfreier.com"]}.

Turned off the web admin interface

 %%web_admin

Turned off user registration. Switch 'allow' to 'deny'. You will need to register users before turning this off.

 {access, register, [{deny, all}]}.

TTLS - I needed to enable TTLS to be able to communicate between servers. To get this working correctly I also needed to uncomment out the pem cert.

 {s2s_use_starttls, true}.
  
 {s2s_certfile, "/etc/ejabberd/ejabberd.pem"}


Register an account CLI

This is how you register an account.

 # ejabberdctl register myuser johnfreier.com password