
SPF, DKIM, and DMARC are not three brands of the same product. They answer different questions. Teams get stuck because a dashboard shows one green check and they stop.
This comparison is for operators who send campaigns or product mail from a domain they control. Deep dives live in SPF, DKIM, and DMARC. For DNS lookups, use the DKIM record checker.
Direct answer
| Protocol | Question it answers | Where it lives | Failure mode |
|---|---|---|---|
| SPF | May this IP / HELO identity send for this envelope domain? | TXT on the envelope domain | Forwarding and extra hops often break it |
| DKIM | Was this message signed with a key for d=? |
TXT at selector._domainkey.d |
No signature, broken body hash, missing key |
| DMARC | Did SPF or DKIM pass and align with From? If not, what should receivers do? | TXT on _dmarc.domain |
p=none does nothing to forged From; misalignment fails even if SPF passed |
You want all three. SPF without DKIM is fragile after forwarding. DKIM without SPF leaves a gap on unsigned paths. Neither replaces DMARC’s alignment and policy.
SPF: authorization, not a signature
SPF lists mechanisms (ip4, include, a, mx) that may use the envelope (MAIL FROM / Return-Path) domain. Receivers check the connecting IP against that list.
What SPF does not do:
- It does not hash the subject or body.
- It does not care about the visible From header by itself.
- It does not survive many forwarders, because the forwarding server’s IP is not in your SPF.
~all (softfail) versus -all (fail) changes how some receivers treat unauthorized IPs. It is not a substitute for DMARC. Keep the record inside the 10 DNS lookup limit. Do not stack leftover ESPs.
When SPF “passes” on a vendor domain (bounce.esp.example) while From is [email protected], that pass is unaligned. DMARC will not use it.
DKIM: a signature over selected headers and a body hash
DKIM attaches DKIM-Signature. Receivers fetch the public key and verify b=. A pass means the signed material matches.
What DKIM does not do:
- It does not encrypt mail.
- It does not prove a human authored the text.
- It does not authorize IPs.
DKIM often does survive forwarding if the body and signed headers are intact. That is why DMARC deployments lean on it.
You need the right selector. Several keys can exist. Checking the newsletter selector will not explain app mail.
d= must align with From for DMARC to count the pass. A vendor d=esp.example on your campaign is a DKIM pass that still fails DMARC.
DMARC: alignment plus policy
DMARC looks at the organizational domain of the visible From address (relaxed alignment) or an exact match (strict). It asks: did SPF pass and align, or did DKIM pass and align? One aligned pass is enough.
Then it applies p=:
none— monitor. Forgeries still deliver as far as other filters allow.quarantine— prefer junk or similar.reject— prefer not to accept.
rua= aggregate reports tell you who is sending as you. Read them before jumping to reject. pct= can ramp enforcement.
BIMI wants enforced DMARC. See how to add a BIMI logo.
A worked example
You send newsletters as [email protected] through an ESP.
Healthy path
- Envelope domain: something the ESP controls or a custom bounce domain you SPF.
- DKIM:
d=brand.com, selector published, signatures on campaign mail. - DMARC:
_dmarc.brand.comwithp=quarantineafter reports look clean.
SPF may pass on a bounce subdomain. DKIM passes aligned on brand.com. DMARC passes on DKIM even if SPF is unaligned.
Unhealthy path people ship
- SPF includes the ESP.
- DKIM signs as
d=mail.esp.com. - DMARC is
p=noneor missing.
Gmail may still show SPF/DKIM pass on the vendor identities. Forged From: [email protected] is not constrained. You did not finish authentication; you finished a vendor wizard.
Which should you set up first?
Practical order:
- Inventory every system that sends with your domain (ESP, app, billing, support, Google Workspace, forms).
- Publish SPF that covers current sources only.
- Enable DKIM on each source with
d=on your domain. Check the records. - Publish DMARC
p=nonewithrua=. - Fix unaligned sources. Remove abandoned
include:mechanisms. - Move to quarantine, then reject when leftover senders are gone.
Skipping to reject without reports is how you block invoices and password resets.
“Do I need all three if I only send newsletters?”
Yes, if you care about your From domain. Newsletter volume is a common forgery target. Receivers also use this cluster as a reputation input. It is not a spam guarantee. Permission and complaints still dominate placement (why emails go to spam).
If you only send from a Workspace inbox to people who know you, you still want SPF, DKIM, and DMARC. Workspace documents the records; you still have to publish them.
Myths
“SPF is deprecated.” No. It is incomplete alone.
“DKIM alignment is optional if SPF passes.” Optional for DKIM itself. Required if you want that DKIM pass to satisfy DMARC.
“A 10/10 auth score means inbox.” Authentication is the floor. List quality is the building.
“One include: covers every SaaS.” Each include costs lookups. Prefer DKIM alignment per source and keep SPF short.
How reports fit (and how they do not)
DMARC aggregate (rua) XML is ugly and invaluable. It shows source IPs, whether SPF/DKIM passed, and whether alignment held. You do not need to read XML by hand forever—use a parser—but you do need to look at who is sending.
Surprises that show up:
- A CRM you forgot
- A payment provider using your domain in From
- A printer/scanner
- Spoofed volume from random botnets (this is why you eventually enforce)
SPF and DKIM do not give you that domain-wide picture. They evaluate one message. DMARC is the overlay.
Forensic (ruf) reports are sensitive and less often worth the privacy hassle for small teams. Start with aggregate.
When a dashboard says “99% pass,” ask: pass of what, on which domain, aligned or not. Unaligned SPF passes inflate vanity charts.
FAQ
Can I skip SPF if DKIM always passes? You can have DMARC pass on DKIM alone. SPF still documents who may use the envelope domain and helps paths that are not signed. Keep it.
Can I skip DKIM if SPF always passes? Forwarding will hurt you, and many receivers weigh signatures. Do not skip DKIM for campaign mail.
Does p=none protect the brand? No. It is a camera, not a lock. Use it to see sources, then enforce.
Why did DMARC fail when Gmail showed SPF pass? The pass was probably on an unaligned envelope domain. DMARC needs alignment with From.
Is BIMI a fourth protocol you must have? No. It is optional display on top of enforced DMARC.