Voxelmanip Forums
voxelmanip.se voxelmanip.se
Posted on 2025-06-25 14:00 Link

Setting up an XMPP server with Prosody


25 June 2025

XMPP (also known as Jabber) is an open chat protocol for instant messaging. It is also federated meaning that everyone can talk and communicate with people on other XMPP servers, one-to-one or in multi-user chats (MUCs). It supports transport layer encryption using TLS, as well as end-to-end encryption using OMEMO.

Prosody is a modern XMPP server written in Lua that aims to be simple and very light on resources. I've been running my own XMPP server using Prosody for the past couple years at this point, and this blog post is a guide from what I've learned for setting up an XMPP server using Prosody, complete with HTTP file sharing for sending images and other files and MUCs for creating group chats and public chat rooms on your server.
(Read the full blog post)
olive olive
Posted on 2026-10-21 23:09 (edited 2026-10-21 23:19) Link
I've referred a few people to this post now ;)
Whenever setting up an XMPP server is mentioned, I link it.
Not sure if anyone has actually set one up due to this though.

One thing I have wondered about for a while, and wonder if you know - what happens if you don't set up the files part? XMPP has p2p file sharing, which for direct convos I generally would find more sensible, but clients all seem to only use that if HTTP upload fails or the file is too large. Probably because basically everything can download a HTTP file, and if not then it will just be opened in a browser. (Still, feature discovery should make this unnecessary..)
For MUCs, no idea if p2p would work. I'd wager not in most cases, I mean, people are still insisting to me XMPP voice calls are wonk and so I've not tried them much :/

When setting up mine (which I don't actually use for my account, partly due to XMPP account migration still not quite existing), I got snagged on how to work the TLS certs into a way prosody recognised - while also acme-client still being able to refresh them… The prosodyctl importer thing just kept complaining
currently I have my periodic script that calls acme-client copying the files over and chown'ing them, which _I think_ is fine? (I don't actually know where to see errors & logs from /etc/periodic.. /var/log/chrony/ is empty.., it might not even be running apart from when I manually run it to force a new domain to be added.)

For some reason Prosody configs come with a bunch of things disabled by default, incl tombstones and anti-spoof and internal things like s2s_bidi, which is odd to me. Though I don't know of many people using the web clients as those are generally weirder, my friend's server my acct is on had websockets disabled, and I actually got annoyed by this from wanting to poke at XMPP from ComputerCraft ^^
ROllerozxa ROllerozxa
Posted on 2026-10-22 00:31 Link
Nice! Glad to hear my blog posts get shared around :)

Not sure about the peer-to-peer file sharing thing... I think I've accidentally done such a file transfer sometimes when I try to send something that is above my XMPP server's HTTP file share limit, but they would always fail before being able to do anything. I would assume it's a bit like IRC's peer-to-peer DCC functionality where it was designed for an Internet where peers were more accessible from the outside (no NAT) and nowadays doesn't really work as it was originally intended.
olive olive
Posted on 2026-10-22 02:10 Link
I believe it runs over Jingle, which is XMPP's voice and video call protocol. So it should get all the hole-punching and relay stuff from that, but yeah, is a bit subpar. I remember seeing a mention in Prosody's docs about some sort of built-in relay thing.
I guess it would be implemented more if it was just a basic relay thing or stanza and didn't depend on needing Jingle though :P (there is the content-addressed thingy that custom emoji uses.. wonder if that'll get used for file sharing at some point)