Skip to content
AdminKit

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

Key takeaways

  • Alignment compares the domain in the visible From: header with the domain SPF or DKIM actually authenticated. Without it, anyone could pass SPF for their own domain and still show yours.
  • Relaxed alignment (r, the default) accepts the same Organizational Domain, so mail.example.com aligns with example.com. Strict (s) requires the two to be identical.
  • aspf and adkim are set independently, and DMARC passes if either SPF or DKIM passes with alignment.
  • Strict alignment protects against one specific risk: a subdomain whose DNS someone else controls. It breaks mail from any subdomain that doesn’t sign or send under its own exact name.
  • RFC 9989 replaced RFC 7489 in May 2026. The tags mean the same thing, but receivers now find the Organizational Domain with a DNS Tree Walk.

Why is alignment 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. This question of alignment is one of the more detailed topics in AdminKit’s email authentication cluster, which otherwise focuses on getting SPF, DKIM and DMARC published correctly in the first place. RFC 7489 §3.1 (canonical record on the IETF Datatracker) 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.

RFC 9989, published in May 2026, obsoletes RFC 7489 and keeps the same idea. Its §4.4.2 gives the reason in one line: “any Domain Owner, even a bad actor, can publish an SPF record for its domain and send an email that will obtain an SPF ‘pass’ result.” Only an authenticated domain that aligns with the From: domain counts.

Which domains does DMARC actually compare?

There are three domains in play for every message. RFC 9989 calls the From: domain the Author Domain, and the domains SPF and DKIM validate the Authenticated Identifiers:

IdentifierWhere it comes fromHow it shows up in Authentication-Results
Author DomainThe domain in the visible From: headerheader.from= (registered for the dmarc method by RFC 9989)
SPF-Authenticated IdentifierThe SMTP MAIL FROM (Return-Path, bounce) domain, if SPF passessmtp.mailfrom=
DKIM-Authenticated IdentifierThe d= tag of each DKIM signature that verifiesheader.d=

RFC 9989 §4.4.2 says DMARC “relies solely on SPF validation of the MAIL FROM identity”, so an SPF pass on the HELO name doesn’t count. For DKIM, §4.4.1 says a message passes “if any DKIM-Authenticated Identifier aligns”, so one aligned signature among several is enough.

What does relaxed alignment accept?

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.

RFC 9989 §4.4 gives three reference cases, reproduced here:

Authenticated IdentifierAuthor DomainAlignment (RFC 9989 Table 1)
foo.example.comnews.example.comRelaxed: same Organizational Domain, example.com
news.example.comnews.example.comStrict: the two are identical
foo.example.netnews.example.comNone: no common Organizational Domain

The same section notes that “nearly all Domain Owners have found relaxed alignment sufficient to meet their needs,” and that the comparison is case-insensitive.

How does a receiver find the Organizational Domain?

This is the part RFC 9989 changed. RFC 7489 defined the Organizational Domain as “the domain that was registered with a domain name registrar” and suggested a public suffix list to find it, without requiring a particular list. RFC 9989 §4.10 replaces that with a DNS Tree Walk: the receiver queries _dmarc records from the domain upwards, one label at a time, capped at eight queries. For an Author Domain of a.mail.example.com with no record of its own, the walk looks like this:

_dmarc.a.mail.example.com   no record
_dmarc.mail.example.com     no record
_dmarc.example.com          "v=DMARC1; p=reject; ..."   <- record found
_dmarc.com                  no record

Among the names where a valid record was found, the one with the fewest labels becomes the Organizational Domain, so here it is example.com. Two tags can change that. A record with psd=n says “this is an Organizational Domain” and stops the search there. A record with psd=y marks a public suffix domain, such as a registry, and makes the name one label below it the Organizational Domain.

For a typical setup with one _dmarc record at the registered domain, the old and new methods give the same answer. It matters for large organizations that publish separate DMARC records for business units under one parent, which RFC 9989 is designed to allow.

What does strict alignment require?

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: billing@mail.example.com, even though both domains are unambiguously controlled by the same organization and relaxed alignment would pass that same pair without hesitation. Google Workspace’s own DMARC documentation describes the identical split independently of RFC 7489’s text: strict SPF alignment as “an exact match between the domain in the Envelope-Sender… and the domain in the header From: address,” against relaxed alignment’s “match or be a subdomain” rule.

RFC 9989 §4.10.2 also notes a practical side effect: under strict alignment no Tree Walk is needed for the alignment check, because “a simple string comparison of the Author Domain and the Authenticated Identifier(s) is all that is required.”

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: addressd= domainRelaxed adkimStrict adkim
billing@example.comexample.comPass (exact match)Pass (exact match)
billing@mail.example.comexample.comPass (shared organizational domain)Fail (not an exact match)
billing@notifications.example.comexample.comPass (shared organizational domain)Fail (not an exact match)

