Blog · Dmarc
Why Your Emails Fail DMARC Alignment at Third-Party Receivers (Even When Your Records Look Correct)
What DMARC alignment actually means from the receiver side
DMARC alignment has two independent checks: SPF alignment and DKIM alignment. At least one must pass for a DMARC pass. SPF alignment requires the domain in the RFC5321.MailFrom envelope to match the domain in the RFC5322.From header. If you send from support@example.com but your envelope is configured for a third-party mail system's domain, SPF alignment fails even when SPF itself passes. DKIM alignment requires the domain in the DKIM-Signature header's d= parameter to match the RFC5322.From header domain. If your DKIM record signs a subdomain or a different base domain than your From header, alignment fails. The From header is what recipients see and what DMARC was designed to protect. The alignment check is whether the authenticated identity matches that visible From header.Why your SPF or DKIM can pass but still fail alignment
SPF passes when the sender IP is authorized for the MailFrom domain. DKIM passes when the cryptographic signature verifies. Neither confirms that the From header domain matches. The most common real-world case is bulk email through third-party senders. A company sends from hello@company.com but the envelope is routed through SendGrid or Mailchimp. SPF passes because the sender is authorized for SendGrid's envelope domain. DKIM passes because the message is properly signed. But From header alignment fails because company.com does not match SendGrid's envelope domain. This is why moving to p=reject breaks a lot of legitimate bulk email. The stricter policy tells receivers what to do with failures, but it does not fix the underlying misalignment.Common causes of alignment failures at third-party receivers
Subdomain misalignment
If your From header is newsletter@company.com but your DKIM is signed for company.com, alignment fails. Subdomains do not automatically align with their parent domains under DMARC rules. Some receivers apply organizational domain matching that collapses subdomains to the parent, but this behavior varies and should not be relied upon.Selector mismatches
DKIM signatures are tied to specific selectors in the DNS record. If you rotate DKIM keys and the new selector is not yet published, DKIM fails. If the selector exists but the signing domain does not match your From header domain, DKIM alignment fails independently of whether the signature itself verifies.Forwarding
When an email is forwarded, the MailFrom envelope changes to the forwarder's domain. If the forwarder does not re-sign with the original DKIM selector, both SPF and DKIM fail from the receiver's perspective.How to diagnose alignment failures using aggregate reports
Your DMARC aggregate reports (sent to the address in your rua= DNS record) tell you which receivers are seeing alignment failures and which authentication mechanism caused them. In a standard aggregate report, look for result=fail rows and check the reason column for alignment-specific failures. The critical part is having an active rua= address receiving these reports. Many organizations have p=none with reports configured but never look at them. If you have reports coming in, search for the rows where result=fail and result_source_ip tells you which receiver generated the report.How to fix alignment failures before moving to p=reject
- Pull your aggregate reports and identify which receivers are failing your mail
- Check whether the failure is SPF alignment, DKIM alignment, or both
- For SPF alignment failures: verify your envelope domain matches your From header domain, or ensure your third-party sender is using an authorized subdomain that aligns
- For DKIM alignment failures: confirm your DKIM selector is signing for the correct From header domain
- Test by sending to a known-good inbox at the failing receiver before scaling up
What DMARCFlow adds to alignment monitoring
DMARCFlow processes your aggregate reports and surfaces alignment failures across all receiving domains in a structured view. For teams managing multiple sending domains or third-party email flows, this means catching alignment issues before they cause widespread rejection rather than discovering them from user complaints.FAQ
Q: Can SPF pass but alignment fail?
A: Yes. SPF alignment requires the From domain to match the RFC5321.MailFrom domain. SPF passing only means the envelope domain is authorized - it says nothing about whether that domain matches your From header. These are two separate checks.
Q: Does p=reject prevent alignment failures?
A: No. p=reject tells receivers what to do with messages that fail DMARC. It does not fix the underlying alignment problem. If your emails fail alignment with p=reject in place, receivers will reject them. The policy controls what happens after a failure, not the cause.
Q: Why did my emails start failing alignment when nothing changed on my end?
A: Receivers can change their DMARC processing behavior without notice. A receiver that previously applied loose alignment checks might begin enforcing stricter alignment. In the Proofpoint case referenced above, the sender's own configuration had not changed at all - the receiver had tightened its enforcement.