XMPP (earlier known as Jabber) stands for Extensible Messaging and Presence Protocol. XMPP is an XML-based open, free-to-use protocol for instant messaging and presence information in near real-time mode. To store user accounts and groups, server is used, while is used as the XMPP server. The necessary software is included with [Calculate Directory Server] (cds).
User accounts and groups are stored with OpenLDAP. First configure the LDAP service according to the manual.
To install Jabber, run:
* WARNING: Running this program will modify the configuration files of the Jabber service (Ejabberd). If you want to continue, enter 'yes', else enter 'no': yes Enter password for firstname.lastname@example.org New password: Repeat new password: * User added to Jabber service * Added ldif file ... [ ok ] * Starting Ejabberd ... [ ok ] * Jabber service configured ... [ ok ]
Once this completed, Jabber will be configured with the default parameters. The host name of the computer will be used as the one hosting Jabber.
To specify additional jabber hosts use the option.
While setting up the service, enter the password for the account.
Each user on the network has a unique identifier, a Jabber ID, or . Like the email, a JID address contains the user name and the domain name of the server on which the user is registered, separated by the
@ sign. For example, a user registered on example.org will have the following JID address: email@example.com.
To add a Jabber account, use the
To add a user nicknamed
Guest , firstname.lastname@example.org, run:
New password: Repeat new password: * User added to Jabber service
email@example.com, a user nicknamed Guest and attribute a picture to them, run:
cl-useradd -p -c "Guest" -i pic/guest.png guest jabber
Supported image formats are determined by the functionality of ImageMagick. If you have no ImageMagick installed on your system, only jpeg pictures can be used.
To change the password of a Jabber account, use
cl-passwd. For instance, to change the password for
New password: Repeat new password: * Password of Jabber user modified
To lock a user account, use
cl-usermod -L. For instance, to lock
* User guest of Jabber service locked
To unlock an account, run
cl-usermod -U. For instance, to unlock
* User guest of Jabber service unlocked
To remove an account from Jabber, run
cl-userdel. For instance, to remove
* User guest of Jabber service removed
A group is a set of used to send messages to several users at the same time. When connecting to Jabber, the user automatically receives a list of groups and their members. Users without groups have to be added manually to the contact list. A user can only be in one group.
To create a Jabber group, use the
cl-groupadd command. For instance, to create a group named
"Testing Group", run:
* Group 'Testing Group' added to Jabber service
To rename an existing Jabber group, use
cl-groupmod. For example, to rename 'Testing Group' to 'My Test', run as follows:
* Group renamed to My Test
To edit a Jabber group, use the
cl-usermod commands. To add user
guest to group 'Guest Group', run
cl-usermod as shown below:
* User group modified
To remove user
guest from group 'Guest Group', run:
* Users removed from group Guest Group
To add users
guest, guest2 to group 'Guest Group', run:
* Users added to group Guest Group
If you have several network interfaces on your server, but want it to run on one only, add the following
ip directive, "192.168.0.2", to the section of your file:
... listen: - port: 5223 module: ejabberd_c2s max_stanza_size: 65536 tls: true ip: "192.168.0.2" certfile: "/etc/jabber/ssl.pem" shaper: c2s_shaper access: c2s ...