DEV Community

Mohammed Arshad Ansari
Mohammed Arshad Ansari

Posted on Originally published at domainposture.com

Why DMARC fails when SPF and DKIM both pass

DMARC can fail even when SPF and DKIM both show "pass". The reason is alignment.

The short answer

DMARC does not ask only "did SPF or DKIM pass?" It asks: "did one of them pass for the same domain the reader sees in the From address?"

  • SPF alignment: the domain in the envelope sender (also called Return-Path or MAIL FROM) must match the From domain.
  • DKIM alignment: the domain in the d= tag of the DKIM signature must match the From domain.

One aligned pass is enough. If both passes are for other domains, DMARC fails.

The usual cause

A third-party service sends mail for you. It uses its own bounce domain for SPF and signs with its own DKIM domain. Both checks pass, but for the service's domain, not yours. The From address still shows your domain. Nothing aligns.

Read the full post: https://www.domainposture.com/blog/dmarc-fails-spf-dkim-pass

https://www.domainposture.com/blog/dmarc-fails-spf-dkim-pass

Top comments (0)