Lesson 14 of 14 · 13m
Role Mailboxes and Sender Discipline
RFC 2142 role addresses are required infrastructure; aliasing them to one human mailbox and binding senders with mustMatchSender keeps both the deliverability and the audit story clean.
What Actually Happens
RFC 2142 names the mailboxes a domain is required to run: postmaster@, abuse@, and hostmaster@/webmaster@ where relevant, with security@ added by the security-contact convention (security.txt, RFC 9116 — the file at /.well-known/security.txt that points reporters at security@). These aren't courtesy addresses — receivers, blocklists, and vulnerability reporters send to them on the assumption they exist. An abuse@ that 550s tells the network you're not maintaining the domain, and blocklists treat that as signal. A postmaster@ that 550s is worse: other MTAs' administrators use it precisely when your server is already misbehaving.
The cheap way to satisfy the list is aliases. postmaster@, abuse@, security@, dmarc@ all forward into one human mailbox — hello@sudosecurity.org carries exactly that set — so reports land where a person reads them instead of in four accounts nobody logs into. Separate mailboxes for role addresses are how compliance boxes get checked while the reports rot unread.
The Wrong Mental Model
"Any authenticated user can send as any address." A correctly configured MTA binds the authenticated account to the From: identity it may claim — Stalwart calls it mustMatchSender: the noreply@ credential sends as noreply@, not as hello@ or ceo@. Without that binding, one leaked app credential is a spoof-anyone key, and "the app account got popped so the attacker mailed the entire customer list as the founder" is a sentence that has been written about real incidents.
The binding has exactly one legitimate exception, and it exists because of Ghost: Ghost sends member-facing mail as the configured members_support_address (hello@), authenticating as noreply@. The rule that makes that safe is narrow — noreply@ may present hello@, nothing else. One-line exceptions that name both ends are policy; wildcard exceptions are holes.
The Address Discipline
App transactional mail: From: noreply@, Reply-To: hello@. The From sets expectations (a robot sent this), the Reply-To routes humans to humans. Across a multi-app stack the convention lands in env vars — one app's EMAIL_REPLY_TO, another's MAIL_REPLY_TO, another's SMTP_REPLY_TO, all defaulting to the human alias — and the audit trap is that stopped stacks keep stale values: dead .env files pointing at a domain you no longer send from will show up in every grep and confuse every audit until you learn to check docker ps before believing an env file. Contact links on the site point at hello@. And — this one is a real scar — do not link support@ anywhere, because it doesn't exist: Stalwart answers it with a 550, and the person who emailed support discovers the dead address precisely when they needed help. Every public-facing address must either exist or not be printed.
Evidence
The noreply/hello split plus mustMatchSender is what stands between "an app credential leaks" and "attacker spoofs anyone on the domain." Ghost's member-mail behavior is the demonstration that sender binding is real work — the exception for hello@ had to be written because a real application legitimately sends as that address, which is exactly the scenario mustMatchSender exists to gate. The lesson generalizes: any hosted app that impersonates your human addresses will fight your sender binding, and the answer is a named exception, never a looser rule.
Correct Practice
Alias every RFC 2142 role address into a mailbox a human reads — postmaster, abuse, security, dmarc minimum. Bind senders to identities; write exceptions narrowly (noreply → hello, nothing wildcard). Reply-To the human alias on all automated mail. Publish /.well-known/security.txt pointing at security@ so researchers don't have to guess. And audit the addresses you print: if it 550s, either create it or stop printing it — dead contact addresses are reputation and trust failures, not cosmetic bugs.
Keep reading
Related articles from the SudoSecurity blog.
Self-Hosted Email in 2026: Mailcow vs Mailu vs Stalwart — Which Mail Server Should You Trust?
Self-hosted email in 2026 comes with more choices than ever. This guide compares Mailcow, Mailu, and Stalwart across security, performance, resource usage, scalability, administration, and deliverability to help you choose the right mail server for your needs.
Stalwart 1.0 Says It's the Fastest Mail Server on the Planet. Here Are the Numbers.
After five years, Stalwart hit its first stable release on October 26 with benchmarks claiming it beats Postfix and Dovecot in 35 of 38 head-to-head tests. Every one of those numbers was produced by the vendor.
How to Self-Host Your Own Email Server With Mailcow in 2026 — Complete Setup Guide
How to Self-Host Your Own Email Server With Mailcow in 2026 — Complete Setup Guide Meta Description: Stop letting Google and Microsoft read your email. This guide sets up a complete private email server with Mailcow on a NetCup VPS — DNS, SPF, DKIM, DMARC, TLS, webmail, and mobile clients.
What Self-Hosters Are Ripping Out of Their Stacks in 2026
Self-hosted email is losing to Gmail's hard SMTP rejections. Self-hosted password managers are split down the middle. And self-hosted music is doing the opposite of what you'd expect.