ProductFree toolsLearnPricing AboutContact
Sign in Start free trial

SPF, DKIM and DMARC compared

Three DNS records, three different questions. What each one checks, where each falls short, and why they only work as a set.

Updated:
Nov 2026
Read:
5 min
Level:
Beginner

The short version

SPFWas this server allowed?A list of the servers allowed to send for the domain in the Return-Path.What is SPF? →
DKIMWas it signed, and unchanged?A signature proving which domain signed the message and that it wasn't altered.What is DKIM? →
DMARCDoes it match the From address?Checks that SPF or DKIM passed for the domain people see, and says what to do if not.What is DMARC? →

Side by side

SPFDKIMDMARC
ChecksThe sending server's IP addressA signature on the messageThat SPF or DKIM passed for the From domain
Domain it looks atReturn-Path (envelope sender)The d= signing domainFrom, the address people see
DNS recordTXT at the domain rootTXT or CNAME at selector._domainkeyTXT at _dmarc
Survives forwardingNoUsuallyUses whichever still passes
Detects changes to the messageNoYesThrough DKIM
Tells receivers what to doWeakly, through -all or ~allNoYes: none, quarantine or reject
Sends you reportsNoNoYes, daily
Main limitsOne record, 10 DNS lookupsEach sending service needs its own setupNeeds SPF or DKIM aligned to pass

How they work together

On their own, SPF and DKIM both have the same blind spot: they can pass for any domain. An attacker can set up SPF and DKIM perfectly for their own domain, then put yours in the From line. Both checks pass; neither looks at From.

DMARC closes the gap with one rule, called alignment: at least one of SPF or DKIM must pass for a domain that matches the From address. Then it adds what the other two lack: a policy telling receivers what to do with failures, and reports showing you everyone sending as your domain.

Four messages, four outcomes

MessageSPFDKIMDMARC
Your own mail from Microsoft 365, DKIM onPass, alignedPass, alignedPass
Your mail, forwarded by a recipientFailPass, alignedPass
A newsletter tool without custom DKIMPass, for its domainPass, for its domainFail
A spoofed message using your domainFailNoneFail

The third row is the one that surprises people, and the most common reason legitimate mail fails DMARC. See why third-party email fails DMARC.

What to set up first

  1. SPF for every domain that sends, and v=spf1 -all for those that don't.
  2. DKIM on your mail platform and in every service that sends as you.
  3. DMARC at p=none with a reporting address, then read the reports.
  4. Enforce: quarantine, then reject. See moving from p=none to reject.

Common questions

#Do I need all three?

Yes. SPF and DKIM prove where a message came from; only DMARC connects that proof to the From address and tells receivers what to do when it fails. Large mailbox providers now expect all three from anyone sending in volume.

#Is SPF or DKIM enough for DMARC to pass?

Either one is enough, as long as it passes for a domain that matches the From address. Setting up both gives you a fallback when one breaks, for example SPF on forwarded mail.

#Which should I set up first?

SPF and DKIM, then DMARC at p=none. DMARC can't pass without at least one of the other two.