Knowledge Base · Email & Domain Trust

How do SPF, DKIM and DMARC work together?

SPF lists who may send for your domain, DKIM signs each message and DMARC checks that they align with the From address. How the three work together, with a diagram.

Quick answer

SPF publishes which servers may send mail for your domain. DKIM adds a cryptographic signature that proves a message was signed by your domain and not altered. DMARC checks that at least one of them passes and aligns with the visible From address, then applies your policy and reports the results. You need all three for reliable delivery and spoofing protection.

Article 8 of 20 · Email Authentication & Domain TrustInformationalMOFUPresence pillar: Technical Foundation & Trust

The three records side by side

SPF, DKIM and DMARC compared
SPFDKIMDMARC
AnswersWhich servers may send?Was this message signed by the domain and left unchanged?Do the results align with the From address, and what happens if not?
Lives in DNS asTXT at the rootTXT or CNAME at selector._domainkeyTXT at _dmarc
Examplev=spf1 include:spf.protection.outlook.com -allselector1._domainkey → provider keyv=DMARC1; p=reject; rua=mailto:…
Common failureMore than 10 DNS lookups, or a missing senderA sending tool not signing with your domainPolicy stuck at p=none
StandardRFC 7208RFC 6376RFC 7489
SPF, DKIM and DMARC in sequenceSPF, DKIM and DMARC in sequence: SPF (Sending server is on the list); DKIM (Signature verifies with your public key); Alignment (Passing domain matches From); DMARC verdict (Pass, or apply your policy)1SPFSending server is on thelist2DKIMSignature verifies with yourpublic key3AlignmentPassing domain matches From4DMARC verdictPass, or apply your policy
DMARC passes when SPF or DKIM passes and aligns with the From domain.

What is alignment, and why does it matter?

A message can pass SPF for a vendor’s bounce domain and still claim to be from you. DMARC requires that the domain that passed SPF or DKIM matches the domain in the From line. That one rule is what makes spoofing detectable.

The most common setup mistakes

  • Two SPF records instead of one merged record.
  • SPF ending in ~all or ?all forever instead of -all once senders are known.
  • Marketing or billing tools sending without DKIM for your domain.
  • Never reading DMARC reports, so failures go unnoticed.
  • Forgetting parked domains: publish v=spf1 -all and p=reject on domains that never send mail.

Beyond the three: MTA-STS and TLS-RPT

MTA-STS tells other servers to deliver to you only over verified TLS, and TLS-RPT reports failures. The Presence Scan checks for both, because they show a mature mail setup.

Check this on your own domain. The complimentary basic Presence Scan grades your public signals A–F with six pillar scores in under a minute. Run the basic Presence Scan →

Key takeaways

  • SPF lists senders, DKIM signs, DMARC aligns and enforces.
  • Alignment with the From domain is what stops spoofing.
  • Merge SPF into one record and stay under 10 lookups.
  • Lock down parked domains that never send mail.
Questions

Frequently asked questions

Do I need both SPF and DKIM?

DMARC needs only one aligned pass, but Gmail requires both SPF and DKIM for bulk senders and DKIM survives forwarding better, so set up both.

What is the SPF 10-lookup limit?

SPF evaluation may trigger at most 10 DNS lookups. Too many include statements cause a permanent error, which counts as a failure.

How long do DNS changes take?

Usually minutes to a few hours, depending on the record’s TTL.

See your Presence Grade in under a minute.

The complimentary basic Presence Scan grades your domain A–F with six pillar scores. The complete report with every finding and a 30-day fix plan is $997, one-time, on idenetysignal.net.