DMARC alignment
Alignment — identifier alignment in RFC 9989 — is the rule
that turns SPF and DKIM passes into a
DMARC pass. It is not enough for SPF or DKIM to pass: the
domain they authenticated must match the domain in the visible From:
address.
- SPF alignment compares the
From:domain with the envelopeMAIL FROMdomain. - DKIM alignment compares the
From:domain with thed=domain of a DKIM signature. A message can carry several signatures and needs one that both verifies and aligns, so a platform’s ownd=sitting alongside yours costs you nothing.
DMARC passes if either SPF or DKIM passes and aligns.
Relaxed vs strict
- Relaxed (default): the two domains need only share an organizational
domain. For example,
mail.yourdomain.comaligns withyourdomain.comwhen both shareyourdomain.comas their organizational domain. - Strict: the domains must be identical.
Set the mode per mechanism with aspf= (SPF) and adkim= (DKIM) in the DMARC
record; both default to relaxed, which is usually what you want, because email
providers routinely sign and send from a subdomain of your domain.
What breaks alignment in practice
A forged message can pass SPF and DKIM perfectly well — for the attacker’s own domain, which is the thing alignment is there to catch. The same shape turns up in your own mail whenever a sender authenticates under its domain instead of yours, and that is where “SPF and DKIM are green, so why is DMARC failing?” comes from.
- Bulk senders using their own envelope domain. Marketing platforms send with
MAIL FROMon their infrastructure, so SPF passes for them and aligns with nothing. With relaxed alignment, either of two fixes works if the platform offers it: a valid DKIM signature whosed=is a subdomain of yours, or a custom return path on a subdomain of yours that authorizes the platform and passes SPF. Both fixes require the authenticated domain to share theFrom:domain’s organizational domain; a subdomain can have a separate one. If you require strict alignment for the mechanism you use, its authenticated domain must match theFrom:domain exactly. - Google Workspace’s default signing key. Workspace signs everything from the
start, but until you generate your own key, publish it in DNS and start
authentication, it signs with a key Google owns, whose
d=is a*.gappssmtp.comname — your domain with its dots turned into hyphens, as inyourdomain-com.20260115.gappssmtp.com. That is a realdkim=passthat never aligns — and the reason it goes unnoticed for months is that every checker reports DKIM as working. - Microsoft 365 before custom DKIM, which signs with the tenant’s initial
*.onmicrosoft.comdomain. That signature does not align with your customFrom:domain; it aligns whenFrom:uses the initial tenant domain. - Forwarding and mailing lists, where SPF breaks and DKIM may or may not survive intact. See ARC for what that does and doesn’t fix.
Aggregate reports are where you see all of this: each row shows the SPF and DKIM
results and whether they aligned, so a column of passes next to a DMARC fail is
the signature of the problem. Reading an aggregate
report walks through it.
DMARC Analyzer groups reported From:, SPF and DKIM domains by sending
source. Its source view shows the 15 highest-volume DKIM result groups; use the
original report XML to inspect omitted results or compare domains within a
specific report row.