How DMARC Handles Subdomains and the sp Tag
The sp tag sets the policy for subdomains of your organizational domain when you publish one. Here is the syntax, how inheritance works when sp is absent, and what np does.
What the sp tag is and where it lives in the DMARC record
A DMARC record is a DNS TXT record. Its name starts with the label _dmarc, and it holds a set of tags. The v tag must come first and must say DMARC1, or the whole record is ignored.
The sp tag is one of those tags. It sets the policy for subdomains of your organizational domain. It uses the same syntax as the p tag, so it takes the same three values: none, quarantine, or reject.
A record with both tags looks like this:
_dmarc.example.com TXT "v=DMARC1; p=reject; sp=quarantine"
The sp tag only covers subdomains. It does not apply to the organizational domain itself. That domain is governed by p alone.
How subdomain policy inheritance works when sp is absent
If your DMARC record has no sp tag, subdomains inherit the parent domain's policy. The p tag applies to subdomains when sp is absent and np is absent or not used.
So a record that says p=reject with no sp tag applies that policy to subdomains that do not have their own DMARC record. That includes subdomains you forgot existed, and subdomains a spoof invented. If you have subdomains that should send mail and pass DMARC, this is fine. If some do not, the parent policy hits them anyway.
A subdomain can also have its own DMARC record, published at _dmarc.mail.example.com for instance. A record at the subdomain overrides the inherited policy for that subdomain only. The standard says a Domain Owner who fully participates publishes a DMARC Policy Record for each Author Domain and its Organizational Domain. A record is also needed for the Organizational Domain when it differs from the Author Domain.
The np tag: policy for subdomains that do not exist
The np tag is newer. It applies only to subdomains that do not exist, not to the domain itself. A domain is non-existent when a query for it returns NXDOMAIN.
Spoofers can invent subdomains. They might send mail from billing.example.com when you never created that name. Without np, the sp or p tag policy must be used for non-existent subdomains.
With np, you can split the two cases. A real subdomain you retired can get one policy, and a name nobody ever created can get another.
If a record has no p tag at all, it is treated as if it said p=none. That is a weak record, and it protects nothing on its own.
sp vs p: which one applies to which mail
The split is simple:
- p applies to the organizational domain itself, and to subdomains when sp is absent.
- sp applies to subdomains only, when present.
- np applies to non-existent subdomains only, when present.
The Mail Receiver takes the domain from the RFC5322.From header field as the Author Domain. That is the address the reader sees, and it is what DMARC is judged against. If no DMARC Policy Record is discovered for it, the mechanism does not apply and validation stops for the message.
Choosing a subdomain policy: monitoring first, then enforcement
The standard says Domain Owners usually start with a policy of p=none and a rua tag pointing at the mailbox that receives aggregate reports. It calls this Monitoring Mode. The policy for a domain and all its subdomains is p=none while the Domain Owner receives aggregate reports.
This is the right first step for subdomains too. Aggregate reports can reveal mail streams using the Author Domain that do not pass DMARC validation checks. Some of those streams will be subdomains you did not know were sending. Shortcomings in legitimate mail streams must be fixed before you publish an Enforcement policy.
Enforcement means the policy for an Organizational Domain and all its subdomains is not p=none. Under enforcement, a domain and its subdomains can only be used as Author Domains if they pass DMARC validation.
You do not have to move everything at once. You can mark messages from a subdomain that fails validation as suspicious with a quarantine policy, and leave the parent domain at a milder setting. The standard also lets a Domain Owner testing a subdomain use a testing flag so its assessment policy is not applied.
Google Workspace Help describes the sp values this way. none delivers the message to the intended recipient and logs it in a daily report. quarantine marks messages as spam and sends them to the recipient's spam folder. reject refuses the message, and the receiving server should send a bounce.
Subdomains and alignment
Alignment is how DMARC decides whether a passing SPF or DKIM result belongs to your domain. The adkim and aspf tags say whether you require strict or relaxed alignment for each.
The standard says domains are in relaxed alignment when they share the same Organizational Domain. An Organizational Domain is the domain at the top of the namespace hierarchy with the same administrative authority. So mail.example.com is in relaxed alignment with example.com. Domains are in strict alignment only when they are identical.
Relaxed alignment is what lets a subdomain authenticate against the parent. Google Workspace Help says relaxed alignment typically provides sufficient spoofing protection, while strict alignment can send messages from associated subdomains to spam. It suggests considering strict alignment when mail is sent for your domain from a subdomain outside your control.
Subdomain policy and BIMI requirements
BIMI, the mechanism that shows your logo in the inbox, has its own demands on the DMARC record. The BIMI draft says the DMARC policy record must be published for the Organizational Domain and its subdomains.
It also says a published subdomain policy must not be none. BIMI processing must not happen when a subdomain policy of sp=none is set. So a domain that wants BIMI must not publish a subdomain policy of none. Google Workspace Help says if your domain uses BIMI, the DMARC p option must be set to quarantine or reject. Google's guidance adds that a domain using BIMI must have a pct value of 100. The BIMI draft says quarantine policies must not have a pct less than pct=100.
Everywhere else, start at none, read the reports, and tighten per subdomain as the data justifies it.
Sources
Filed