DMARC alignment: what relaxed vs strict (aspf, adkim) actually changes
DMARC's aspf and adkim tags decide how closely the domain authenticated by SPF or DKIM must match the visible From: address. AdminKit explains the real difference: relaxed alignment, the default, accepts a shared organizational domain, such as mail.example.com matching example.com, while strict alignment requires an exact match, which a subdomain-sending setup can silently fail.
By AdminKit team, Netbase JSC · Updated
Alignment is a separate question from “did SPF or DKIM pass”
SPF and DKIM each answer their own narrow question — is this connecting server authorized, is this signature valid — without checking anything about the domain a recipient actually sees in their inbox. RFC 7489 §3.1 adds the piece neither one covers on its own: alignment, which checks whether the domain that SPF or DKIM actually authenticated matches the domain shown in the message’s visible From: header. Without alignment, an attacker could pass SPF cleanly for their own, completely unrelated domain while still showing your domain in From: — a technically “authenticated” message that’s still a spoof of your brand. The aspf and adkim tags in a DMARC record each independently control how strict that match has to be.
Relaxed alignment: matching at the organizational domain
Relaxed alignment, the default for both tags, matches at what RFC 7489 §3.1 calls the Organizational Domain — broadly, the registrable domain (example.com, not a specific subdomain of it). Under relaxed alignment, mail.example.com and example.com are the same organizational domain, so a message authenticated against either one aligns with a From: address at the other. This is deliberately forgiving of a very common real-world pattern: an organization sending transactional mail from notifications.example.com, marketing mail from mail.example.com, and everything authenticating under the same base domain — relaxed alignment treats all of that as one organization’s traffic, which it is.
Strict alignment: an exact match, no subdomain exception
Strict alignment removes that subdomain tolerance entirely. Under aspf=s or adkim=s, the authenticated domain must be exactly the same string as the domain in From: — not a parent, not a subdomain, not a sibling under the same organizational domain. A DKIM signature with d=example.com does not strictly align with a message showing From: [email protected], even though both domains are unambiguously controlled by the same organization and relaxed alignment would pass that same pair without hesitation.
A worked example
A company signs all outgoing mail with one DKIM key, published once at example.com (d=example.com), and uses that same signature across several sending subdomains:
| From: address | d= domain | Relaxed adkim | Strict adkim |
|---|---|---|---|
[email protected] | example.com | Pass (exact match) | Pass (exact match) |
[email protected] | example.com | Pass (shared organizational domain) | Fail (not an exact match) |
[email protected] | example.com | Pass (shared organizational domain) | Fail (not an exact match) |
Flipping adkim from relaxed to strict in this setup doesn’t tighten protection against the spoofing DMARC is meant to stop — the organizational domain was already shared in every row. It breaks DKIM alignment for every subdomain that doesn’t exactly match the signing domain, which is exactly the kind of silent, self-inflicted mail failure that makes an unaudited move to strict alignment risky.
SPF and DKIM alignment are independent, and only one needs to pass
Two details are easy to miss when reading a DMARC record’s tags in isolation. First, aspf and adkim are set independently — tightening one doesn’t tighten the other, which matters because SPF and DKIM typically authenticate different domains for the same message (SPF checks the Return-Path/HELO domain RFC 7208 defines, DKIM checks whatever domain the signature’s d= tag names, defined in RFC 6376). Second, DMARC itself only requires one of the two to pass and align, not both — RFC 7489 §3.1 treats a message as DMARC-authenticated if SPF or DKIM independently passes with alignment. That’s why a forwarded message, which typically breaks SPF by changing the connecting server, can still pass DMARC cleanly on an aligned DKIM signature that survives the forward intact.
Checking your own alignment setting
Run AdminKit’s DMARC check against your domain to see your record’s current aspf and adkim values read in plain language — see how to read a DMARC check result for every other tag in the same record, and SPF, DKIM and DMARC explained for how the three records work together from scratch. If you’re already enforcing a policy and want to confirm alignment is actually passing for every legitimate sending source before considering strict, reading DMARC aggregate reports and rolling out to p=reject safely covers how to read that evidence from real mail traffic rather than guessing.
Two other configuration details worth checking while you’re reviewing DNS and TLS fundamentals: whether your zone’s apex is set up correctly in ALIAS, ANAME and CNAME flattening at the apex explained, and what a wildcard certificate does and doesn’t cover in wildcard vs SAN certificates explained.
This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.
Frequently asked questions
If I set aspf=s, does that also make DKIM alignment strict?
No — aspf and adkim are set independently, and most DMARC records only tighten one at a time. aspf=s controls SPF alignment strictness; adkim=s controls DKIM alignment strictness. RFC 7489 §6.3 defines them as separate tags specifically so a domain can tighten one authentication method without forcing the same exact-match requirement onto the other, which matters because SPF and DKIM commonly authenticate under different domains for the same message (SPF checks the Return-Path domain, DKIM checks the signing domain in its d= tag).
My DKIM signature's d= domain is example.com but mail actually sends from mail.example.com — does that pass alignment?
Under relaxed alignment (the default), yes: RFC 7489 §3.1 defines relaxed alignment as a match at the Organizational Domain level, so a DKIM d=example.com signature aligns with a From: address at mail.example.com because both share the same organizational domain, example.com. Under strict alignment, no — strict requires the d= domain to exactly equal the From: domain, so d=example.com would not strictly align with From: mail.example.com even though the message is legitimate. This exact scenario, a shared signing domain serving several sending subdomains, is the most common way a switch to strict alignment breaks mail that was authenticating correctly under relaxed.
DMARC needs SPF and DKIM to both pass and align — is that actually true?
No, and this is a common misreading. DMARC passes if EITHER SPF or DKIM passes authentication AND is aligned with the From: domain — it's an OR, not an AND, across the two mechanisms. A message with a broken SPF record can still pass DMARC on an aligned, passing DKIM signature alone, and vice versa. This is also why a forwarder that breaks SPF (changing the connecting server) doesn't automatically fail DMARC, provided the original DKIM signature survives the forward and still aligns.
Should I ever actually turn on strict alignment?
Only after confirming every legitimate sending source authenticates under the exact domain in your From: address, not just a related subdomain — strict alignment is a deliberate tightening for organizations that control their sending infrastructure precisely enough to guarantee that. For most domains, especially ones using third-party email services or sending from multiple subdomains, relaxed alignment is the safer default: it still closes the gap DMARC exists to close (an attacker spoofing your domain with an unrelated SPF/DKIM pass) without the risk of silently breaking legitimate mail the way an unaudited switch to strict can.
Sources
- RFC 7489 — Domain-based Message Authentication, Reporting and Conformance (DMARC), §3.1 (identifier alignment) and §6.3 (aspf/adkim tags)
- RFC 6376 — DomainKeys Identified Mail (DKIM) Signatures (the d= signing-domain tag)
- RFC 7208 — Sender Policy Framework (SPF) (the Return-Path domain SPF authenticates)
Want AdminKit to watch this for you?
Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.
Talk to an expert
Huy Nguyen (David), Founder & CEO, Netbase JSC
Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.