Skip to content

SPF vs. DKIM vs. DMARC: How to Read Email Headers

Read SPF, DKIM, and DMARC results in two worked email headers and see why two passes can still produce a DMARC failure.

By Sourabh5 min read

SPF checks whether the connecting mail server is authorized for a domain used during delivery. DKIM checks a message signature associated with a signing domain. DMARC connects either successful check to the domain in the visible From address.

To interpret an actual message, find a trusted receiver’s Authentication-Results header and read the domain next to each result. Two lines can say pass while DMARC says fail if the authenticated domains differ from the domain the reader sees.

Find the Domains Behind the Results

Open the full message source or original headers in your mail client. A forwarded excerpt or a screenshot of the inbox may omit fields. If several systems recorded results, identify which receiver you trust to describe the message as it arrived at the mailbox or its inbound gateway.

Teaching illustration showing the domain fields to find beside the receiver’s recorded authentication results.

Scroll horizontally if needed to see the full table.

MethodWhat the receiver checksWhere to look in the example
Sender Policy Framework (SPF)Whether the connecting server is authorized for the checked delivery identityspf= and smtp.mailfrom=
DomainKeys Identified Mail (DKIM)Whether a signature verifies for a signing domaindkim= and header.d=
Domain-based Message Authentication, Reporting, and Conformance (DMARC)Whether a domain from a successful SPF or DKIM check aligns with the visible From domaindmarc= and header.from=

In the worked examples, the SPF identity is the domain used in the mail transfer command MAIL FROM. This is the envelope sender used during delivery. It can differ legitimately from the visible From address. SPF can also check a server’s greeting identity. Read the result property carefully so that you compare the correct domains.

A DKIM signature covers its designated headers and all or part of the message body as specified by the signature. The signing domain is the d= value in a DKIM-Signature header. If there are several signatures, look for the results for each. Simply finding a signature field does not establish successful verification.

One Pass Can Be Enough for DMARC

These fictional header excerpts use reserved example domains. Assume mx.example.org represents the receiving service that the recipient trusts to report results. The examples illustrate the comparison and have no associated sent messages.

text
From: Library Desk <notices@news.example.com>
Authentication-Results: mx.example.org;
    spf=pass smtp.mailfrom=bounce.example.net;
    dkim=pass header.d=news.example.com;
    dmarc=pass header.from=news.example.com

Read the author domain from From first. Here it is news.example.com. The SPF result is a pass for bounce.example.net. That is a successful SPF check, but this domain does not align with news.example.com.

The DKIM signature passes for news.example.com, an exact match for the author domain. It supplies the alignment needed for the reported DMARC pass.

In this fictional header, DKIM passes for the same domain shown in From, so DMARC passes.

Strict alignment requires an exact domain match. Relaxed alignment allows the domains to share the same organizational domain. For instance, bounce.example.com and news.example.com can align in relaxed mode through their shared example.com organizational domain. The two forms of alignment have separate policy settings for SPF and DKIM.

In practice, the organizational domain is determined under the DMARC rules. Reading the last two labels of every domain is an unreliable substitute. This matters when the public suffix itself contains more than one label.

Why SPF and DKIM Can Both Pass While DMARC Fails

Compare the next message to the first. The visible author and SPF result are unchanged. The signing domain is now mail.example.net.

text
From: Library Desk <notices@news.example.com>
Authentication-Results: mx.example.org;
    spf=pass smtp.mailfrom=bounce.example.net;
    dkim=pass header.d=mail.example.net;
    dmarc=fail header.from=news.example.com

SPF passed for a domain under example.net, and DKIM passed for another domain under example.net. Neither lines up with the author domain under example.com. The receiver can record two successful individual checks alongside a DMARC failure.

In this fictional header, both underlying checks pass for unaligned domains and the receiver records a DMARC failure.

A fail result and a delivery decision answer different questions. The receiving service can use the published domain policy and its own local rules to decide what to do. Record dmarc=fail as an authentication observation and check separate evidence for whether the message was delivered, quarantined, or rejected.

When the Receiver Reports Neither Pass Nor Fail

A result such as dmarc=none can indicate that the receiver found no applicable DMARC policy. A temporary lookup error can leave the receiver unable to reach a verdict. A missing result tells you only that you do not see a result from that check in the preserved header. Record the actual label before deciding what the receiver could establish.

What a Header Can Establish

Forwarding changes the connecting server seen by a downstream receiver, so the downstream SPF result can differ. A mailing list that changes signed parts of the message can also affect DKIM. Several lines from different gateways may describe different observations of the same message.

Use the trusted receiver’s reported result. Anyone reading a pasted excerpt has less context about where the header came from. A live DNS lookup performed much later may also see a different policy or key from the one present at delivery.

In a report, state which receiver recorded the outcome and which domain aligned. A DMARC pass supports authorized use of the author domain under the reported checks. It cannot identify the person at the keyboard, verify statements in the message or decide whether a link is safe.

For questions about what the headers and provider can reveal, see what Proton Mail evidence can show. If preserving the original message matters, document its acquisition and keep a copy alongside your notes. The digital evidence hash walkthrough shows how to verify that the working file matches the preserved file.

Was this page helpful?