Guide
DKIM vs SPF vs DMARC: what each one checks
SPF asks whether the sending host may use the envelope-sender or HELO domain. DKIM asks whether a signature from the d= domain verifies. DMARC is not a third test of that kind. It asks whether an SPF or DKIM pass was for a domain that aligns with the From domain, and one aligned pass is enough.
On this site DKIM is read as three separate checks: the record exists, this message’s signature verifies, and the signing domain aligns. What is DKIM covers each one. This page stays on DKIM’s side of the comparison.
What each one checks
Each check reads a different domain, and that decides what survives a forward or a mailing list.
| Question | SPF | DKIM | DMARC |
|---|---|---|---|
| Identity it reads | The MAIL FROM or HELO domain of the SMTP session. | The d= domain in a DKIM-Signature header, the signing domain. | The domain in the visible From header, the Author Domain, compared with the domain that passed SPF or DKIM. |
| What it tests | Whether the connecting host is authorized to emit mail with that identity. | Whether the signature verifies, which asserts that the signed content has not changed. | Whether an SPF or DKIM pass was for a domain that aligns with the Author Domain. |
| After a plain forward | If the forwarder keeps the original envelope sender, fails unless the forwarder is part of the sender’s infrastructure. If it replaces the envelope sender with its own domain, it might pass, but that domain does not align with the From domain (RFC 7960 section 2.2). | Can still verify, because the signature travels with the message, if the forwarder leaves the body and signed headers alone. | Rests on DKIM, because SPF cannot yield a relevant identifier. |
| After a mailing list | Checks the IP address of the list’s server, not of the server that sent to the list. If the list keeps the original envelope sender and that domain publishes SPF, evaluation fails unless mitigations are used (RFC 7208 section 10.3). | Fails if the list changes the body or a signed header, such as a subject tag or a footer (RFC 7960 section 3.2.3). | Fails unless some SPF or DKIM identifier still passes and aligns. |
| A pass does not show | That the From domain is the one that passed. SPF’s identities are MAIL FROM and HELO. | That the signer wrote the message, or that the signing domain is the From domain. | That the message is safe or desirable. |
DMARC asks whether an aligned check passed
DMARC passes when at least one identifier that passed SPF or DKIM aligns with the From domain. RFC 9989 section 5.3.5: "If one or more of the Authenticated Identifiers align with the Author Domain, the message is considered to pass the DMARC mechanism check." A DKIM signature is in relaxed alignment when its d= domain has the same organizational domain as the From domain, and in strict alignment only when the two are identical. The domain owner chooses the mode (RFC 9989 sections 3.2.10.1, 3.2.10.2 and 4.4).
Section 4.4.1, on several signatures: "A single email can contain multiple DKIM signatures, and it is considered to produce a DMARC "pass" result if any DKIM-Authenticated Identifier aligns with the Author Domain." RFC 9989 obsoletes RFC 7489.
Two messages with the same DKIM result
Suppose both messages below carry a signature that verifies. Only one aligns. The domains are examples.
From: Alice <alice@example.com>
DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=sel1;
h=from:to:subject:date; bh=...; b=...The signing domain example.com is identical to the From domain, so the signature aligns and DKIM supplies the DMARC pass.
From: Alice <alice@example.com>
DKIM-Signature: v=1; a=rsa-sha256; d=mailer.example.net; s=sel1;
h=from:to:subject:date; bh=...; b=...The signature verifies, but mailer.example.net shares no organizational domain with example.com, so it does not align. DMARC passes only if SPF supplies an aligned pass. RFC 9989 section 4.4.1 (May 2026): "There is currently no generally accepted mechanism by which a Domain Owner may assert a list of third-party DKIM Signing Domains that are authorized to sign on behalf of a given Author Domain."
Paste a message shaped like the second one, complete with its body, into the DKIM header analyzer and signature verifier and it shows "All 1 signature verified", an amber "not aligned with From" badge and the finding "No signature domain (d=) aligns with the From domain example.com, so DKIM does not satisfy DMARC." That finding covers DKIM’s half only. The page cannot be linked with a message filled in, and its built-in sample does not verify.
Why DKIM can survive a forward
The signature travels inside the message. A forward that changes neither the body nor the signed headers is likely to leave it valid, while SPF is evaluated for the host that does the forwarding. RFC 6376 Appendix B.2.3: "A Forwarder that does not modify the body or signed header fields of a message is likely to maintain the validity of the existing signature."
Many forwarders do edit mail. RFC 7960 section 2.3: "Modification of email content invalidates most DKIM signatures, and many message-forwarding systems modify email content." Google’s DKIM troubleshooting page: "Even when DKIM is correctly set up for your domain, forwarded messages can fail DKIM."
What dkim.fyi shows of SPF and DMARC
dkim.fyi checks DKIM and does not evaluate SPF or DMARC. The DKIM selector finder shows the raw text of a domain’s SPF and DMARC records, cut in the middle with the full text in a tooltip. github.com publishes both, as read from DNS on 2026-10-29.
The header analyzer compares two names, the d= of each signature and the From domain. It never reads a DMARC record, so it cannot tell you a domain’s alignment mode or policy. It uses its own list of suffixes, not the Public Suffix List, so a name under a shared suffix such as github.io can be misjudged. The spf= and dmarc= badges on the email test repeat a receiving server’s header and are not dkim.fyi results.
Questions
- Do I need SPF if I have DKIM?
For DMARC alone, no. One aligned pass is enough, and DKIM can supply it. Receivers set their own rules, though. Google’s sender guidelines for mail to Gmail accounts say: "Set up SPF or DKIM email authentication for your sending domains." Its bulk-sender section says: "Set up SPF and DKIM email authentication for your domain." Yahoo lists "Implement SPF or DKIM at a minimum" for all senders and "Implement both SPF & DKIM" for bulk senders. Those are provider rules, not part of the protocols. To publish a key, see How to set up DKIM.
- Does a DKIM pass say who wrote the message?
No. RFC 6376 section 1.2: "The signing identity specified by a DKIM signature is not required to match an address in any particular header field because of the broad methods of interpretation by recipient mail systems, including MUAs." A pass shows a signature verified for its signing domain. Whether that domain is the From domain is the alignment check.
- Does a failed DKIM check mean the message is rejected?
Not under DKIM’s own rules. RFC 6376 section 6.1: "Therefore, a Verifier SHOULD NOT treat a message that has one or more bad signatures and no good signatures differently from a message with no signature at all." Section 6.3 adds: "If the email cannot be verified, then it SHOULD be treated the same as all unverified email, regardless of whether or not it looks like it was signed." For the result strings a receiver prints, see Read DKIM authentication results.
Try it
Sources
- RFC 6376: DomainKeys Identified Mail (DKIM) Signatures
- RFC 7208: Sender Policy Framework (SPF)
- RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance (DMARC)
- RFC 7960: Interoperability Issues between Domain-based Message Authentication, Reporting, and Conformance (DMARC) and Indirect Email Flows
- RFC 8617: The Authenticated Received Chain (ARC) Protocol
- Google: Email sender guidelines
- Google Workspace Help: Troubleshoot DKIM issues
- Yahoo Sender Hub: Sender Requirements & Recommendations