What dmarc=fail means
DMARC passes when at least one of SPF or DKIM passes and is aligned with the domain in the
visible From address. dmarc=fail means neither did. Depending on the policy of the domain
(p=none, quarantine or reject), the message is delivered, sent to spam or
rejected.
Alignment: the part that confuses everyone
A message can pass SPF and DKIM and still fail DMARC. SPF checks the domain of the envelope sender (the
Return-Path), and DKIM checks the domain in d= of the signature. If a newsletter tool sends "From:
[email protected]" but uses its own bounce domain and signs with its own domain, both pass for their domain,
and neither is aligned with example.com.
Common causes
- A new service sends mail as your domain and you have not set up its DKIM (custom domain signing) or added it to SPF.
- The service signs DKIM with its own domain instead of yours.
- Forwarding: the forwarder breaks SPF, and DKIM breaks if the message was modified (see body hash did not verify).
- Someone is spoofing your domain. Then DMARC is doing its job.
How to fix it
- Find the sender in the headers: use the email header analyzer on a failing message.
- In that service, turn on DKIM signing with your domain and publish the DNS records it gives you. Check them with the DKIM checker.
- Add the service to your SPF record if it sends with your domain in the Return-Path.
- Read your DMARC reports (
rua) for a few weeks before moving toquarantineorreject.