Skip to content

Course

Email Security Infrastructure

SPF, DKIM, DMARC, MTA-STS, phishing analysis, header forensics, and running mail that doesn't get spoofed or dropped.

14 lessons

Course Q&A

Keep reading

Related articles from the SudoSecurity blog.

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.

  1. 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
  2. 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
  3. 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
  4. 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.

  1. 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
  2. 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
  3. 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.

  1. 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
  2. 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
  3. 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.

  1. 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
  2. 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
  3. 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
  4. 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