Documentation Questions and answers

Do subdomains inherit SPF and DMARC?

DMARC, yes. SPF, no. DMARC tells receivers what to do with mail that fails the checks. A subdomain with no DMARC record gets its main domain's: sp= if set, otherwise p=. SPF is looked up only at the exact name in the bounce address. Each subdomain used there needs its own SPF record.

Check it on a real domain

We looked up Google's records on 27 November 2026:

$ dig +short TXT mail.google.com | grep spf1
$ dig +short TXT _dmarc.mail.google.com
$ dig +short TXT _dmarc.google.com
"v=DMARC1; p=reject; rua=mailto:mailauth-reports@google.com"
$ dig +short TXT accounts.google.com | grep spf1
"v=spf1 redirect=_spf.google.com"

mail.google.com has no SPF record. A message with a bounce address there gets the SPF result "none", although google.com has an SPF record.

mail.google.com has no DMARC record either, so receivers go up to google.com's. Without an sp= tag there, p=reject covers the subdomain: Google asks receivers to refuse mail from mail.google.com that fails DMARC.

accounts.google.com publishes its own SPF record. It points at the same server list as google.com, through a redirect=.

What to set

  1. Publish SPF on each name in a bounce address. If your newsletter service bounces to bounces.example.com, that name needs an SPF record. The service usually gives you the record to publish.
  2. One DMARC record usually covers everything. Publish it on your main domain. Add sp= only when subdomains need a different policy, such as sp=quarantine while one of them still has unsigned mail.
  3. A subdomain's own DMARC record wins. Receivers check the subdomain first. They look higher up only when they find no valid record there.
  4. Subdomains that don't exist follow np=, then sp=, then p=. Receivers that still follow the 2015 DMARC rules skip np=.

Sources

Check your domain

See your SPF, DMARC and DKIM records and what to fix. Free, no account. Don't see your signing key? On the results page, enter the name your email service gives you under Signing keys.

Last updated : First version.

For AI agents: this page in Markdown, llms.txt, the index of guides and public pages