What alignment means

SPF authenticates the envelope sender and the connecting IP. DKIM authenticates the domain that signed the message. DMARC compares the authenticated domain with the From domain and requires at least one of them to align.

If SPF passes for a bounce domain but the From domain is different, DMARC can still fail. If DKIM signs with a third-party domain that does not align, DMARC can fail too. Alignment is the bridge between authentication and the visible sender.

Relaxed vs strict

adkim and aspf control alignment for DKIM and SPF. The default is relaxed (r), which allows the organisational domain to match. Strict (s) requires an exact match between the authenticated domain and the From domain.

Relaxed is easier to deploy and is the common choice. Strict is stricter but can break subdomains and third-party senders if they are not configured with the exact domain. Choose deliberately and test with reports.

Why alignment fails

A third-party email provider may send with its own return-path or DKIM domain. A CRM may use a custom bounce domain that does not match the From domain. Forwarding can break SPF, and a rewriter can change the envelope sender.

Subdomains are another common source. If a subdomain sends mail with a different From domain, the organisational-domain rule may or may not save you depending on the alignment mode and the policy for subdomains.

How to fix it

Ask each sender to use your domain in the return-path or DKIM signature. Most email providers let you configure a custom bounce domain and a DKIM key for your domain. Use both when possible.

Check the DMARC reports for the authenticated domain and the alignment result. Fix the sender, then re-test. Do not switch to reject until the reports show that legitimate mail aligns.

Frequently asked questions

What is DMARC alignment?

It is the rule that the domain authenticated by SPF or DKIM must match the domain in the From header, under relaxed or strict mode.

Relaxed vs strict: which should I use?

Relaxed is easier and works for most domains. Strict is useful when you need exact matching, but it requires more control over every sender.

Why does DMARC fail if SPF passes?

Because SPF may pass for a domain that does not align with the From domain. DMARC requires alignment, not just a pass.

How do I test alignment?

Check the DMARC aggregate reports and the Authentication-Results headers. A checker can show the record, but the reports show what real receivers see.

Related