logoalt Hacker News

Axsuul • yesterday at 11:27 PM • 7 replies • view on HN

Has anyone self-hosted their email with success?


Replies

mgbmtl • yesterday at 11:52 PM

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.

drnick1 • today at 12:01 AM

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.

oddIdentities • today at 1:28 AM

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.

Gigachad • yesterday at 11:36 PM

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.

➕ show 3 replies
dspillett • today at 1:26 AM

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).

nullsanity • yesterday at 11:33 PM

[dead]

notholomew • yesterday at 11:35 PM

you shouldnt do that just to virtue signal over an internet article