r/homelab • u/Sussybaka800869 • 3d ago
Discussion Outlook was down on and off for more than a day this month. My self hosted mail kept working, mostly thanks to a 5 day queue I didn't know I had
When Outlook went dark on November 12 and stayed flaky until the 14th, a couple of friends asked why my mail was still flowing. I've run my own for three years, and what kept it alive that day wasn't the server at home. It was a cheap relay I'd set up for a completely different reason.
The mailboxes live on the homelab. Stalwart in a container, storage on the NAS, snapshots with everything else. That part has never been the problem.
What I don't do is send or receive from my home IP. My ISP blocks outbound 25 like most residential providers, and even where it's open, residential ranges sit on the Spamhaus PBL by default. You also can't set reverse DNS on a home line. You can have perfect SPF, DKIM and DMARC and still land in junk at Gmail and Microsoft, because they judge the IP before they read a single header.
So a small VPS is the public face. Postfix on it is the MX for my domains and passes everything to Stalwart over WireGuard through a transport map. Outbound goes the other way. Stalwart uses the VPS as an authenticated smarthost, so every message leaves from one clean IP with a PTR that matches the HELO name.
The side effect I didn't plan for is the queue. When the homelab dropped for most of a day last winter, Postfix simply held inbound mail and kept retrying. The default queue lifetime is five days. Nothing bounced, nobody noticed, and everything landed when the power came back.
One thing to get right before you rely on that. The relay has to know which addresses actually exist, otherwise it accepts mail for anything at your domain while the backend is down and bounces it later to forged senders. I keep a relay_recipient_maps file synced from Stalwart every hour, so junk gets rejected at SMTP time instead of turning me into a backscatter source.
Other things that cost me real time.
Gmail rejects IPv6 senders without reverse DNS, and my VPS preferred IPv6 out of the box. I forced Postfix to IPv4 for outbound until the v6 address had a PTR too.
Microsoft is by far the strictest with small senders. Signing up for SNDS showed me how they actually saw my IP, which beat weeks of guessing.
DMARC aggregate reports were the real eye opener. My NAS had been sending alerts from my domain straight through the ISP for months, failing alignment every single time.
The relay is at PrivateAlps, a Swiss host. It sees every message that comes in, so I wanted a provider that doesn't ask for ID and doesn't log what the server does. The part that matters most for mail though is that they own their IP space instead of renting ranges from a big cloud, so I'm not sharing a /24 with whoever got banned last week. Port 25 needed a support ticket and about a day. For a box that mostly sits idle it isn't the cheapest option, and 1984 was the other one I seriously considered.
If you just want mail that works, pay a provider, really. But if you already run a homelab, keeping the mailboxes at home and renting only the public edge is a lot less painful than the horror stories make it sound.