Remix.run Logo
▲ Axsuul 2 hours ago

Has anyone self-hosted their email with success?

▲oddIdentities 26 minutes ago | parent | next [-]

Yes. There was a relative flurry of work to do (= I had to spend half an hour reading boring documents) when SPF/DKIM became a thing a few years back, but other than that, it has been awesome.

▲mgbmtl 2 hours ago | parent | prev | next [-]

I do for my very small company (team of 5) and for my personal domain. There's plenty documentation about this, but for me it boils down to using a hosting provider with good-enough reputation (this is harder than we think), and obviously DKIM/SPF/DMARC.

We run Mailcow on OVH. OVH IPs don't have a great IP reputation either, but we rent /24 or /19 IP blocks (for dedicated baremetal servers), which usually helps in the long term. It's been a while since we had issues with sending email to Microsoft/Outlook/Hotmail (while still getting a ton of spam from them).

I like Mailcow because it's light and simple, easy to admin, well documented. However, we don't use SoGO and block it off (it's rather basic, except for managing email filters). I got used to Thunderbird, after much resistance. Although I worry about brute-force of passwords, and the lack of security around IMAP. We don't have a ton of monitoring around this at the moment (only fail2ban).

And about OVH and baremetal servers: we rent big machines with 128 GB RAM, RAID disks (zfs), and host VMs on them. We run our own Mailcow, Big Blue Button, Gitlab, etc. I've been doing this for 10 years and it's been very cost effective, low maintenance.

▲dspillett 28 minutes ago | parent | prev | next [-]

Yes, for a long time. At one point it was for me and some other family & friends but now it is pretty much just me and their archives (I've become rather burned out over the years, and recommended they find other hosts for active mail as it can be rather important so if it broke while I'm not in a position to fix it for a day or two that could be bad).

For quite some time I used Zimbra, but since that I've had a fairly standard postfix+dovecote+friends setup. There are many tutorials for this out there if you need one, I suggest limiting those you use to those that existed before 2024 (a quick search pulls up some that seem to be AI regurgitated without much human review) but that has been updated recently (one from several years ago might skip DKIM as for a long time you could get away without it, and there may be other deficiencies). If I ever go for an all-in-one solution with more bells & whistles again, Stalwart is on my list of things to investigate.

Creating and running the server itself is not difficult if you have a little Linux/BSD experience, the hard part is sometimes getting a clean IP address to send from. I'm lucky, my home ISP is very clean in that respect so unless I mess up I'm probably good in that regard. There are other options like hosting your mail server on an external server (research the provider you use: some VPS providers have a history of hosting junk mailers and their IP ranges are banned in many places for sending mail) and/or sending via an extra service (mxroute for instance) that will deal with blocklists and similar issues so you don't have to. Though I've never had trouble sending from my main location so I've not needed to do that.

With the current deluge of serious security issues meaning that patching could become more of a full time job, I have considered moving to something like fastmail instead, but for the moment I'm staying put.

The final big consideration for self-hosted mail, as with any self-hosted service, is backups. Make sure you have a good arrangement for this… I have a copy of my mail server running externally that restores itself regularly from the most recent backup of the main server - this is a good test that my backups are working. I login occasionally to make sure things seem complete (I really should get around to setting up some automated checks!). As with all backups, multiple snapshots are vital (in case something trashes the main mail server and you don't notice before it updates the backups) and more than one backup is a very good idea (even better: a soft-offline arrangement to limit the area of effect if either your main server(s) or the backups are attacked by stopping one directly attacking the other).

▲drnick1 2 hours ago | parent | prev | next [-]

Absolutely, and it's relatively straightforward, provided you have access to a fixed IPv4. Sending out email may be more difficult with a new domain or a tainted IP, and you may need an outgoing relay. Incoming email is never an issue. The resources needed for a personal server are trivial. If you stick to bare distro packages like Postfix/Dovecot/SpamAssassin that update automatically unattended on Debian and other distros, and there is zero ongoing maintenance. Your logs will show a large amount of noise (unauthorized login and relay attempts), but it's par for the course and you shouldn't worry.

▲Gigachad 2 hours ago | parent | prev | next [-]

I used to, but these days I have settled for a custom domain with Fastmail. You get essentially the same level of control without the headache. Should Fastmail ban me I can still move my email to another provider.

▲mshroyer 2 hours ago | parent | next [-]

Same here. I kept having delivery errors running my own Postfix server, especially to Microsoft, even with a solid DKIM/SPF setup. In the end it was easier to just use Fastmail, plus they have a nice web app.

▲martyfunkhouser 2 hours ago | parent [-]

FWIW running Postfix (properly) at a large company is a full-time job for a multi-person team. It's not as easy as it sounds.

▲edoceo 2 hours ago | parent | prev | next [-]

I'm also in the used to camp, I don't recall being blocked ever, but I was low volume and had it configured properly (spf, dkim, dmarc, ptr and all that). I had my postfix 'locked down' so lots of senders were rejected - for the best.

I use mxroute now.

▲bsoles 2 hours ago | parent | prev | next [-]

I am always thinking about this approach, but I also fear the consequences of somehow loosing my domain. Is loosing a domain name a possibility, other than forgetting to renew, etc?

▲Gigachad an hour ago | parent | next [-]

If you only use it for email it's a very small risk. It's also exactly the same risk you have using fully self hosted email.

▲elashri 2 hours ago | parent | prev | next [-]

It is a possibility but probably less than the chance of Google banned you. Unless you forgot to renew your domain (which is something your control).

▲bakugo 2 hours ago | parent | prev [-]

Yes, registrars reserve the right to take away your domain for essentially any reason, as we recently witnessed with codeberg.org[1]

You can of course reduce the risk of this happening to near zero by never hosting anything they might consider objectionable, but it's never truly zero.

[1] https://news.ycombinator.com/item?id=50544261

▲drevil-v2 20 minutes ago | parent | prev [-]

I keep seeing Fastmail recommended by HN posters for privacy - just be aware that Fastmail is under Australian jurisdiction and they have quite draconian rules, almost CCP levels of power over tech companies and access to user data.

Australian LEO and government entities can get all your data from Fastmail at will. And given Australia is part of the Five Eyes means all the other allied countries LEO can too.

▲nullsanity 2 hours ago | parent | prev | next [-]

[dead]

▲notholomew 2 hours ago | parent | prev [-]

[flagged]