Course
Email Security Infrastructure
SPF, DKIM, DMARC, MTA-STS, phishing analysis, header forensics, and running mail that doesn't get spoofed or dropped.
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.
Reviews
Enrolled members can rate this course.
No reviews yet.
SMTP and the Authentication Triad
What actually crosses the wire, why From: is display data, and how SPF, DKIM, and DMARC each bind to a different object.
- 01The Envelope Is Not the LetterSMTP uses a separate MAIL FROM envelope that never has to match the From: header your client displays, and every email authentication layer exists because of that split.16mOpen
- 02SPF Authorizes a PathSPF is a DNS-published list of IPs allowed to use your envelope domain — it validates the connecting server's network path, never the human sender.15mOpen
- 03DKIM Signs Bytes, Not PeopleDKIM is a domain-level signature over selected headers and a body hash — it proves a domain's MTA handled the message, not that the listed author wrote it.16mOpen
- 04DMARC Is the EnforcerDMARC adds two things SPF and DKIM lack — alignment against the From: header and an enforcement policy receivers actually apply — plus reporting.15mOpen
Transport Security and Delivery
STARTTLS stripping, MTA-STS, IP reputation, and what a receiving MTA checks before it ever reads your content.
- 01STARTTLS Is a SuggestionSTARTTLS upgrades are opportunistic and strippable; MTA-STS pins transport encryption with an HTTPS-fetched policy and TLS-RPT closes the visibility loop.15mOpen
- 02Your IP Has a RésuméReceivers gate on IP reputation and forward-confirmed reverse DNS before SPF or DKIM is even consulted — a cloud IP with no PTR is dead on arrival.14mOpen
- 03What Your Inbound MTA ChecksInbound filtering is a pipeline ordered cheap-to-expensive — DNSBL and greylisting at connection time, milter scoring at DATA, Sieve at delivery — and most verdicts never read the text.14mOpen
Header Forensics and Phishing
Reading Received: chains, Authentication-Results, and ARC, then taking apart a real phishing message field by field.
- 01Read Received: Bottom-UpEvery hop prepends a Received: header; the one your own infrastructure wrote is the trust boundary, and everything below it is what the client claimed.20mOpen
- 02Authentication-Results and ARCEach verdict in Authentication-Results binds to a different field — smtp.mailfrom, header.i, header.from — and only dmarc= ties any of them to the sender a human sees.18mOpen
- 03Dissecting a Phishing EMLSafe analysis of a suspicious message: extract From vs display name, Reply-To, lookalike domains, URLs, and attachment hashes from the raw .eml without ever rendering it.22mOpen
Running Mail That Delivers
Self-hosting an MTA, earning IP reputation, ramping DMARC to reject, and keeping sender identities disciplined.
- 01Running Your Own MTASelf-hosting mail means the server is 20% of the job — ports, TLS renew hooks, config reload semantics, and backups are where the work actually lives.18mOpen
- 02Deliverability Is EarnedInbox placement runs on per-IP and per-domain reputation — so transactional and bulk streams get separate identities, new IPs warm slowly, and 250 OK means accepted, not delivered.17mOpen
- 03From p=none to p=rejectDMARC aggregate reports are an inventory of everyone mailing as your domain — read them, enroll the legitimate senders, then ramp quarantine with pct= before touching reject.16mOpen
- 04Role Mailboxes and Sender DisciplineRFC 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.13mOpen