SPF on the Parent Domain Doesn't Cover Your Sending Subdomain
SPF does not inherit from a parent domain. If you send from mail.example.com, the domain in your Return-Path needs its own SPF TXT record, plus DKIM signing, DMARC alignment and one-click List-Unsubscribe headers. Publish those for the sending subdomain, then verify the result in the headers of a real message.
Sohail Hussain10 min readShort answer
- SPF does not cascade from example.com to mail.example.com. Publish an SPF record on the exact domain in your Return-Path, and DKIM-sign with a domain that matches your From address.
- Add a DMARC record, then add both List-Unsubscribe and List-Unsubscribe-Post: List-Unsubscribe=One-Click headers to every marketing message. Check a real campaign message's raw headers to confirm.
A sender in an email marketing forum thread described it this way: deliverability would not improve, SPF existed only on the parent domain, mail left from a subdomain, and there was no one-click opt-out. People replying said the same thing: SPF does not cascade to subdomains, so add DKIM, DMARC and one-click unsubscribe, and send only to engaged contacts. They were right on all four points. This guide shows how to confirm each gap in your own headers and close it.
Why the parent domain record does not help
SPF is checked against the domain in the SMTP envelope sender (the MAIL FROM address, which shows up as Return-Path in the delivered message). The domain checked is initially the domain portion of the "MAIL FROM" or "HELO" identity. A domain with no SPF record to find returns "none". The visible From address is not part of the SPF check, and the receiver does not walk up to the parent domain looking for a record.
Three different domains can be involved in one message:
| Where | Example | What it controls |
|---|---|---|
| Visible From | news@mail.example.com | The domain DMARC aligns against |
| Return-Path | bounce@bounces.mail.example.com | The domain SPF is checked on |
DKIM d= | mail.example.com | The domain DKIM is verified on |
A record at example.com covers only mail whose Return-Path is exactly example.com. The SPF standard itself says that records have to be listed twice for every name in the zone: once for the name, and once with a wildcard to cover the tree under it. So a wildcard TXT record is technically possible. I'd skip it: it matches names you never send from, and DNS wildcards do not apply to any name that already has its own records.
DMARC is the exception: a subdomain without its own DMARC record falls back to the parent's policy. That is covered below.
Step-by-step: find which domain is failing
Do not guess which domain your mail uses. Read it from a real message.
- Send a campaign message (not a one-to-one test) to a Gmail or other mailbox you control.
- Open the original source. In Gmail, use the three-dot menu and choose Show original.
- Find the
Return-Pathheader. This is the domain SPF is checked on. - Find the
DKIM-Signatureheader and note thed=domain ands=selector. - Find
Authentication-Resultsand read thespf=,dkim=anddmarc=values.
You can paste the headers into our email header analyzer. For background on each field, see understanding email headers.
| Result you see | Likely cause | Fix |
|---|---|---|
spf=none | No SPF record on the Return-Path domain | Publish SPF on that exact name |
spf=pass, dmarc=fail | SPF passed on a domain that does not match From | Set a custom return-path domain, or rely on aligned DKIM |
dkim=none | No signature, or the provider signs with its own domain only | Publish the provider's DKIM key for your domain |
spf=permerror | Two SPF records on one name, or more than 10 lookups | Merge into one record, trim includes |
dmarc=none or missing | No DMARC record found | Publish _dmarc on the organizational domain |
Fix 1: publish SPF on the sending subdomain
You can have only one SPF record per domain name. Two v=spf1 TXT records on the same name cause a permanent error.
Use the include: value your sending provider gives you. This example uses a placeholder:
mail.example.com. TXT "v=spf1 include:spf.your-provider.example ~all"
- In your DNS host, add a TXT record on the name that appears in the Return-Path (for example
mail, orbounces.mail). - Include only the providers that actually send from that name.
- End with
~allwhile you test. Move to-allonce you are sure nothing legitimate is missing. - Keep the record to 10 DNS lookups or fewer.
include,a,mxandredirectcount;ip4andip6do not. Our SPF lookup count calculator checks this, and the SPF generator builds the string.
Many providers put their own bounce domain in the Return-Path. In that case SPF passes for the provider's domain, not yours, and DMARC can only pass through DKIM. That is normal, but it makes Fix 2 mandatory. If the provider offers a custom return-path domain, set it up with the CNAME they give you and SPF will align too.
Do not stack SPF records
If the subdomain already has an SPF record, edit it instead of adding a second one. Two records on the same name fail the check.
Fix 2: sign with DKIM on the same domain
DKIM is the more dependable half of authentication because it usually survives forwarding. Publish the key your provider gives you, typically a CNAME or TXT on a selector name:
selector1._domainkey.mail.example.com. CNAME selector1.dkim.your-provider.example.
The d= in the signature should be mail.example.com or example.com. Either aligns with a mail.example.com From address under relaxed alignment, which is the default. Check the result in the header analyzer, or use the DKIM generator if you host your own key. What is DKIM explains the mechanics.
Fix 3: add DMARC and understand subdomain inheritance
If a subdomain has no DMARC record, receivers fall back to the organizational domain's record, and the sp= tag sets the policy for subdomains. One record can cover everything:
_dmarc.example.com. TXT "v=DMARC1; p=none; sp=none; rua=mailto:dmarc@example.com"
Start at p=none and read the reports. Tighten to quarantine, then reject, once every legitimate source passes. You can also publish _dmarc.mail.example.com to give the subdomain its own policy. DMARC passes when SPF or DKIM passes and aligns with the From domain; aim for both.
Google's sender FAQ lists a missing DMARC record, with a minimum policy of p=none, among the things that leave a sender without delivery support or mitigations at Gmail. The DMARC generator builds the record, and how to set up SPF, DKIM and DMARC walks through the order of work.
Fix 4: add one-click unsubscribe headers
Gmail's guidelines say marketing and subscribed messages must support one-click unsubscribe and include a clearly visible unsubscribe link in the message body. Per Google, you include both List-Unsubscribe-Post: List-Unsubscribe=One-Click and a List-Unsubscribe header in outgoing messages.
List-Unsubscribe: <https://example.com/unsubscribe?token=abc123>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
Details that trip people up:
- RFC 8058 requires an HTTPS URL, a DKIM signature that covers both headers, and a POST to that URL that unsubscribes the person with no further confirmation.
- Google says other types of one-click unsubscribe, such as mailto and URL unsubscribe links, don't meet its requirement. A
mailto:entry alone is not enough, and neither is a link in the body. - Keep a visible unsubscribe link in the body too. Per Google, that extra body link does not have to be one-click.
- Per Google, the requirement applies to marketing and promotional messages only; transactional mail is excluded.
If your ESP does not add these headers, find the setting in its dashboard or add them in your sending code. See list-unsubscribe for the definition and RFC 8058 for the standard.
Gmail may hide the link
Gmail shows its own Unsubscribe link only for messages that pass its eligibility checks, so a missing link does not prove the headers are missing. Check Show original instead.
Why deliverability may still not improve
Authentication removes a handicap; it does not create reputation. If mail still lands in spam after SPF, DKIM, DMARC and unsubscribe all pass, look here next:
- Who you send to. Mail only people who opened, clicked or replied recently. Stale lists drive complaints and bounces, which weigh more than any DNS record. See email list hygiene.
- Complaint rate. Google's guidance puts the line at a spam rate of 0.3%; a spam rate above that removes delivery support and mitigations. Watch it in Google Postmaster Tools; our Postmaster guide explains the dashboards.
- A fresh subdomain. A new subdomain has no history. Google's guidance says to increase sending volume slowly, and the more email you send, the more slowly you should ramp. See how to warm up a new email domain.
- Blocklists. Check the sending IP and domain against DNSBLs.
DNS changes usually propagate within minutes to a few hours, depending on TTL. Reputation moves over days or weeks of consistent sending.
Checklist before you re-test
- The Return-Path domain has exactly one SPF record, under 10 lookups.
- DKIM signs with
mail.example.comorexample.com, anddkim=passshows in the headers. - A DMARC record exists at
_dmarc.example.com(or on the subdomain). - A real campaign message carries both
List-UnsubscribeandList-Unsubscribe-Post. - The unsubscribe URL is HTTPS and processes the POST without a confirmation page.
- The list is limited to recently engaged recipients.
If nothing works
Contact your sending provider's support first; they can see which Return-Path and DKIM domain they use for your account. If DNS changes do not appear, contact your DNS host or registrar. Include the full raw headers of one failing message, the Authentication-Results line, the DNS records you published and when, and what you already tried.
Subject: SPF/DKIM alignment failing on sending subdomain
Hello,
Mail from news@mail.example.com shows spf=none and dmarc=fail in
Authentication-Results (raw headers attached, sent {date and time, timezone}).
The Return-Path domain is {return-path-domain}. DKIM d= is {dkim-domain}.
I published:
- SPF TXT on {name}: {record}
- DKIM CNAME on {selector name}: {value}
- DMARC TXT on _dmarc.example.com: {record}
Please confirm which Return-Path and DKIM domains your platform uses for my
account, and whether a custom return-path domain is available.
Thanks,
{your name}
Where Mailneo helps
Mailneo sends through the mailboxes and providers you connect, so it can't edit your DNS; you publish records at your registrar or DNS host. What it does is check them: for a connected account it looks up the sending domain's SPF (including the include chain), DKIM and DMARC records and checks whether they authorize the provider you use. It also checks the domain against DNS blacklists. Campaign and newsletter emails carry both List-Unsubscribe and List-Unsubscribe-Post: List-Unsubscribe=One-Click headers, with an HTTPS URL only (no mailto: variant); one-to-one replies from the unified inbox do not carry them. Hard bounces and complaints go to the team's suppression list automatically. See the email accounts documentation or Mailneo.
Common questions
Does DMARC on the parent domain cover subdomains?
Yes, unless a subdomain publishes its own DMARC record. Receivers fall back to the organizational domain's record, and sp= sets the policy for subdomains. SPF and DKIM do not work this way.
Do I need SPF on the subdomain if my provider uses its own bounce domain?
SPF is then checked on the provider's domain, not yours, so your record does not decide the SPF result. DMARC then depends on aligned DKIM, so publish that. A custom return-path domain, if offered, restores SPF alignment.
Is a visible unsubscribe link enough?
No. Google's FAQ says a link in the body alone, without the one-click headers, does not meet the one-click requirement. You need the headers and the body link.
Why does the Unsubscribe button not show in Gmail even with the headers?
Gmail decides when to display it, using automated eligibility checks. Confirm the headers in Show original and keep your spam rate low.
Explore: Email Compliance
Related Articles
Acceptable spam rate in Google Postmaster Tools: under 0.1%
An acceptable spam rate in Google Postmaster Tools is under 0.1%, and you should never reach 0.3%. The figure is based on user-reported spam in Gmail, not on how your list was built. An opt-in list showing 1% to 2% has a complaint problem that consent alone does not prevent.
Acceptable Unsubscribe Rate in Email Marketing (and Why It Looks High)
An acceptable unsubscribe rate is roughly 0.1% to 0.5% per send, and many healthy lists sit near 0.2%. A rate of 2% or more points to a content or list problem, or to bots and mail scanners triggering unsubscribe links that no human clicked.
ActiveCampaign "bad request" unsubscribe link: what to do
The error "bad request (unsubscribe link)" means the unsubscribe page rejected the URL it received. Often the link was cut, rewritten or altered before the click. Test a fresh send, compare the URL to the original, and give ActiveCampaign support the exact link and a timestamp if it still fails.
ActiveCampaign emails quarantined by Microsoft: unsubscribe link fix
If ActiveCampaign shows emails as sent but Microsoft 365 recipients never see them, the messages are probably quarantined after delivery. Confirm it in Microsoft 365 quarantine, move links onto a domain you own, authenticate with SPF, DKIM and DMARC, and ask recipients' admins to allow-list you.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free