For some years now I've run a local mail server stack at home for a handful of domains/addresses with dovecot for IMAP access and sieve filtering, postfix for sending, auth and internal relaying, and fetchmail + spamassassin for receiving from the online mailboxes maintained by the domains' hosting provider.
I've always been interested in going the last mile and having my own server handle the whole thing: become the domains' primary MX (right terminology?) so that incoming mail is sent directly to me; and send outgoing mail directly instead of via my host's authed SMTP gateway. This has mainly been because the hosting is shared, so the outgoing IP often gets a bad rep due to other tenants' misdeeds. Now though, I'm also noticing a lot of places jacking up prices for email provisioning; that probably won't affect my host but it's still renewed my interest in moving to self-hosting. I'd also like to be able to bounce back more obvious spam actively (my host do offer this but I don't trust their filters).
It's an intimidating prospect though. I expect a steep learning curve in managing DNS correctly (particularly in extending it to antispam practices like SPF/DKIM), and I'm leery about how much rogue traffic I'll have to deal with when opening a port to the world for SMTP. (I already do in fact, but it has no DNS record as it's only for relaying from my clients so it just gets the odd opportunistic knock. I'm sure a published MX record would bring a lot more.) Availability/failover is a concern as well: the current setup also serves my partner's mail, and incoming mail getting black-holed due to downtime could really get me in the doghouse
I'd really like to know if any readers have experience of doing this at the home/soho level. If so:
- How much hardware/resource grunt did it require? (Not always easy to quantify, I know)
- Did you employ multiple hosts for redundancy, and if so what software did you use?
- Does handling multiple domains make it much more complex to set up?
- What did you use for spam filtering and how did it hold up?
- Did you have scaling issues, and how did you overcome them (if you did)?
- What was the worst/hardest part of the process?
- How much hair did you lose? [I'm already on a budget lol]
- Was it worth it?
- What is the biggest gotcha I haven't even thought of?
Even just any general war stories from anyone who's been through it would be of interest. TIA





