Skill · 5 hands-on labs

Email Header Analysis (SPF, DKIM, DMARC)

Learn to read raw email headers: From vs Return-Path, Reply-To, Received hops, Message-ID and Authentication-Results with SPF, DKIM and DMARC. Real .eml files.

What is Email Header Analysis (SPF, DKIM, DMARC)?

Email header analysis means reading the lines at the top of an email that mail servers add on the way. The From line is just text anyone can type. Return-Path, Received and Authentication-Results show where the email really came from and whether the sending domain vouched for it with SPF, DKIM and DMARC. It is the first step of every phishing investigation.

How analysts do it

  1. Open the raw source (.eml in a text editor, or Ctrl+U in Thunderbird).
  2. Compare the From address with Return-Path and Reply-To.
  3. Read Received lines from the top: the top one is written by your own server.
  4. Read Authentication-Results: SPF, DKIM and DMARC, and which domain each one checked.
  5. Compare with a known good email from the same sender.

What to look for

  • A display name that matches someone you know with an address that does not.
  • Reply-To pointing to a different domain.
  • DMARC fail on an email that claims to come from your own domain.
  • All checks passing for a lookalike domain.
  • Date header time zones or Message-ID domains that do not fit the sender.

Practise it: 5 labs, easiest first

Every lab gives you real evidence to download and a set of questions. Guided labs tell you where to look, challenges do not.

Certifications that test this skill

Related skills

Questions people ask

What is the difference between SPF, DKIM and DMARC?

SPF checks whether the sending server is allowed to send for the envelope domain. DKIM checks a signature added by the sending domain. DMARC checks that the domain in the visible From line matches a domain that passed SPF or DKIM, and tells receivers what to do when it does not (none, quarantine or reject).

Does DMARC pass mean an email is safe?

No. It only means the domain in the From line sent it. Attackers register lookalike domains and set up SPF, DKIM and DMARC correctly, so every check passes. You still have to read the domain itself.

Which Received header should I trust?

Read them from the top. The top Received line is added by your own mail server and is the most trustworthy. Lines further down were written by servers you do not control and can be faked.