Lessons / Lesson 8, Gibson & Shelley, Ch. 3
SPF, DKIM and DMARC: proving an email is really from who it says
SPF lists who may send email for a company, DKIM seals each email so changes show, and DMARC tells inboxes what to do with fakes.

Tap any panel to explore it.
Like you’re 10
Imagine getting a letter that says it’s from your favourite football club, but it’s really from a trickster after your pocket money. Anyone can write any name on an envelope, and email works the same way. So the internet uses three helpers:
SPF is the guest list. The club publishes a list of the only post offices allowed to send its letters. If a letter arrives from a post office that isn’t on the list, something is fishy.
DKIM is the wax seal. Every real letter gets a special seal that only the club can make. If someone opens the letter and changes it on the way, the seal won’t match.
DMARC is the club’s rulebook for your postman. It says: “If a letter claiming to be from us has neither the right post office nor a matching seal, put it in the bin.” It also asks the postman to send the club a report about the fakes.
Grown-up version
All three are published as TXT records in the sending domain’s DNS.
| What it checks | Published at | |
|---|---|---|
| SPF (Sender Policy Framework) | Is the sending server’s IP address authorised to send for this domain? | yourdomain TXT v=spf1 … |
| DKIM (DomainKeys Identified Mail) | Does the signature in the header verify against the domain’s public key, proving the content wasn’t altered? | selector._domainkey.yourdomain |
| DMARC (Domain-based Message Authentication, Reporting and Conformance) | Did SPF or DKIM pass for a domain that aligns with the visible From address? What should happen if not? | _dmarc.yourdomain |
The exam trap: DMARC does not fail an email just because one check fails. An email passes DMARC if either SPF or DKIM passes and aligns with the From domain. It fails only when both do.
Why alignment matters: SPF on its own checks a hidden “envelope” sender address, not the From address people see. A scammer can pass SPF for their own domain while showing your company’s name. DMARC closes that gap by requiring the checked domain to match the visible one.
DMARC policies: p=none (monitor only), p=quarantine (spam folder), p=reject (refuse). Companies usually start at none, read the reports to find all their legitimate senders, then tighten to reject.
What they don’t do: none of them encrypt email, and none stop a scammer using a lookalike domain such as paypa1.com. They only protect the exact domain that publishes them.
Try it yourself
You can look up any company’s DMARC policy from a terminal. On Mac or Linux, type dig TXT _dmarc.bbc.co.uk +short. On Windows, type nslookup -type=TXT _dmarc.bbc.co.uk. Swap in your bank or employer’s domain and look at the p= value: reject means fakes are refused, none means they’re only being watched.
Why a buyer cares
- The risk it reduces: business email compromise, where criminals pose as a CEO or supplier to get payments redirected. It is consistently one of the costliest cybercrimes reported to the FBI. Spoofed emails also damage a brand’s reputation with its customers.
- Pressure: since 2024, Google and Yahoo require SPF, DKIM and DMARC from anyone sending email in bulk, and Microsoft followed for Outlook in 2025. Without them, marketing emails get rejected. In the UK, the NCSC’s Mail Check helps public bodies enforce DMARC.
- Who owns it at a company: IT or security, but marketing often feels the pain first, because their email platform is one of the senders that must be authorised.
- What gets bought: DMARC management services (Valimail, dmarcian, Red Sift), and email security gateways (Proofpoint, Mimecast) that use these checks alongside phishing detection.
- A good discovery question: “Is your domain’s DMARC policy at reject yet, and do you know every service that sends email in your name?”
The one thing to remember
SPF checks who sent it, DKIM checks it wasn’t changed, and DMARC decides what happens when neither check passes.
Buyer score
8/10
Fake emails are behind some of the costliest fraud there is, and the big inbox providers now refuse bulk mail without these records.
The pitchStops criminals sending emails that look like they came from your company, to your customers or your finance team.
- BudgetIs there a product category companies buy for this?
- 2/2.5
- PainDoes it cause breaches or outages people have heard of?
- 2.5/2.5
- PressureDo regulators, insurers or auditors demand it?
- 2/2.5
- OwnerIs there a clear buyer who is judged on it?
- 1.5/2.5
Check yourself
3 quick questions. Get them all right and this lesson is marked as learned.
1An email fails SPF but passes DKIM, and the DKIM domain aligns with the From address. What does DMARC decide?
DMARC passes if either SPF or DKIM passes and aligns. It fails only when both fail.
2Which DMARC policy tells receivers to refuse failing email?
none only monitors, quarantine sends to spam, and reject refuses the email.
3Where are SPF, DKIM and DMARC published?
Receivers look up the sender’s DNS to check the email against them.
Revision cards
For later: answer out loud first, then check.
1What does SPF check?
Whether the server that sent the email is on the domain’s published list of approved sending servers.
2What does DKIM add to an email?
A digital signature in the email header. The receiver checks it with the public key published in the sender’s DNS, which proves the email wasn’t changed and came from that domain.
3When does an email pass DMARC?
When SPF or DKIM passes and the domain it checked matches the visible From address (this is called alignment). It only takes one of the two.
4What are the three DMARC policies?
p=none (just monitor and report), p=quarantine (send to spam) and p=reject (refuse delivery).
5Where are SPF, DKIM and DMARC published?
As TXT records in the sending domain’s DNS. DMARC lives at _dmarc.yourdomain.
Your progress is saved on this device only.