How does DMARC apply to subdomains?
DMARC applies to subdomains through inheritance. If news.example.com has no DMARC record of its own, receivers walk up the DNS tree to the organisational domain, example.com, and apply its sp tag (or its np tag if the subdomain does not exist). Without sp, the parent's p policy applies. A subdomain's own record always takes precedence.
That means every subdomain already has a DMARC posture, whether anyone chose it or not. This guide is the overview for subdomain questions under the current standard, RFC 9989, which obsoleted RFC 7489. It covers policy discovery, the sp, np and psd tags, subdomain records, alignment, typical setups, common mistakes and a checklist for MSPs (managed service providers) running many client domains. For DMARC (Domain-based Message Authentication, Reporting and Conformance) from the start, see the DMARC guide.
Key takeaways
- A subdomain with its own
_dmarcrecord uses that record'sptag. Otherwise the organisational domain'sspapplies to existing subdomains andnpto non-existent ones, falling back top. - RFC 9989 replaced the Public Suffix List with a DNS tree walk to find the organisational domain. The walk is capped at eight DNS queries.
- Relaxed alignment (the default) lets mail from
news.example.comalign with a DKIM signature fromexample.com, and the other way round. - The most common break:
p=rejectat the parent withsp=noneleft over from the rollout, so every subdomain stays unprotected. - Wildcard DNS records never publish DMARC for existing subdomains, and a wildcard can stop
npfrom ever applying.
How does a receiver find the DMARC policy for a subdomain?
A receiver first queries _dmarc. plus the exact domain in the From header. If no valid DMARC record is there, it performs a DNS tree walk, removing one label at a time until it finds the organisational domain's record. RFC 9989 defines this in Section 4.10, with policy discovery in Section 4.10.1.
Take a message from invoices@billing.example.com. The receiver looks up:
$ dig +short TXT _dmarc.billing.example.com
(no answer)
$ dig +short TXT _dmarc.example.com
"v=DMARC1; p=reject; sp=quarantine; rua=mailto:reports@example.net"
The first query returns nothing, so the walk moves up to example.com, which has a record. Because billing.example.com is a subdomain of that domain, the sp=quarantine value is the policy that applies. If the walk finds no record at all, Section 4.10.1 says DMARC is not applied to the message.
Three details from Section 4.10 matter in practice:
- Records must be valid. A TXT record that does not start with
v=DMARC1is discarded. If a name returns more than one DMARC record, all of them are discarded. - The walk is capped at eight queries. For an author domain with eight or more labels, the walk jumps to a shortened name with seven labels. Section 5.1.8 says a domain owner who wants a specific policy on a name longer than eight labels must publish a record at that exact name.
- The walk replaces the Public Suffix List. Appendix C.3 of RFC 9989 states that reliance on a Public Suffix List was replaced by the DNS tree walk. Answers written for RFC 7489 that mention the PSL are out of date.
For the full algorithm, with worked examples for deep names and public suffix domains, see DMARCbis organisational domain discovery.
How is the organisational domain determined?
The organisational domain is chosen from the records the tree walk finds. Under RFC 9989 Section 4.10.2, a record with psd=n marks its own domain as the organisational domain. Otherwise, the record at the name with the fewest labels wins, which for a normal business domain is the registered domain itself, such as example.com or example.co.uk.
This matters for two reasons. The organisational domain's record supplies sp and np for every subdomain without its own record. And relaxed alignment compares organisational domains, so the choice decides which identifiers can align with each other.
The organisational domain is not always the policy source. Section 4.10.1 notes that when a record exists at the author domain itself, that record is applied, but the author domain is not necessarily the organisational domain used for alignment. For the psd rules and the public suffix side, use the organisational domain discovery guide rather than this overview.
What do the sp, np and psd tags do?
The sp tag sets the policy for existing subdomains, np sets it for subdomains that do not exist, and psd declares whether a domain is a public suffix domain. All three are optional and are defined in RFC 9989 Section 4.7. They only take effect when a subdomain has no DMARC record of its own.
| Tag | Applies to | Values | Default if absent | Example |
|---|---|---|---|---|
sp |
Existing subdomains of the organisational domain | none, quarantine, reject |
The p value |
v=DMARC1; p=reject; sp=reject |
np |
Non-existent subdomains (the name returns NXDOMAIN) | none, quarantine, reject |
sp if present, otherwise p |
v=DMARC1; p=quarantine; np=reject |
psd |
The record's own domain: public suffix or not | y, n, u |
u (let the tree walk decide) |
psd=n on an organisational domain |
A few notes on each:
spcovers subdomains that exist in DNS, whether or not anyone intended them to send mail.www.example.comandvpn.example.comexist, sospgoverns them.npwas added in RFC 9989, imported from the experimental RFC 9091. RFC 9989 Section 3.2.13 defines a non-existent domain by the NXDOMAIN response code. It protects names such aspayroll.example.comthat were never created. The full treatment, including how attackers use invented names, is in non-existent subdomains and the np tag.psdis mostly for registries and other public suffix operators. A normal business domain can leave it out.psd=yis for public suffix operators only.
For all three new tags alongside t, see the np, psd and t tags explained.
What happens if sp is absent?
If sp is absent, subdomains inherit the p policy. RFC 9989 Section 4.7 says that when sp is absent and np is absent or not applicable, the policy in p must be applied to subdomains. So v=DMARC1; p=reject protects every existing subdomain without its own record at reject.
Inheritance is a reasonable default once the whole domain is ready, but it creates a trap during rollout. Moving p from quarantine to reject silently moves every subdomain with it. Write sp explicitly so the subdomain policy is a visible decision in the record, not a side effect:
v=DMARC1; p=reject; sp=reject; np=reject; rua=mailto:reports@example.net
If np is absent, non-existent subdomains get sp, and if sp is also absent, they get p. The rua=mailto:reports@example.net address above sits on a different domain, so example.net must publish the RFC 9990 authorisation record, example.com._report._dmarc.example.net. See authorising external DMARC report destinations.
Can a subdomain publish its own DMARC record?
Yes. Publish a TXT record at _dmarc. plus the subdomain, for example _dmarc.marketing.example.com. Under RFC 9989 Section 4.10.1, a valid record at the author domain is the one applied, and its p tag sets the policy. The parent's sp and np are then ignored for that subdomain.
Because the subdomain's own record wins, it can be stricter or looser than the parent:
Parent record (_dmarc.example.com) |
Subdomain record | Result for the subdomain |
|---|---|---|
p=quarantine; sp=quarantine |
_dmarc.alerts.example.com: p=reject |
Stricter: reject |
p=reject; sp=reject |
_dmarc.marketing.example.com: p=none |
Looser: none, monitoring only |
p=reject; sp=reject |
None | Inherited: reject |
p=none (no sp) |
_dmarc.test.example.com: p=quarantine; t=y |
Test mode: receivers asked to apply one level lower |
The looser case is legitimate while a new sender is being onboarded, but treat it as temporary: a p=none subdomain under a p=reject parent is a deliberate hole in the client's protection. The test mode case mirrors an example in RFC 9989 Appendix B.2.5, where a record at _dmarc.test.example.com starts with t=y and later moves to p=reject without it.
A subdomain record covers that exact name. Do not assume it also governs deeper names such as eu.marketing.example.com. If a deeper name sends mail, publish a record at that name too, so the policy does not depend on how the tree walk resolves the organisational domain.
How does a subdomain sender align with the organisational domain?
With relaxed alignment, a subdomain sender aligns as long as its authenticated domain shares the same organisational domain as the From address. RFC 9989 Section 3.2.10 defines relaxed alignment as sharing an organisational domain and strict alignment as an exact match. The adkim and aspf tags select the mode, and both default to relaxed (r).
| From domain | Authenticated identifier | Relaxed (r) |
Strict (s) |
|---|---|---|---|
news.example.com |
DKIM d=news.example.com |
Aligned | Aligned |
news.example.com |
DKIM d=example.com |
Aligned | Not aligned |
example.com |
SPF (envelope from) bounce.example.com |
Aligned | Not aligned |
news.example.com |
DKIM d=esp-mail.example.net |
Not aligned | Not aligned |
Relaxed alignment is what makes subdomain sending practical: an email service provider (ESP) can use a bounce domain such as bounce.example.com for SPF and still align with mail sent as example.com. Strict alignment is rarely worth the breakage across a client estate. The rules for both modes are covered in DMARC alignment: relaxed vs strict.
Strict mode can be set per subdomain. A record at _dmarc.alerts.example.com with adkim=s applies strict DKIM alignment to that subdomain only, which suits a high-value sender with a single, well-controlled platform.
What are the typical subdomain setups?
Most client domains fit one of four patterns. The organisational domain carries the main policy with explicit sp and np, and only subdomains that send mail differently get their own record. Keep the number of separate records small, because each one is another policy to monitor and review.
- Uniform enforcement. One record at the organisational domain covers everything:
v=DMARC1; p=reject; sp=reject; np=reject; rua=mailto:reports@example.net. This suits clients where every sender is authenticated and aligned. - Marketing subdomain for an ESP. Bulk mail is sent as
marketing.example.com, with DKIM signed asd=marketing.example.comand the ESP's return path on a subdomain the client controls. The subdomain gets its own record so its reports can be watched separately:
_dmarc.marketing.example.com TXT "v=DMARC1; p=quarantine; rua=mailto:reports@example.net"
Whether to use a subdomain or a separate domain for bulk mail is a separate decision, covered in subdomain or separate domain for bulk email. Platform specifics are in the Mailchimp and Mailgun guides.
- Transactional or system mail subdomain. Invoices, alerts or application mail from
notify.example.com. Give it its own record when its senders differ from the main mail platform, and move it torejectonce reports show only expected sources. - Non-sending subdomains and parked domains. Rely on
sp=rejectandnp=rejectat the organisational domain. Only publish a separate record if the subdomain needs a different policy.
A separate rua on a subdomain record is useful when a different team or supplier owns that sender. Remember that each external report address needs its RFC 9990 authorisation record at the report domain, and aggregate reports for inherited subdomains already arrive through the organisational domain's rua.
What are the most common subdomain DMARC mistakes?
The most common mistake is leaving sp=none in the record after the organisational domain reaches p=reject. The record looks enforced in a quick check, but every subdomain without its own record is still unprotected. Always read the full record, not only p.
Other mistakes to look for:
sp=noneforgotten after reaching reject. Typical record:v=DMARC1; p=reject; sp=none. Fix it by movingspup in the same whole steps asp, once aggregate reports show subdomain senders pass.- Expecting a wildcard to cover
_dmarc. Under RFC 4592 Section 2.2, a wildcard does not apply to names that already exist or that sit below existing names. A TXT record at*.example.comnever supplies DMARC for_dmarc.news.example.comwhennews.example.comexists. Coverage comes from the tree walk andsp, not wildcards. - Wildcards that defeat
np. A wildcard such as*.example.com(often an A record for a website) makes every invented name resolve instead of returning NXDOMAIN. Those names then count as existing, sospapplies rather thannp. Setspas strictly asnpon such domains. - A CNAME clashing with TXT at
_dmarc. RFC 2181 Section 10.1 says a name with a CNAME may have no other data. A CNAME at_dmarc.example.comcannot sit alongside a TXT record there. If DMARC is hosted through a CNAME to a provider, make sure the target returns exactly one valid record and remove the CNAME when the client offboards. - Two DMARC records at the same name. RFC 9989 discards all of them, so the subdomain falls back to the parent's
sp(or to no policy at all at the organisational domain). - Broken tags. Under Section 4.10.1, an invalid
spornptag makes receivers treat the record asp=noneif it has a validrua, and otherwise apply no DMARC at all. A typo such assp=rejcetcan turn off enforcement. - A subdomain record left at
p=noneindefinitely. Fine during onboarding, but it overrides a strict parent until someone changes it. - Still using
pct. RFC 9989 removedpct. It no longer limits a subdomain rollout. Use whole steps fromnonetoquarantinetoreject, optionally witht=y.
For the receiving side of these failures, see how MSPs can avoid breaking client email with DMARC.
What should an MSP check across client portfolios?
Check every client domain's organisational record for explicit sp and np, list every subdomain that has its own _dmarc record, and compare each against what aggregate reports show is sending. Repeat it at onboarding, at each policy change and at offboarding, because subdomain records are where old exceptions go unnoticed.
A checklist that works across tenants:
- Read the full record for every domain. Flag
p=rejectorp=quarantinewithsp=none, records withoutnp, multiple records and invalid tags. Our DMARC policy checker guide shows how. - Inventory subdomain records. Query
_dmarcfor every known sending subdomain: ESPs, CRM, ticketing, invoicing and website forms. Record the policy and theruaof each. - Match records to reports. Subdomains that appear in aggregate report data but have no owner or no aligned authentication are the first fix. A multi-tenant platform such as DMARC AI groups aggregate data per client domain and classifies sending sources, which makes subdomain senders easier to spot across a portfolio.
- Check report authorisation. Every subdomain record with a
ruaon another domain needs its_report._dmarcauthorisation record. - Look for wildcards and CNAMEs. Note wildcard records that affect
np, and CNAMEs at_dmarcthat point to a supplier. - Set an expiry on looser subdomain records. Log each
p=nonesubdomain record with an owner and a review date in your DMARC change-management policy. - Offboard cleanly. When an ESP or the client leaves, remove or update subdomain records, CNAMEs and external report addresses so they do not point to services nobody controls.
For the wider risk review, combine this with how MSPs should audit client domains for DMARC risk and the DMARCbis readiness checklist.
Frequently asked questions
Do subdomains inherit the parent's DMARC policy?
Yes, if they have no DMARC record of their own. Receivers walk up to the organisational domain and apply its sp tag for existing subdomains and its np tag for non-existent ones. If those tags are missing, the parent's p policy applies. A record at the subdomain itself always overrides the inherited policy.
Can a subdomain have a stricter DMARC policy than the parent?
Yes. Publish a record at _dmarc. plus the subdomain with a stricter p, for example p=reject under a parent at p=quarantine. RFC 9989 applies the record found at the author domain first, so the subdomain's own policy wins. The same mechanism allows a looser policy, which should be temporary.
How does DMARC handle deeply nested subdomains?
The receiver checks the exact domain first, then walks up the tree one label at a time, capped at eight DNS queries. Names with eight or more labels jump to a shortened seven-label name. If a deep name such as a.b.c.example.com sends mail and needs a specific policy, publish a record at that exact name.
Does DMARC still use the Public Suffix List?
No. RFC 9989 replaced the Public Suffix List with the DNS tree walk to determine the organisational domain. The walk uses published DMARC records and the psd tag instead of an external list. Guidance that relies on the Public Suffix List describes the obsoleted RFC 7489 behaviour, so check it before applying it to client domains.
Should I use np=reject on every client domain?
For most client domains, yes, once the organisational domain itself is ready for enforcement. Non-existent subdomains should never send legitimate mail, so np=reject blocks invented names at little risk. Check first for wildcard records, because they make invented names exist and sp then applies instead of np.