Guides / Does a subdomain need its own SPF record?
Does a subdomain need its own SPF record?
Short answer: yes, if mail is sent with that subdomain as the sender. SPF has no inheritance. A receiver checks the exact domain in the envelope sender, and if that name has no SPF record, the result is "none", even when the parent domain has a perfect one. This is a common surprise for teams that send cold email from a subdomain such as outreach.example.com. Below: what the standard says, which subdomains need a record, what to put in it, and how DMARC differs.
What the SPF standard says
SPF is defined in RFC 7208. Section 3 says: "Each SPF record is placed in the DNS tree at the owner name it pertains to, not in a subdomain under the owner name." Section 4.1 says the receiver checks the domain taken from "the domain portion of the 'MAIL FROM' or 'HELO' identity", and section 4.5 says that if no record starting with v=spf1 is found at that name, the check produces the "none" result.
There is no step where the receiver walks up to the parent domain. So "v=spf1 include:_spf.google.com ~all" on example.com says nothing about mail whose envelope sender is someone@outreach.example.com.
Which subdomains need their own record
- A subdomain you send from: if your mailboxes are on outreach.example.com (or a sending tool uses addresses there), the envelope sender is on that subdomain, so the SPF record has to be at outreach.example.com.
- A bounce (Return-Path) subdomain: tools such as Amazon SES, Resend or Mailgun often use a subdomain like send.example.com or mg.example.com as the envelope sender. The tool's setup screen gives you the SPF record for it; it belongs on that subdomain, not on the root.
- A subdomain a server uses in HELO: section 2.3 recommends receivers also check the HELO name, so a server that greets as mail.example.com is better off with SPF at that name. Hosted providers handle their own HELO names.
- Subdomains that never send mail don't need a record to make your mail pass. Some owners publish "v=spf1 -all" on them so nothing can pass SPF as that name; see the DMARC section below for the bigger protection.
What to put in the subdomain's record
List the services that send with that subdomain as the sender, and nothing else. If the subdomain's mailboxes are on Google Workspace, that's "v=spf1 include:_spf.google.com ~all" at outreach.example.com; for Microsoft 365, include:spf.protection.outlook.com. Copying the root record is fine only if the same services send for both names; extra includes cost lookups (SPF allows 10) and authorize senders that don't need it.
In most DNS panels you add a TXT record with the host field set to the subdomain label (outreach, not outreach.example.com, unless your panel wants the full name) and the value starting with v=spf1. One record per name: two v=spf1 records at the same name make SPF fail with a permerror.
Why a wildcard usually isn't the answer
A TXT record at *.example.com can look like a shortcut, but RFC 7208 section 3.5 says "use of wildcard records for publishing is discouraged", and DNS wildcards stop applying to any name that has records of its own. RFC 1034 section 4.3.3 says wildcards do not apply when the query name "is known to exist". So a sending subdomain with its own MX or DKIM records may not get the wildcard SPF at all. RFC 7208 says the declaration "MUST be repeated for any host that has any RR records at all". Publish the record at each sending name instead.
When the subdomain is a CNAME
If the subdomain is a CNAME (common for tracking or landing-page hosts), you can't add a TXT record next to it: RFC 1034 section 3.6.2 says "if a CNAME RR is present at a node, no other data should be present", and DNS panels refuse it. The receiver follows the CNAME and uses whatever SPF the target has. Don't send mail from a CNAME'd name; use a separate subdomain for sending.
DMARC is different: it does fall back to the parent
DMARC works the other way. RFC 7489 section 6.6.3 says that if there is no DMARC record for the From domain, the receiver "MUST query the DNS for a DMARC TXT record at the DNS domain matching the Organizational Domain". So _dmarc.example.com covers outreach.example.com unless the subdomain publishes its own, and the sp= tag sets the policy for subdomains. See the DMARC sp tag.
Alignment also helps here: in DMARC's default relaxed mode (section 3.1.2), an SPF pass for a bounce subdomain such as send.example.com still lines up with a From address on example.com, because both share the same organizational domain. But the SPF record itself still has to be at send.example.com.
How to check it in two minutes
- Send a test from the subdomain to a Gmail address and open Show original. The smtp.mailfrom= value in the Authentication-Results line is the domain SPF was checked on.
- Run the free checker on that exact name (for example outreach.example.com, not example.com). If it has no SPF record but the parent does, the SPF row says so and suggests a record.
- Add the record, wait for DNS to update, and send another test: you want spf=pass for the subdomain.
Keep every sending name covered
Teams that split cold email across subdomains and secondary domains end up with a lot of records to keep right. OutboxWatch checks SPF, DKIM, DMARC, MX and blocklists on your sending domains every day and emails you when something changes, so a subdomain that loses its SPF record gets caught before it costs you replies.
Frequently asked questions
Does SPF apply to subdomains automatically?
No. RFC 7208 checks the exact domain in the envelope sender (MAIL FROM) or HELO name, and a record is placed at the name it covers. If that subdomain has no v=spf1 record, the result is none, even if the parent domain has one.
Do I need an SPF record for a subdomain I send cold email from?
Yes. If your mailboxes or sending addresses are on the subdomain, add a TXT record at that subdomain listing the provider that sends for it, for example "v=spf1 include:_spf.google.com ~all" for Google Workspace.
Does the DMARC record on my root domain cover subdomains?
Yes, unlike SPF. If a subdomain has no _dmarc record, receivers use the organizational (parent) domain's DMARC record, and its sp= tag sets the subdomain policy. A subdomain can override it with its own _dmarc record.
Can I use a wildcard SPF record for all subdomains?
It's discouraged by RFC 7208, and a DNS wildcard doesn't apply to names that have any records of their own, such as a subdomain with MX or DKIM records. Publish SPF at each subdomain that sends.
Should subdomains that don't send email have SPF?
They don't need one for your mail to pass. Some owners add "v=spf1 -all" so nothing can pass SPF as that name. A DMARC policy on the parent domain (with sp= set) is what tells receivers to reject or quarantine spoofed mail from your subdomains.
Related guides
- SPF record for Google Workspace: the exact value and common mistakes
- Using a separate domain for cold email: why and how
- The DMARC sp tag: what sp=none means for your subdomains
- Multiple SPF records: why two records break SPF and how to merge them
- SPF record: too many DNS lookups, and how to fix it
- SPF and DKIM pass but DMARC fails: how alignment works and how to fix it
- All guides
- Monitoring plans