ReconSnapshot--:--:--ZUTC

Email security · Guide

SPF vs. DKIM vs. DMARC: What Each One Does

You need all three. SPF lists which servers may send for your domain, DKIM cryptographically signs each message, and DMARC requires one of them to match the visible From domain and tells receivers what to do when neither does.

By DarkFire Industries · Reviewed · How this guide was made

Side by side

SPFDKIMDMARC
ProvesThe sending server is allowedThe message was signed and not alteredSPF or DKIM passed for the From domain
ChecksEnvelope sender (Return-Path)The d= domain in the signatureThe visible From address
DNS recordTXT at the domainTXT at selector._domainkeyTXT at _dmarc
Survives forwardingNoUsuallyIf DKIM survives
How a receiving mail server decidesA message passes DMARC when SPF or DKIM passes for a domain that aligns with the visible From address. The DMARC policy decides what happens to messages that fail.MessageFrom: you@brand.comSPFIs the sending IP listedfor the Return-Path domain?DKIMDoes the signature verifywith d=domain's public key?eitherDMARCPassed domain alignswith the From domain?PassdeliveredFailapply p=
How a receiving mail server decides. A message passes DMARC when SPF or DKIM passes for a domain that aligns with the visible From address. The DMARC policy decides what happens to messages that fail.

Why one is not enough

SPF alone validates a domain the recipient never sees. DKIM alone can be signed by any domain, including the attacker's own. Only DMARC ties authentication to the From address and publishes a policy, but DMARC has nothing to evaluate without SPF or DKIM.

Try it Check a domain's SPF record

Full tool: SPF Record Checker

How to check all three

Use the SPF checker above, the DKIM checker with your selector, and the DMARC checker. Or run the full Recon Snapshot, which checks all three plus MTA-STS in one report.

Setup order

  1. SPF: list every service that sends as you, ending in ~all or -all.
  2. DKIM: enable signing in each sending service and publish its key.
  3. DMARC: start at p=none with reports, then enforce.

See the whole picture

Run the full Recon Snapshot to check DNS, email authentication, certificates, hosting, exposed services, security headers and lookalike domains together, with a plain-English fix for every finding.

Run a full snapshot

References

  1. RFC 7208 — Sender Policy Framework (SPF)
  2. RFC 6376 — DomainKeys Identified Mail (DKIM) Signatures
  3. RFC 7489 — Domain-based Message Authentication, Reporting, and Conformance (DMARC)
  4. Google — Email sender guidelines

About this guide

Drafted with AI assistance and checked against the primary sources listed above; its embedded tool was tested against live domains before publication. It was last checked on November 25, 2026; standards and provider requirements change, so confirm critical settings against the references. Found an error? Tell us.

Related guides