
An email arrives with spf=pass and dkim=pass, yet the receiving server reports dmarc=fail. This isn’t necessarily a contradiction. SPF and DKIM can successfully authenticate one domain while DMARC evaluates whether either passing identity aligns with the domain in the message’s From header.
Start with the domains in the receiver’s results. A pass for a relay’s own domain, for example, can still leave the domain in the From header unaligned. DMARC checks whether at least one passing SPF or DKIM identity aligns with the domain in the message’s From header. An authentication pass for a relay’s own domain can leave the author’s domain unverified, as described in RFC 9989.
Read the receiver’s results
Send a controlled message to a mailbox you administer. Open its raw headers and identify the Authentication-Results field added by a service the receiver trusts. As RFC 8601 explains, authentication results should only be trusted when they come from an authorized service within that boundary. Record the visible From domain, the domain authenticated by SPF for MAIL FROM, and the signing domain of each valid DKIM signature. Keep the full result so you can compare the same fields after a change.
In this synthetic billing message, the From domain is example.com. Both passing identifiers belong to the relay. SPF authenticates relay.example.net, while the valid DKIM signature uses d=example.net. Both authentication methods pass, but neither aligns with example.com, so DMARC fails.
From: Billing <billing@example.com>
Authentication-Results: mx.receiver.example;
spf=pass smtp.mailfrom=bounce@relay.example.net;
dkim=pass header.d=example.net;
dmarc=fail header.from=example.com
Change one identity and retest
Keep the From address and envelope sender fixed, but configure the relay to sign using d=example.com. Verify its selector and send a second message through the same route to the same receiver. The new DKIM signature now passes and aligns with the From domain, so DMARC passes even though SPF remains unaligned. Check the receiver’s headers to confirm that the intended signature was applied.
From: Billing <billing@example.com>
Authentication-Results: mx.receiver.example;
spf=pass smtp.mailfrom=bounce@relay.example.net;
dkim=pass header.d=example.com;
dmarc=pass header.from=example.com
Check the alignment mode
Strict alignment requires an exact domain match. Relaxed alignment compares organizational domains as the receiver determines them. For example, d=mail.example.com can align with From: billing@example.com in relaxed mode. Check the DMARC record’s aspf and adkim settings when interpreting the result.
For messages with multiple valid DKIM signatures, check each signing domain for alignment. DMARC only needs one passing authentication method that also aligns with the From domain.
Don’t treat a temporary error as evidence of an alignment failure. Check the receiver’s DNS or evaluation logs and repeat the test. A DMARC record using p=none still allows the receiver to evaluate alignment. As RFC 9989 explains, the published policy and the receiver’s final handling decision are separate considerations.
Test forwarding separately
Repeat the test directly and through a forwarder you administer. Start with identical content and an unchanged envelope sender. A different connecting IP can make SPF fail on the forwarded route. The original DKIM signature can still pass if the signed content survives. Add a footer after signing to test the effect of a body change.
An offline test with reserved IP addresses and a temporary signing key produced the SPF and DKIM results below. The DMARC column is the expected result for an applicable policy and exact alignment on each passing identity.
| Delivery path | SPF | DKIM | Expected DMARC result |
| Direct, unchanged | Pass | Pass | Pass through either method |
| Forwarded, unchanged | Fail | Pass | Pass through DKIM |
| Forwarded with a footer | Fail | Fail | Fail |
| Direct with a footer added after signing | Pass | Fail | Pass through SPF |
A forwarder can also rewrite the envelope sender to its own domain. SPF may then pass, but for a domain that does not align with the original From domain. This is one of the forwarding scenarios described in RFC 7960. Save the authenticated identity next to the result so spf=pass does not obscure the cause of a forwarded-message failure.
Check aggregate reports and record the evidence
Compare the same reporting organization, policy domain, sending IP and From domain across reporting windows. In the aggregate-report format defined by RFC 9990, the auth_results fields contain authentication results, while the SPF and DKIM fields under row/policy_evaluated record alignment. In the synthetic example, raw SPF and DKIM pass in both windows. Changing the signing domain to example.com changes the DKIM alignment result and the disposition for that group.
| UTC window | Messages | Aligned SPF / DKIM | DMARC disposition |
| 8 November | 12 | Fail / fail | Quarantine |
| 9 November | 9 | Fail / pass | Pass |
For each incident, keep the trusted header, the authenticated identities, policy domain, and the route alongside the time of the test. Change one setting at a time, then capture fresh direct and forwarded messages and compare the results with the next aggregate report.
Most importantly, don’t treat spf=pass or dkim=pass as proof that DMARC should pass. Check which domain was authenticated and whether that domain aligns with the one in the From header. That distinction is often the key to explaining an otherwise puzzling DMARC failure.
Ramesh Choudhary is the CEO of Sarv. Sarv builds business communications software, including email and collaboration tools.
Author’s note. I used AI to help with research, drafting and editing.
The views expressed by the authors of this blog are their own and do not necessarily reflect the views of APNIC. Please note a Code of Conduct applies to this blog.