schedule 12-min read

DMARC Alignment Explained: Relaxed vs Strict

DMARC AI editorial team · Last updated

Relaxed DMARC alignment needs a shared Organizational Domain, strict needs an exact match. Worked From, Return-Path and d= examples, and which to use.

01

Introduction

DMARC alignment is the check that the domain SPF or DKIM authenticated matches the domain in the visible From header. In relaxed mode (the default) the two only need to share an Organizational Domain, so mail.example.com aligns with example.com. In strict mode they must be identical. One aligned pass, SPF or DKIM, is enough for DMARC to pass.

This guide defines alignment as RFC 9989 describes it, shows how the Organizational Domain is now found, works through real From, Return-Path and d= combinations, and explains why relaxed is the right default for almost every client domain an MSP manages. It sits under the DMARC guide.

02

Key takeaways

  • SPF aligns when the RFC5321.MailFrom (Return-Path) domain matches the RFC5322.From domain. DKIM aligns when the signature's d= domain matches the From domain.
  • adkim and aspf both default to r (relaxed). Set s (strict) only with a concrete reason.
  • RFC 9989 finds the Organizational Domain with a DNS tree walk of _dmarc records, replacing the Public Suffix List.
  • Strict SPF alignment breaks most ESP setups that use a bounce subdomain. Strict DKIM is achievable, but rarely adds much for a typical client.
  • In aggregate reports, policy_evaluated holds the aligned result and auth_results holds the raw SPF and DKIM results.
03

What is DMARC identifier alignment?

Identifier alignment is the DMARC rule that ties an authentication result to the domain a recipient actually sees. A message passes DMARC only when SPF or DKIM passes for a domain that aligns with the Author Domain, the domain in the RFC5322.From header. A pass for an unrelated domain does not count.

The reason is simple: SPF and DKIM on their own authenticate a domain, not your domain. RFC 9989 Section 4.4.1 points out that a message can carry a valid DKIM signature from any domain, which is why alignment is required. Alignment is what turns "some domain vouched for this message" into "the domain in the From header vouched for this message". The overview of how SPF, DKIM and DMARC work together covers the full evaluation flow.

Which identifiers are compared for SPF and DKIM?

SPF alignment compares the RFC5321.MailFrom domain (shown as Return-Path after delivery) with the RFC5322.From domain. DKIM alignment compares the d= tag of a validated DKIM-Signature with the From domain. RFC 9989 Section 4.4.2 says DMARC relies solely on SPF validation of the MAIL FROM identity, not HELO.

Mechanism Authenticated identifier Compared with Tag that sets the mode
SPF RFC5321.MailFrom domain (Return-Path) RFC5322.From domain aspf
DKIM d= in a valid DKIM-Signature RFC5322.From domain adkim

Two details matter in practice. First, when the MAIL FROM is null (bounces and other notifications), Section 3.2.4 says the identity used is postmaster at the HELO domain. Second, a message may carry several DKIM signatures: Section 4.4.1 says it is enough that any DKIM-authenticated identifier aligns. An ESP signature for esp-mail.example alongside a client signature for example.com still gives an aligned pass.

04

What is the difference between relaxed and strict alignment?

Relaxed alignment means the authenticated domain and the From domain share the same Organizational Domain. Strict alignment means they are identical. RFC 9989 Section 3.2.10 defines both, and Section 4.7 sets adkim and aspf to r (relaxed) by default, with s (strict) as the only other value.

The modes are independent, so you can combine them:

v=DMARC1; p=reject; adkim=s; aspf=r; rua=mailto:dmarc@reports.example.net

That record asks for an exact d= match while allowing the Return-Path to sit on any subdomain of the client's Organizational Domain. If you leave both tags out, as most records should, receivers apply relaxed mode for both. Policy (p=none, p=quarantine, p=reject) is a separate decision: the DMARC policy guide covers it, and alignment mode does not change the rollout order.

05

How does RFC 9989 determine the Organizational Domain?

RFC 9989 determines the Organizational Domain with a DNS tree walk (Section 4.10) instead of the Public Suffix List that RFC 7489 relied on. The receiver queries _dmarc records from the Author Domain upward, label by label, with a maximum of eight queries. Section 4.10.2 then picks the Organizational Domain from the records it found.

