
SPF failure isn't one error. An SPF check can return fail, softfail, neutral, none, temperror or permerror, and each points to a different fix. Two of the most common, too many DNS lookups and two SPF records on one domain, produce a permerror that breaks SPF for every message. This guide shows how to fix SPF failure step by step by reading the exact result first.
💡 TL;DR
To fix SPF failure, read the spf= result in the message header. fail or softfail means the sending server isn't listed in your SPF record: add the service's include or IP. none means no SPF record exists: publish one. permerror usually means more than 10 DNS lookups, two SPF records on the domain, or a syntax error: merge records, remove unused includes and fix syntax. temperror is a temporary DNS problem. Remember SPF checks the envelope sender (Return-Path), not the visible From, so SPF can pass while DMARC fails; for DMARC, the SPF domain must align with From. Forwarding often breaks SPF, which is why DKIM matters too.
By LiteMail · Prices/data checked on November 25, 2026
Table of Contents
SPF Failure Is Six Different Results
SPF Results and What Each Means
Fix 1: fail, softfail or neutral (Sender Not Listed)
Fix 2: none (No SPF Record)
Fix 3: permerror (Lookups, Duplicates, Syntax)
Fix 4: temperror (Temporary DNS Problems)
SPF Passes but DMARC Fails
Why Forwarding Breaks SPF
~all vs -all: Which Ending to Use
Step-by-Step: The Full SPF Fix Checklist
Worked Example: A permerror From Too Many Lookups
Final Verdict: Read the Result, Fix That Cause
Frequently Asked Questions
SPF Failure Is Six Different Results
SPF lets a domain list the servers allowed to send its mail. When a receiver checks SPF, the specification (RFC 7208) defines several possible results, and each tells you something different about what went wrong.
Most guides treat them all as "SPF failed". That's why fixes often miss: adding an include does nothing for a permerror caused by too many lookups.
By the end of this, you'll know how to fix SPF failure for each result, step by step.
SPF Results and What Each Means
Find the spf= result in the Authentication-Results header (in Gmail, Show Original) and match it here.
Result | Meaning | Fix |
|---|---|---|
pass | Sending IP is authorized | None needed (check alignment for DMARC) |
fail | IP not authorized, record ends in -all | Fix 1: add the sender |
softfail | IP not authorized, record ends in ~all | Fix 1: add the sender |
neutral | Record ends in ?all; no assertion | Fix 1, then tighten the policy |
none | No SPF record found | Fix 2: publish a record |
permerror | Record can't be evaluated | Fix 3: lookups, duplicates, syntax |
temperror | Temporary DNS failure | Fix 4: check DNS availability |
💡 Check the right domain
SPF is checked against the envelope sender (Return-Path), not the From address people see. Look at smtp.mailfrom in the header to see which domain was checked.
How We Built This Guide
This guide follows the SPF specification (RFC 7208), Google's sender guidelines and email platforms' published SPF instructions, checked on November 25, 2026. We haven't run new tests for this article; each fix maps to a defined SPF result.
Fix 1: fail, softfail or neutral (Sender Not Listed)
The server that sent the message isn't authorized in your record. Usually a new tool, or a service that was never added.
Identify the sending service from the Received headers.
Find that service's SPF include in its documentation.
Add it to your existing record, not as a new record.
Re-test from the service.
Common includes: Google Workspace uses include:_spf.google.com; Microsoft 365 uses include:spf.protection.outlook.com.
Fix 2: none (No SPF Record)
If no SPF record exists, publish one at the root of the sending domain. Each subdomain that sends mail needs its own record too, because SPF records aren't inherited.
Create a TXT record at the domain (often shown as @).
Start with v=spf1, list every authorized sender, and end with ~all or -all.
For domains that never send mail, publish v=spf1 -all to block spoofing.
Google requires all senders to use SPF or DKIM, and bulk senders to use both.
Fix 3: permerror (Lookups, Duplicates, Syntax)
A permerror means receivers couldn't evaluate your record at all. It breaks SPF for every message, so fix it first.
Cause | How to spot it | Fix |
|---|---|---|
More than 10 DNS lookups | Many include, a, mx, redirect or exists terms | Remove unused includes; replace some with IPs; consider flattening carefully |
Two SPF records | dig shows two TXT records starting v=spf1 | Merge into one record |
Syntax error | Typos, missing spaces, wrong qualifiers | Rewrite carefully; validate with a checker |
Too many void lookups | Includes pointing to domains with no record | Remove dead includes |
The 10-lookup limit counts nested includes, so one include can use several lookups. An SPF checker that shows the lookup count saves a lot of guessing.
Fix 4: temperror (Temporary DNS Problems)
A temperror means the receiver couldn't get a DNS answer at that moment.
Check your DNS provider's status page.
Confirm all your nameservers return the same record.
Check that included domains resolve reliably.
Re-test later; persistent temperrors point to a DNS configuration issue.
SPF Passes but DMARC Fails
SPF can pass for a different domain than your From address. Many sending platforms use their own Return-Path domain, so SPF passes for them, not for you.
For DMARC, the SPF-checked domain must align with your From domain.
Fix by setting a custom Return-Path (bounce) domain in the platform, if offered.
Or rely on aligned DKIM, which most platforms support.
Our DKIM vs DMARC guide in this series explains alignment.
Why Forwarding Breaks SPF
When a message is forwarded, the forwarding server sends it from its own IP, which isn't in your SPF record. SPF fails even though you did nothing wrong.
You can't add every forwarder to your record. This is a key reason to make sure all your mail is also DKIM-signed and aligned, since DKIM usually survives simple forwarding. Google recommends forwarders use ARC to help receivers evaluate forwarded mail.
~all vs -all: Which Ending to Use
The ending of your SPF record tells receivers how to treat unlisted senders.
Ending | Meaning | When to use |
|---|---|---|
-all | Hard fail: unlisted senders are not authorized | When you're confident every sender is listed |
~all | Soft fail: unlisted senders are suspicious | Common default while you confirm all senders |
?all | Neutral: no assertion | Rarely useful |
+all | Anyone can send | Never use |
With DMARC in place, receivers rely on DMARC policy for enforcement, so ~all is a common, safe choice.
Step-by-Step: The Full SPF Fix Checklist
Use this to fix SPF failure quickly.
Send a test and read the spf= result and smtp.mailfrom domain.
Run dig TXT yourdomain.com and confirm exactly one v=spf1 record.
Count DNS lookups with an SPF checker; stay at 10 or fewer.
Add any missing sending services as includes.
Remove includes for services you no longer use.
Check alignment if DMARC fails while SPF passes.
Re-test from every sending service.
Our SPF, DKIM and DMARC guide covers the full setup.
Worked Example: A permerror From Too Many Lookups
An illustrative case. A company's SPF suddenly shows permerror after adding a new marketing tool.
Step | Finding |
|---|---|
Header | spf=permerror |
Lookup count | 12 lookups across 7 includes |
Cause | New tool's include added 3 nested lookups |
Fix | Removed 2 includes for retired services; lookup count now 9 |
Result | spf=pass across all services |
Adding the new tool didn't break anything on its own. It pushed the record over the 10-lookup limit, which broke SPF for every sender at once.
What Real Users Say
Admin forums and email platform documentation consistently identify the same top causes of SPF failure: duplicate SPF records after adding a new service, exceeding the 10-lookup limit, and services that were never added to the record. We haven't quoted frequency figures because we didn't find a verified dataset.
Final Verdict: Read the Result, Fix That Cause
To fix SPF failure, read the exact result first. fail, softfail and neutral mean a sender isn't listed; none means there's no record; permerror means lookups, duplicates or syntax; temperror means DNS. If SPF passes but DMARC fails, fix alignment or rely on aligned DKIM.
Keep one record, 10 lookups or fewer, and every active sender listed.
SPF Configured Before Your First Send
Litemail pre-warmed Google Workspace and Microsoft 365 inboxes ship with SPF, DKIM and DMARC pre-configured, plus full admin access to review and adjust records. From $39/month for 5 inboxes with dedicated US and EU IPs.
Get Pre-Warmed Inboxes from $39/mo →
Google Workspace & Microsoft 365 · Full admin access · Dedicated US and EU IPs · Plans from 5 inboxes
About Litemail — Litemail provides pre-warmed Google Workspace and Microsoft 365 inboxes for cold email outreach. From $39/month for 5 inboxes with automated DNS, dedicated US and EU IPs, and full admin access. View pre-warmed inbox plans →
Related reading: SPF, DKIM and DMARC Setup Guide · Cold Email Deliverability Guide · Blacklist Prevention for B2B Teams · Google Workspace Inboxes · Litemail Pre-Warmed Inboxes — Plans and Pricing
Key Takeaways
Read the spf= result before changing anything.
fail, softfail or neutral: add the missing sender to your one record.
permerror: check for more than 10 lookups, duplicate records or syntax errors.
SPF checks the Return-Path domain, not the visible From.
Forwarding breaks SPF; aligned DKIM covers it.
Keep exactly one SPF record and never use +all.
Frequently Asked Questions
How do I fix SPF failure?
Read the spf= result in the header, then add missing senders, publish a record if none exists, or fix permerror causes like too many lookups, duplicate records or syntax errors.
What causes an SPF permerror?
Most often more than 10 DNS lookups, two SPF records on the same domain, or a syntax error.
What is the SPF 10-lookup limit?
SPF evaluation can trigger at most 10 DNS lookups, including nested includes. Exceeding it causes a permerror.
Can I have two SPF records?
No. Two v=spf1 records cause a permerror. Merge them into one.
Why does SPF pass but DMARC fail?
SPF passed for a different domain, usually the sending platform's Return-Path. Use a custom Return-Path or aligned DKIM.
Should I use ~all or -all?
~all is a common, safe choice with DMARC in place; -all works when you're sure every sender is listed. Never use +all.
Do Litemail inboxes include SPF?
Yes. Litemail inboxes come with SPF, DKIM and DMARC pre-configured, from $39/month for 5 inboxes.
Buy Pre-Warmed Email Inboxes & Domains | Litemail
Buy pre-warmed email accounts, inboxes and domains from $39/month for 5 inboxes. Google Workspace & Microsoft 365. Automated DNS, US & EU IPs. Setup in 5 minutes.
View Plans & Pricing → Related reading: Microsoft Sending Policy and Cold Email · Microsoft 365 Inboxes · Outlook Subject Line Display · Pre-Warmed Domains · Litemail Home


