{"id":1701,"date":"2026-12-04T01:10:25","date_gmt":"2026-12-04T01:10:25","guid":{"rendered":"https:\/\/blockoala.com\/index.php\/2026\/12\/04\/diagnosing-a-dmarc-failure-when-both-spf-and-dkim-pass\/"},"modified":"2026-12-04T01:10:25","modified_gmt":"2026-12-04T01:10:25","slug":"diagnosing-a-dmarc-failure-when-both-spf-and-dkim-pass","status":"publish","type":"post","link":"https:\/\/blockoala.com\/index.php\/2026\/12\/04\/diagnosing-a-dmarc-failure-when-both-spf-and-dkim-pass\/","title":{"rendered":"Diagnosing a DMARC failure when both SPF and DKIM pass"},"content":{"rendered":"<p>A billing message can show <code>billing@example.com<\/code> in the From field while its relay uses <code>bounce@relay.example.net<\/code> as the envelope sender and <code>example.net<\/code> as the DKIM signing domain. In this synthetic example from Ramesh Choudhary, CEO of Sarv, the receiver reports <code>spf=pass<\/code>, <code>dkim=pass<\/code> and <code>dmarc=fail<\/code>. Both passes are valid, but neither authenticates a domain aligned with <code>example.com<\/code>.<\/p>\n<p><strong>DMARC needs only one aligned pass.<\/strong> Under <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc9989.html\" rel=\"noopener nofollow\" target=\"_blank\">RFC 9989<\/a>, the receiver compares the visible From domain with the domain authenticated by SPF or by a valid DKIM signature. The useful diagnostic question is not just whether a check passed, but which domain passed it.<\/p>\n<h2>Compare the domains in a trusted header<\/h2>\n<p>Send a test message to a mailbox you administer and open its raw headers. Use the <code>Authentication-Results<\/code> field added by a service the receiver trusts, as described in <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc8601.html\" rel=\"noopener nofollow\" target=\"_blank\">RFC 8601<\/a>. Compare the From domain with the domain in <code>smtp.mailfrom<\/code> for SPF and the <code>header.d<\/code> value for each passing DKIM signature.<\/p>\n<p>In the billing example, changing only the relay\u2019s signing domain from <code>example.net<\/code> to <code>example.com<\/code> is enough to change the outcome. Verify the signing selector, then send another message along the same route to the same receiver. If the new signature passes, it authenticates the exact From domain. DMARC now passes through DKIM even though SPF still authenticates <code>relay.example.net<\/code>.<\/p>\n<p>An exact match is required under strict alignment. Relaxed alignment compares organizational domains as determined by the receiver, so a valid signature from <code>mail.example.com<\/code> can align with a From domain of <code>example.com<\/code>. Check <code>adkim<\/code> for the DKIM alignment mode and <code>aspf<\/code> for the SPF mode. If the receiver reports a temporary error, check its DNS or evaluation logs and repeat the test rather than treating the error as an alignment failure.<\/p>\n<h2>Separate forwarding from changes to the message<\/h2>\n<p>Forwarding can change the connecting IP, causing SPF to fail even when the envelope sender stays the same. A DKIM signature can survive that change if the signed content remains intact. Choudhary\u2019s offline test used reserved IP addresses and a temporary signing key. The SPF and DKIM columns below are test results; the DMARC column shows the <strong>expected<\/strong> outcome given an applicable policy and exact alignment for each passing identity.<\/p>\n<table>\n<thead>\n<tr>\n<th>Delivery path<\/th>\n<th>SPF<\/th>\n<th>DKIM<\/th>\n<th>Expected DMARC result<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Direct, unchanged<\/td>\n<td>Pass<\/td>\n<td>Pass<\/td>\n<td>Pass through either method<\/td>\n<\/tr>\n<tr>\n<td>Forwarded, unchanged<\/td>\n<td>Fail<\/td>\n<td>Pass<\/td>\n<td>Pass through DKIM<\/td>\n<\/tr>\n<tr>\n<td>Forwarded, footer added after signing<\/td>\n<td>Fail<\/td>\n<td>Fail<\/td>\n<td>Fail<\/td>\n<\/tr>\n<tr>\n<td>Direct, footer added after signing<\/td>\n<td>Pass<\/td>\n<td>Fail<\/td>\n<td>Pass through SPF<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>A forwarder can also rewrite the envelope sender. In that case SPF may pass for the forwarder\u2019s domain without aligning with the original From domain, a scenario described in <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc7960.html\" rel=\"noopener nofollow\" target=\"_blank\">RFC 7960<\/a>.<\/p>\n<h2>Confirm the change in aggregate reports<\/h2>\n<p>In the aggregate reports defined by <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc9990.html\" rel=\"noopener nofollow\" target=\"_blank\">RFC 9990<\/a>, <code>auth_results<\/code> records authentication results, while the SPF and DKIM fields under <code>row\/policy_evaluated<\/code> record alignment. Compare the same reporting organization, policy domain, sending IP and From domain across reporting windows.<\/p>\n<p>In Choudhary\u2019s synthetic report, all 12 messages in the 8 November UTC window passed raw SPF and DKIM checks, but neither domain aligned and the reported disposition was quarantine. In the 9 November UTC window, all nine messages again passed both raw checks. This time the DKIM signing domain was <code>example.com<\/code>, so DMARC passed through DKIM alone.<\/p>\n<p>Keep the trusted header, authenticated domains, policy domain, route and test time together when comparing results. Delivery alone is not proof of a pass: a policy of <code>p=none<\/code> still permits alignment evaluation, and the receiver\u2019s final handling decision is separate from the published policy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A billing message can show billing@example.com in the From field while its relay uses bounce@relay.example.net as the envelope [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1700,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1701","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/posts\/1701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/comments?post=1701"}],"version-history":[{"count":0,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/posts\/1701\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/media\/1700"}],"wp:attachment":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/media?parent=1701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/categories?post=1701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/tags?post=1701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}