Elektrine lite

← Feed

@LewdLemon@sh.itjust.works

2026-11-10 19:55 UTC

Self-hosting messaging infrastructure I’ve been using Signal for many years now, and it fulfils most of my messaging needs. But last year’s AWS outage, which took it offline for almost a day, showed one of its many flaws: Signal is highly centralised and reliant on big tech infrastructure. I was therefore wondering if I shouldn’t start self-hosting my own messaging infrastructure - maybe not for my day-to-day needs, but as an emergency fallback for my closest friends and family, should Signal fail again or become unavailable or compromised (looking at you, EU Chat Control!). My first thought was to self-host my own Matrix/Synapse server, which ticks a lot of boxes for me: end-to-end encryption, media sharing (pics, audio, videos, all that good stuff), high availability of mobile clients with modern UIs, potentially even audio/video calls. The latter is still giving me a headache since apparently, I need a TURN server to get this working properly, and I’m somewhat reluctant to open so many ports just for it to work… What’s your perspective on self-hosting messengers: which ones do you prefer? What is your primary motivation to do it? And how have you set it up?

Replies (5)

  • @artyom@piefed.social 2026-11-10 22:00

    Matrix is the most popular one these days, and it’s worth considering just for that reason, but it is also extremely buggy and slow. I can’t tell you how many timed I’ve been booted and locked out of my own account, or someone sends me a message, only to receive “message cannot be decrypted” error. If you’re starting something new that you’re bringing other people to, I’d very much recommend DeltaChat/ArcaneChat (chatmail). It’s been far more reliable and easier to use. I’ve never used XMPP because all of the clients are extremely dated.

    Open ##5555973

  • @stratself@lemdro.id 2026-11-11 05:54

    If you choose to go with Matrix, I would strongly recommend you to give the Continuwuity server a try. It is quite simple to install, much less resource-intensive than the commonly-used Synapse, and has an active community behind it. apparently, I need a TURN server to get this working properly Do note, Matrix recently has a new calling stack called MatrixRTC, and for that you would be setting up LiveKit in place of a TURN server. That also opens many ports by default, but I think there is a “UDP mux” mode that listens all on one port. I’ll be looking into it soon. The other alternative is XMPP, which is a bit more complex to set up (more ports, non-HTTP protocol, more subdomains, various opt-in features) but is generally more lightweight and fast. ejabberd is my choice, but people tend to like Prosody and Snikket as well. While they use the traditional TURN servers for calls, their clients could use a lot of improvements though… So yeah, my Continuwuity and the XMPP server sits on a small homelab machine, and with some extra tuning and grit, they:re totally federable. LiveKit and TURN sits on a VPS for better network performance. To be honest, I do all of this mainly because I wanna talk to cool people on the internet, so the service has to be federatable.

    Open ##5556703

  • @possiblylinux127@lemmy.zip 2026-11-11 06:40

    Simplex chat looks interesting although I don’t use it I would recommend that you use what the people around you use

    Open ##5557799

  • @lambalicious@lemmy.sdf.org 2026-11-10 20:29

    Self-hosted messaging was solved decades ago, it’s called XMPP or Jabber depending on who do you ask. There are a number of services for it, such as Prosody or ejabberd, and there are both client apps (eg.: Conversations for Android, Gajim or Dino for PC) and a number of webclients (such as converse.js which can actually be shipped via a ejabberd install). That said you could just set up an alternative Signal client that allows for custom servers, since the centralization of Signal only really exists at the level of the client only connecting to Signal’s servers… Signal’s people have pointed this out themselves, when offering bridge setups so that people could connect from Iran or other countries where those countries blocked Signal’s endpoints.

    Open ##5557819

  • @possiblylinux127@lemmy.zip 2026-11-11 06:43

    Have you looked at all into Meshtastic? Depending on where you are, it may work quite well for local communications

    Open ##5557854