For a company that controls every one of those subdomains, flipping adkim from relaxed to strict adds nothing: the organizational domain was already shared in every row, and each name is theirs. 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. The fix, if you do want strict, is to sign each subdomain’s mail with its own d= value.

Does strict alignment add any protection?

Yes, against one specific risk. RFC 9989 §11.8 describes it: if “malicious or unaware users can gain control of the SPF record or DKIM selector records for a subdomain of the Organizational Domain, the subdomain can be used to generate email that achieves a DMARC pass on behalf of the Organizational Domain.” Its example is an attacker who controls DNS for evil.example.com, publishes an SPF record there, and sends mail with From: foo@example.com. Under relaxed SPF alignment, that message passes DMARC. The RFC’s advice is to avoid delegating subdomains where this is a concern “and consider using the strict alignment … option if appropriate.”

Google’s DMARC guide names the same two situations where it suggests considering strict: when “mail is sent for your domain from a subdomain outside your control”, and when “you have subdomains that are managed by another entity.” It also warns that strict “can result in messages from associated subdomains to be rejected or sent to spam.”

Your situationSuggested settingWhy
You control DNS for every subdomain, and senders use subdomain bounce or signing domainsRelaxed on bothStrict would break that mail and add nothing
A subdomain’s DNS is run by an agency, a vendor or another teamConsider strict, at least for aspfWhoever controls that subdomain’s SPF could otherwise align with your main domain
Every sender signs and bounces with the exact From: domainEither worksStrict is safe, but confirm it in aggregate reports first
A subdomain points at a service you no longer useRemove the recordA dangling subdomain is a takeover risk whatever the alignment mode

On that last row, see how to find a dangling CNAME, because a subdomain someone can take over is exactly the “control of a subdomain” RFC 9989 warns about.

Are SPF and DKIM alignment independent, and do both need 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 MAIL FROM 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. Microsoft’s DMARC setup guide for Microsoft 365 states the same rule: a message passes DMARC if one or both of the SPF and DKIM checks pass, and fails only if both fail. 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. Email forwarding breaks SPF: SRS and ARC covers that case in detail.

RFC 8601 Appendix B.5 has an example message with exactly this mix. Its two result headers, quoted from the RFC:

Authentication-Results: example.com;
          dkim=pass (good signature) header.d=example.com
Authentication-Results: example.com;
          auth=pass (cram-md5) smtp.auth=sender@example.com;
          spf=fail smtp.mailfrom=example.com

SPF failed, but DKIM passed for example.com. If that message’s From: domain is example.com, DKIM alignment holds in both relaxed and strict mode, and DMARC passes on DKIM alone.

How do you switch to strict alignment without breaking mail?

Treat it as a change you prove with data first:

  1. Collect aggregate reports. You need a rua address and enough reports to cover every regular sender, including monthly or quarterly ones. AdminKit’s DMARC report analyzer reads a report file in your browser and shows SPF and DKIM alignment per source IP.
  2. List every source that passes only on relaxed alignment. Those are the rows where the smtp.mailfrom or header.d domain is a parent, child or sibling of your From: domain, not the same name.
  3. Fix those sources first. Ask each provider to sign with your exact From: domain (d=), or to use a bounce domain that matches it. For a Shopify store, the CNAME records in Shopify custom domain email authentication do this for its notification mail.
  4. Tighten one tag at a time. Changing adkim and leaving aspf relaxed means SPF can still align if a DKIM signature breaks.
  5. Watch the next reports before tightening the other tag.

A record part-way through that change might look like this. It is an illustrative example for example.com, not a recommendation for every domain:

_dmarc.example.com.  TXT  "v=DMARC1; p=quarantine; adkim=s; aspf=r; rua=mailto:dmarc@example.com"

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 — when a tag is absent, the check reports the relaxed default, as the specification does. The check reads the published record; it doesn’t evaluate any message, so whether real mail aligns comes from your aggregate reports or a message’s Authentication-Results header. 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, and RFC 9989 which replaced it in May 2026, define 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 MAIL FROM or 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. The case for strict is subdomains you don't fully control: RFC 9989 §11.8 and Google's DMARC guide both point out that under relaxed alignment, whoever controls DNS for a subdomain can produce mail that aligns with your main domain.

Which RFC defines DMARC alignment now?

RFC 9989, published in May 2026, obsoletes RFC 7489. The meaning of aspf and adkim is unchanged: relaxed means the same Organizational Domain, strict means identical. What changed is how a receiver finds the Organizational Domain. RFC 7489 relied on a public suffix list, while RFC 9989 defines a DNS Tree Walk over _dmarc records, with an optional psd tag. Records written for RFC 7489 still work.

Want AdminKit to watch this for you?

Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.

Huy Nguyen (David), Founder and CEO of Netbase JSC

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.