Live data from Hacker News

Self-hosting email like it's 1984

maxadamski.com

71–80 of 190 posts

Re: Self-hosting email like it's 1984

#71
There was a blog posted to HN years ago describing a self hosted email setup in detail, and this was indeed the main issue. Everyone he emails is on a small number of big companies, and most of them don't like his server.

"After self-hosting my email for twenty-three years I have thrown in the towel"

https://news.ycombinator.com/item?id=32715437

https://cfenollosa.com/blog/after-self-hosting-my-email-for-...

Re: Self-hosting email like it's 1984

#72

I used to do this. What finally killed it wasn't reputation, it was the fact that I needed 100% uptime or risk losing messages, getting my address blacklisted, etc. Email is supposed to be resilient to down time (retries, trying each MX record, etc.) but I found that large mail providers tend to just bounce and walk away. Worse, GitHub (back in 2016 and 2018) would mark a recipient as "unavailable" after a single bou…

> it was the fact that I needed 100% uptime or risk losing messages

Q: If your server(s) is/are offline for a few hours, why would you "lose messages"?

I've just checked my own email server -> "up 219 days"

Honestly, compared with the stuff we do all day, this is not hard...

Re: Self-hosting email like it's 1984

#73

I used to do this. What finally killed it wasn't reputation, it was the fact that I needed 100% uptime or risk losing messages, getting my address blacklisted, etc. Email is supposed to be resilient to down time (retries, trying each MX record, etc.) but I found that large mail providers tend to just bounce and walk away. Worse, GitHub (back in 2016 and 2018) would mark a recipient as "unavailable" after a single bou…

> it was the fact that I needed 100% uptime or risk losing messages Q: If your server(s) is/are offline for a few hours, why would you "lose messages"? I've just checked my own email server -> "up 219 days" Honestly, compared with the stuff we do all day, this is not hard ...

> Q: If your server(s) is/are offline for a few hours, why would you "lose messages"?

They said...

>> Email is supposed to be resilient to down time (retries, trying each MX record, etc.) but I found that large mail providers tend to just bounce and walk away.

I take that to mean that if your server isn't availble to receive the mail at the time it is first offered, it won't be retried later. That wasn't the case (for most mail) when I gave up on self hosting 10 years ago, but it's plausible.

Re: Self-hosting email like it's 1984

#74

I used to do this. What finally killed it wasn't reputation, it was the fact that I needed 100% uptime or risk losing messages, getting my address blacklisted, etc. Email is supposed to be resilient to down time (retries, trying each MX record, etc.) but I found that large mail providers tend to just bounce and walk away. Worse, GitHub (back in 2016 and 2018) would mark a recipient as "unavailable" after a single bou…

This is fearmongering. My mails always got resent after some hours or a day. It's absolutely NOT possible to tell if the problem is on your side, senders side or somewhere in between why a mail is not delivered once and no standard server config would simply toss it.

Host your own mail. I get 99% deliverability with 0 repuation since i do dkim and spf correct.

Don't be distracted by the "complexity" - if you config right it's totally doable.

Gives you actual private caldav too btw

Re: Self-hosting email like it's 1984

#75

(had to dug my comment from under a flagged parent) I self-hosted for well over 20 years, I did not throw the towel and I do not plan to. Self-hosting is a sign of pride. Neither my government nor my Prime Minister nor even my Ministry of Interior or Foreign Ministry can host their own email. Last time I checked, only State Security self-hosted. I was probably lucky, but I rarely had delivery problems. The last one w…

My first email usage was at University, pre-WWW. After that I briefly used some ISP email service, but that was on a time of very limited storage and POP only accounts, so I started hosting my own email even before having an always-on internet connection, using a relay and dynamic DNS to receive email when online. Now a days, I use a small VPS to route and receive email, but final destination and storage is on my home server. Over the years, I had, like others here, to ask Outlook and other providers to unblock my IP or domain, but it has been rare.

I really don’t want to live in a world where only two or three companies run email for the entire world, and this is my little act of resistance.

Re: Self-hosting email like it's 1984

#76
post #73

Earlier quoted context omitted.

> it was the fact that I needed 100% uptime or risk losing messages Q: If your server(s) is/are offline for a few hours, why would you "lose messages"? I've just checked my own email server -> "up 219 days" Honestly, compared with the stuff we do all day, this is not hard ...

> Q: If your server(s) is/are offline for a few hours, why would you "lose messages"? They said... >> Email is supposed to be resilient to down time (retries, trying each MX record, etc.) but I found that large mail providers tend to just bounce and walk away. I take that to mean that if your server isn't availble to receive the mail at the time it is first offered, it won't be retried later. That wasn't the case (fo…

It's not reasonable. Mail not deliverable is not the same as house burned down, recipient moved unknown or sth, it simply means the letter was not received. Who and why messed up is unknown, thus NO mail server will mark you down after a single attempt.

Host your own!!

Re: Self-hosting email like it's 1984

#77

(had to dug my comment from under a flagged parent) I self-hosted for well over 20 years, I did not throw the towel and I do not plan to. Self-hosting is a sign of pride. Neither my government nor my Prime Minister nor even my Ministry of Interior or Foreign Ministry can host their own email. Last time I checked, only State Security self-hosted. I was probably lucky, but I rarely had delivery problems. The last one w…

Configure the dmarc reports, they tell you a lot and automatically why someone swallowed your mail.

Re: Self-hosting email like it's 1984

#78
Self Plug-in: We are currently beta testing Hyvor Relay [0], a self-hosted alternative for sending emails. We are focusing more on observability (monitoring DKIM/SPF, periodically querying DNSBLs) and DNS automation.

A simple docker compose up can get a reasonably working setup [1]

[0]https://github.com/hyvor/relay [1]https://relay.hyvor.com/hosting/deploy-easy

Re: Self-hosting email like it's 1984

#79

Here is my advice to anyone wanting to test out self-hosting email. Start by using your self-hosted email to sign-up for accounts. You don't have to use the email address for your personal correspondence Use Mail-in-a-box to get started [1]. You can literally set it up in a couple of hours by following the instructions and everything should just work. After a few years, you can think about switching your personal cor…

I can recommend Stalwart [1] which is a complete mail service contained in a single binary, that doesn't really have any external dependencies, and is really easy to install and update. I've looked (and tried) a few other projects in the past, but Stalwart was the easiest to setup, and I haven't had any issues with it so far. [1] https://github.com/stalwartlabs/stalwart

Wow! I was just about to comment how email is the one thing where I wish something that didn't follow the unix philosophy existed. Exactly due to this, it is easy to set up a mail server but it is hard to think of all the things around it: spam, fishing, dmarc, dkim, spf, etc.

This looks really nice, especially also for saas projects.

Re: Self-hosting email like it's 1984

#80
I have a writeup in german about self-hosting current and with debian trixie on https://krei.se/Doc

If you do it yourself and do it correct it's a pleasure. I have automatic updates with automatic reboot, tailored systemd to make sure all is well and status reports per mail - total bliss, easy 2-3 years, with trixie now even 5 until you have to touch it again.

It's mature software.

Host yourself! The peace of mind and control is totally worth it.

Post reply on HN