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, 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, become unavailable or compromised (looking at you, EU Chat Control!).
My first through 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, 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?
ShredderFeeder@shredderfood.net
artyom@piefed.social@piefed.social
rako@tarte.nuage-libre.fr
i_love_FFT@jlai.lu
lambalicious@lemmy.sdf.org 2 weeks ago
Self-hosted messaging was solved 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 and a number of webclients.
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.
smiletolerantly@awful.systems 2 weeks ago
I unfortunately wouldn’t call it solved. I host XMPP and Matrix, (and a STUN/TURN server, and a Livekit server for the modern matrix calls…), and nothing is perfect.
Prosody is really great because it’s so no-nonsense. It doesn’t hog resources or choke up like matrix servers do if you suggest to them that maybe they could deliver this text message? :3 Oh, no, it’s “hold for 2 weeks despite the recipient being online” again? Ok…
But XMPP is still incredibly hard to recommend for me, because
Hence why I still mostly use Matrix… Even though it’s such a stupid, stupid protocol.
@smiletolerantly @lambalicious "no way to read old chats on new devices,"
If you're talking about unencrypted messages, then prosody's mod_mam (https://prosody.im/doc/modules/mod_mam) will store messages for a configurable amount of time and allow all devices to sync older messages.
If you're talking about encrypted messages, you have two choices. OMEMO is the standard means for encrypting XMPP messages, & only works in forward mode; you can't decrypt old messages. OpenPGP, however, decrypts old msgs.
mjr@infosec.pub 2 weeks ago
+1 for prosody. But you’ll still probably need a turnserver for calls, won’t you?
lambalicious@lemmy.sdf.org 2 weeks 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.
possiblylinux127@lemmy.zip 2 weeks ago
I have literally never heard anyone mention xmpp outside of Lemmy. Anyways it is a dead technology due to how fragmented it is along with its reliance on XML
lambalicious@lemmy.sdf.org 2 weeks ago
What’s so wrong with XML? All web browsers use it (HTML is literally slightly-freeform XML), Libreoffice also does (XML is part of the Open Document format spec), Freedesktop… eeeh, let’s not mention them, and so far we are doing golden.
0x0@lemmy.zip 2 weeks ago
Oh yeah, very dead… omg so dead… like, no one uses it… at all…
if the /s isn’t obvious