Prosody: A Light, Extensible XMPP Server
Prosody is the XMPP server for people who want to understand their XMPP server.
The configuration is the appeal
VirtualHost "example.com"
enabled = true
ssl = {
key = "/etc/prosody/certs/example.com.key";
certificate = "/etc/prosody/certs/example.com.crt";
}
modules_enabled = {
"roster"; "saslauth"; "tls"; "dialback";
"carbons"; "mam"; "smacks"; "csi_simple";
"cloud_notify";
}
That is a Lua file you can read top to bottom. Compared with assembling the equivalent in ejabberd’s YAML, the difference in approachability for a small deployment is substantial.
The modules that actually matter
A bare XMPP server is not a usable modern chat system. These are the ones to enable:
- mam message archive, so history syncs across devices
- carbons so all your clients see your sent messages
- smacks stream management, so a dropped mobile connection resumes
- csi_simple client state indication, which is what makes mobile battery life tolerable
- cloud_notify push notifications for iOS and Android
Missing any of these produces the experience that gives XMPP its reputation for feeling dated. With them it is a decent messenger.
Snikket is Prosody packaged with exactly this set plus matched clients and an onboarding flow, and for a family server it is the better starting point than configuring Prosody yourself.
Prosody or Matrix
Honest comparison. Synapse and Matrix have better client support and more momentum; XMPP uses dramatically less storage and CPU for the same number of users.
A Prosody server for a dozen people runs comfortably on the smallest VPS. A Synapse server for the same dozen will want real resources, and memory is expensive this year.
Operational notes
prosodyctl check
prosodyctl check dns
prosodyctl adduser alice@example.com
prosodyctl check is unusually good. It validates configuration, certificates and DNS including SRV records, and tells you plainly what federation will fail on. Run it after every change.
Operational caution
Disable in-band registration or require invites; an open XMPP server becomes a spam relay. Our Let’s Encrypt guide covers certificates, which Prosody can import automatically, and our dig guide covers the SRV records federation needs.
License
Prosody is released under the MIT License.