The selection rules in Section 4.10.2 are:

  1. A valid record with psd=n marks its domain as the Organizational Domain.
  2. A record with psd=y (published by a public suffix operator) makes the domain one label below it the Organizational Domain.
  3. Otherwise, the record with the fewest labels is chosen.
  4. If none of that settles it, the starting domain is the Organizational Domain.

For a client mailing as mail.example.co.uk, the walk queries _dmarc.mail.example.co.uk, _dmarc.example.co.uk, _dmarc.co.uk and _dmarc.uk. With a normal record at _dmarc.example.co.uk, the Organizational Domain is example.co.uk, the same answer the PSL gave. Differences appear with unusual registry structures and with domains that publish psd=n. The DMARCbis Organizational Domain discovery guide covers the edge cases, and RFC 9989 explained covers the wider changes.

06

How do common From, Return-Path and d= combinations align?

Most real-world mail passes on DKIM, because ESPs commonly use their own or a subdomain bounce address while signing with the client's domain. The table below assumes example.com publishes a DMARC record and no subdomain publishes psd=n. "DMARC" shows the overall result, which needs at least one aligned pass.

From Return-Path DKIM d= Relaxed (r) Strict (s)
example.com example.com example.com SPF and DKIM aligned: pass SPF and DKIM aligned: pass
example.com bounce.example.com example.com SPF and DKIM aligned: pass DKIM only: pass
example.com mail.example.com mail.example.com SPF and DKIM aligned: pass Neither aligned: fail
news.example.com bounces.esp-mail.example example.com DKIM aligned: pass Neither aligned: fail
example.com bounces.esp-mail.example esp-mail.example Neither aligned: fail Neither aligned: fail
example.com em.vendor-crm.example vendor-crm.example, plus example.com DKIM aligned: pass DKIM aligned: pass
example.com example.co.uk example.co.uk Neither aligned: fail Neither aligned: fail

What the rows show:

  • Subdomain senders (rows 3 and 4) are where strict bites. A platform that signs with d=mail.example.com passes in relaxed mode and fails in strict mode.
  • ESP default bounce domains (rows 4 and 5) never give SPF alignment. If the ESP also signs with its own domain, DMARC fails in both modes until you set up custom DKIM for the client. The third-party senders guide walks through that per vendor.
  • Vendor d= domains (row 6) are harmless as long as a second signature uses the client's domain.
  • Sibling domains (row 7) are different Organizational Domains, even when one client owns both.

If you are troubleshooting a specific "SPF passes but DMARC fails" case rather than choosing a mode, why DMARC fails when SPF passes has the diagnosis routine.

07

Should MSPs use relaxed or strict alignment?

Use relaxed alignment for nearly every client domain. Strict mode adds failure modes for every sender that uses a subdomain, and the threat it closes (someone else controlling a subdomain of the client) does not exist for most small and mid-sized organisations. Across a portfolio, strict multiplies onboarding work for each new ESP.

Why is strict rarely worth it for client portfolios?

Strict SPF alignment fails whenever the Return-Path is a subdomain, which is how many ESPs implement a custom bounce domain (bounce.example.com, em1234.example.com). Strict DKIM fails when a platform signs with a subdomain. Each new marketing, CRM or ticketing tool a client buys becomes a potential break, and the MSP finds out from a user complaint or an aggregate report.

The security gain is small for a typical client because relaxed alignment still requires the authenticated domain to sit under the client's own Organizational Domain. An outsider cannot achieve relaxed alignment with an unrelated domain. RFC 9989 also says (Section 7.4) that domains publishing p=reject must not rely solely on SPF and must apply valid DKIM signatures: getting aligned DKIM on every sender matters far more than the alignment mode.

When is strict alignment the right choice?

Strict alignment is worth it when subdomains of the domain are controlled by other parties. RFC 9989 Section 11.8 explains the risk: if an attacker controls a subdomain's SPF record or DKIM keys, relaxed alignment lets that mail pass DMARC for the parent domain. It states the issue is avoided by strict alignment plus explicit DMARC records for all Author Domains.

Situations where that applies:

  • Delegated subdomains: universities, councils, franchises or groups where departments or subsidiaries run their own subdomain DNS.
  • Subdomains pointed at third parties: old CNAMEs or delegations to SaaS platforms that could be taken over if the service is dropped.
  • Single-purpose domains: a dedicated transactional or payments domain where every message is already signed with the exact d= and the sender list is short and stable.

In those cases, adkim=s with aspf=r is often a workable middle ground: exact DKIM matches are easy to get from most ESPs, while strict SPF would break custom bounce domains. Pair it with explicit records on sending subdomains (see DMARC for subdomains).

08

How do you check alignment in a message header?

Check alignment in the Authentication-Results header added by the final receiving server. Compare three values: smtp.mailfrom (the SPF identity), header.d (the DKIM signing domain) and header.from (the Author Domain). If either of the first two aligns with the third under the published mode, DMARC can pass.

Authentication-Results: mx.receiver.example;
  spf=pass smtp.mailfrom=bounces.esp-mail.example;
  dkim=pass header.d=example.com header.s=s1;
  dmarc=pass header.from=news.example.com

Here SPF passed for an ESP domain that does not align, and DKIM passed for example.com, which aligns with news.example.com in relaxed mode only. With adkim=s this message would fail. Read the topmost Authentication-Results header from the final receiver, not one added by an earlier hop. How to read email headers covers hop-by-hop reading.

09

How do you check alignment in aggregate reports?

In RFC 9990 aggregate reports, policy_evaluated holds the DMARC-aligned result and auth_results holds the raw SPF and DKIM results. RFC 9990 describes auth_results as "uninterpreted with respect to DMARC". A raw pass with an evaluated fail is an alignment problem.

<record>
  <row>
    <source_ip>192.0.2.10</source_ip>
    <count>42</count>
    <policy_evaluated>
      <disposition>none</disposition>
      <dkim>pass</dkim>
      <spf>fail</spf>
    </policy_evaluated>
  </row>
  <identifiers>
    <header_from>news.example.com</header_from>
    <envelope_from>bounces.esp-mail.example</envelope_from>
  </identifiers>
  <auth_results>
    <dkim>
      <domain>example.com</domain>
      <selector>s1</selector>
      <result>pass</result>
    </dkim>
    <spf>
      <domain>bounces.esp-mail.example</domain>
      <scope>mfrom</scope>
      <result>pass</result>
    </spf>
  </auth_results>
</record>

SPF shows pass in auth_results but fail in policy_evaluated, because the ESP bounce domain does not align. DKIM passes in both. The policy_published block also reports the adkim and aspf values the receiver applied, which helps when a client's record changed mid-period. Note that envelope_from is optional in RFC 9990, so some reporters leave it out. The aggregate reports guide explains the rest of the format. DMARC AI processes these reports per client domain, so an MSP can see which sources pass on aligned DKIM, aligned SPF or neither.

10

Frequently asked questions

What is the default DMARC alignment mode?

Relaxed for both. RFC 9989 Section 4.7 defines adkim and aspf as optional tags with a default of r. If a client's record contains neither tag, receivers apply relaxed alignment to SPF and DKIM. You only need to write the tags when you want strict mode, or to make the choice explicit for documentation.

Do both SPF and DKIM need to align?

No. DMARC passes when at least one mechanism passes and aligns. In practice DKIM is the one to rely on, because SPF alignment is lost when mail is forwarded or sent with an ESP bounce domain. RFC 9989 requires valid DKIM signatures for domains at p=reject, so aim for aligned DKIM on every sender.

Does strict alignment stop lookalike domains?

No. Alignment compares domains under the client's control. A lookalike such as examp1e.com is a different domain with its own DMARC status, and neither relaxed nor strict mode affects it. Strict mode only narrows which subdomains of the client's own Organizational Domain can produce an aligned pass. Lookalikes need monitoring and registration, not an alignment change.

Does alignment change if a subdomain has its own DMARC record?

It can. The tree walk starts at the Author Domain, and a subdomain record with psd=n declares that subdomain an Organizational Domain, which would stop it aligning with the parent in relaxed mode. An ordinary subdomain record without a psd tag sets policy for that subdomain but normally leaves the parent as the Organizational Domain.

Is the Public Suffix List still used for DMARC?

Not by RFC 9989. RFC 7489 used the Public Suffix List to find the Organizational Domain, and RFC 9989 replaces that with the DNS tree walk of _dmarc records. Receivers may take time to update their implementations, but for typical client domains both methods give the same Organizational Domain.

Related articles

Related tools

Ready to Implement?

Get authenticated mail moving in minutes: start free, book a guided demo, or talk to the team about your stack.