107
submitted 6 days ago* (last edited 6 days ago) by LewdLemon@sh.itjust.works to c/selfhosted@lemmy.world

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?

you are viewing a single comment's thread
view the rest of the comments
[-] stratself@lemdro.id 16 points 5 days ago* (last edited 5 days ago)

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 and subdomains, non-HTTP protocol etc) 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 work well. 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.

[-] stratself@lemdro.id 1 points 3 days ago

Just wanna update: the UDP mux option works! Rather than opening thousands of ports, you'd now only need to open 3 or 4. I've got 7881/tcp, 7882-7883/udp, and livekit's HTTP backend fronted by a reverse proxy, and that's all for calls in most circumstances.

[-] ArborNode@lemmy.shutes.org 2 points 4 days ago

Plus one for continuwuity. Setting up that and livekit for RTC connection was pretty simple following the instructions. Its been simple to maintain and the clients have improved recently. We have messaging plus voice and video calls working great and I have no issues with notifications that used to plague the matrix clients in the past. I self host a Cinny instance as a web hosted client as well.

this post was submitted on 10 Nov 2026
107 points (100.0% liked)

Selfhosted

63859 readers
255 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS