Configure a personal Prosody XMPP server

Submitted by olaf on 2016-01-29

If anything doesn’t work as expected, see the log files, which are located in /var/log/prosody/.

Install Prosody and dependencies

apt-get install prosody lua-sec

Create a minimal configuration file for your server /etc/prosody/conf.avail/example.com.cfg.lua and link it into /etc/prosody/conf.d/.

authentication = "internal_hashed"

VirtualHost "example.com"

ssl = {
    key = "/var/lib/prosody/example.com.key";
    certificate = "/var/lib/prosody/example.com.crt";
}

By default, prosody stores passwords as plaintext, and not hashed. So, to make it a bit more secure, use mod_auth_internal_hashed.

Create a self signed certificate for secure communication

prosodyctl cert generate example.com

and import the certificate into your client.

Add your family and friends

prosodyctl adduser john@example.com
prosodyctl adduser jane@example.com
prosodyctl adduser bob@example.com
prosodyctl adduser mary@example.com

Connect and enjoy secure communication and privacy.

Post a comment

All comments are held for moderation; Markdown and basic HTML formatting accepted. If you want to stay anonymous, leave name, e-mail and website empty.