Understanding DMARC
DMARC alignment
Passing SPF or DKIM is not enough. The domain that passed has to match the one in the From line.
Alignment is the part of DMARC that makes it work. SPF and DKIM each authenticate a domain, but not necessarily the one in the From address. DMARC passes only when at least one of them passes and its domain matches the From domain.
SPF alignment
The envelope sender domain (Return-Path) that SPF checked must match the From domain.
- From:
news@example.com, Return-Path:bounce@mail.example.com: aligned in relaxed mode. - From:
news@example.com, Return-Path:bounce@sendgrid.net: not aligned. SPF may pass, but it does not count.
DKIM alignment
The signing domain (d= in the DKIM-Signature) must match the From domain.
- From:
billing@example.com,d=example.com: aligned. - From:
billing@example.com,d=mailgun.org: not aligned.
Relaxed and strict
In relaxed mode (the default), the organisational domains must match, so mail.example.com aligns with example.com. In strict mode (adkim=s or aspf=s) they must match exactly. Relaxed is right for almost everyone.
What this means in practice
For each service that sends as you, configure at least one of:
- Custom DKIM so it signs with your domain (preferred, because it survives forwarding), or
- A custom return-path on a subdomain of yours, included in SPF.
Your reports show the SPF and DKIM alignment rate for each sending source, so you can see which services still need this.
See it on your own domain.
Check your DMARC, SPF and DKIM setup in seconds, then let us watch your reports for you.
Start free