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?

all 22 comments

sorted by: hot top controversial new old
[–] 12 points 6 hours ago (2 children)

Matrix/Synapse is pretty easy to set up... the encryption is a bit on the kludgy side, but it definitely works... I run it over a cloudflare tunnel (inbound) and perm-VPN tunnel (outbound)

I can give you a sample docker-compose file I use if you'd like. ;-)

  • source
  • hideshow 2 child comments
  • [–] [S] 6 points 6 hours ago (1 child)

    Thank you so much for your offer! I've actually set it up last night and it's running fine so far. It's just that it won't relay any calls if either of the devices is not on my network. Tunneling back into the network via VPN might be an option, but make it more cumbersome to use for some of the less techy folks around me.

    What's your primary reason to self-host Synapse? And who do you use it with?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 6 points 5 hours ago

    Getting off corporate messaging....I use it for family and friends, people I know personally... But it is fully federated so I can get to some of the groups and such... matrix community servers and the like. :)

    Mostly I started investigating it when Discord started talking about age-verification.. Figured it was a good idea to have an exit strategy...

  • source
  • parent
  • [–] 17 points 5 hours ago* (2 children)

    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.

  • source
  • hideshow 2 child comments
  • [–] 2 points 3 hours ago (1 child)

    +1 for prosody. But you'll still probably need a turnserver for calls, won't you?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 44 minutes ago

    I'm unsure what's the progress status over there so I'll say "yes?".

    Which reminds me, I think there is a binding somewhere that lets XMPP send SMS messages, but dunno how if any is that related to phone call compatible audio.

  • source
  • parent
  • [–] 7 points 5 hours ago (3 children)

    If you're going with Matrix, consider looking at Synapse alternatives. Synapse is by a huge margin the heaviest of the backends to run and it doesn't really get you anything extra.

  • source
  • hideshow 3 child comments
  • [–] 7 points 5 hours ago

    I prefer XMPP, its very simple unlike Matrix and I set up a prosody server.

  • source
  • [–] 5 points 2 hours ago

    I also self-host a messaging service. My infrastructure is a homing pigeon coop.

    /uj I like your question and couldn't contribute technically, so hope you get a laugh

  • source
  • [–] 3 points 3 hours ago

    Looking at self-hosting I would rather go with chatmail, part of the deltachat ecosystem. Contrary to others the account doesn't live on the server but on devices: a server going down merely affects connectivity, not the whole identity. Moreover servers are made to be redundant such that messages can transit through pretty much any of them. So when one goes down the app switches to another one and the downtime is invisible

  • source
  • [–] 4 points 4 hours ago* (last edited 2 hours ago) (2 children)

    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.

  • source
  • hideshow 2 child comments
  • [–] -2 points 3 hours ago (1 child)

    1 - great username, 2 - I no longer have these issues with my setup, been running for 5 years now (but an update seems to have broken Element Call

  • source
  • parent
  • hideshow 1 child comment
  • [–] 0 points 3 hours ago

    Well, I'm happy for you, but I am currently locked out of my account. All of my devices were booted for some reason and now it's not accepting my encryption key that I've been using for years to get back in, and I can't use another device to verify, because they were all booted simultaneously.

  • source
  • parent
  • [–] 2 points 3 hours ago

    I just setup fluxer selfhosted, using it for alerts from monitoring things but once I make everything is good and stable I was going to let the discord communities I'm in about it.

  • source
  • [–] 1 point 4 hours ago* (last edited 4 hours ago)

    I host a matrix tuwunel server and can recommend it.

    My motivations are that it gives greater control, and i think federated platforms are better.

    I have it set up on a hetzner vps running debian, which tuwunel provides an official package for.

  • source
  • [–] [B] 1 point 43 minutes ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

    Fewer Letters More Letters
    Git Popular version control system, primarily for code
    LXC Linux Containers
    VPN Virtual Private Network
    XMPP Extensible Messaging and Presence Protocol ('Jabber') for open instant messaging

    [Thread #166 for this comm, first seen 11th Nov 2026, 01:30] [FAQ] [Full list] [Contact] [Source code]

  • source
  • I used this to simplify the matrix server setup: https://github.com/spantaleev/matrix-docker-ansible-deploy For the client I've been loving: https://git.sable.moe/SableClient/sable-next But there are lots: https://matrix.org/ecosystem/clients/

  • source
  • [–] 1 point 3 hours ago

    The answer is always matrix (it has bridges) and a couple people say XMPP.

  • source
  • [–] 1 point 2 hours ago

    A friend hosts an IRC server that I use along with a bunch of other mates for a lot of our comms. Works really well and is wonderfully lightweight without any extra bells and whistles that we don't care for.

  • source