SPF PermError: What It Means and How to Fix It
A permerror result means the domain's published records could not be correctly interpreted. Unlike fail (which is an explicit statement that the sender is not authorized), permerror indicates the policy itself is broken and cannot be evaluated. It is a distinct error result, not a sender-authorization verdict.
PermError vs. other SPF results
| Result | What it means (RFC 7208 §2.6) | Receiver action |
|---|---|---|
| none | No SPF record found, or no usable identity | No SPF assertion to act on |
| neutral | The domain explicitly states no assertion either way | No SPF-based decision |
| pass | The client is authorized to send with this identity | Receiver policy - pass does not guarantee acceptance |
| softfail | A weak statement that the host is probably not authorized | Receiver policy - may accept, penalize, or other |
| fail | The client is not authorized to use this identity | Receiver policy - fail does not guarantee rejection |
| temperror | A transient (typically DNS) error during evaluation | Receiver policy - may retry, accept, or defer |
| permerror | The published records could not be correctly interpreted | Receiver policy - permerror is distinct from "none" |
Source: RFC 7208 §2.6. The "Receiver action" column describes the receiver's decision domain, not a specified outcome.
Common causes of permerror
The following are common causes, not an exhaustive list. Other conditions in RFC 7208 can also produce this result.
1. Multiple SPF records
RFC 7208 §4.5 requires exactly one v=spf1 TXT record per domain. If the record set includes more than one, evaluation terminates with permerror. This commonly happens when two departments each add their own SPF record, or when a new record is added without deleting the old one.
Synthetic example - two records found for example.com:
example.com. IN TXT "v=spf1 include:_spf.google.com ~all" example.com. IN TXT "v=spf1 include:sendgrid.net ~all" → Result: permerror (multiple records)
2. Syntax errors
If the record contains terms the evaluator cannot parse - misspelled mechanisms, malformed IP addresses, unrecognizable syntax - evaluation stops with permerror. RFC 7208 §4.6 defines the grammar; anything outside it triggers this result.
Synthetic example - unrecognized mechanism:
v=spf1 include:_spf.google.com inclde:sendgrid.net ~all
^^^^^^ not a valid mechanism
→ Result: permerror (syntax error) 3. Exceeded DNS lookup limit
SPF evaluation is limited to 10 DNS-querying terms across the entire evaluation - including nested includes within included domains. RFC 7208 §4.6.4 specifies this limit. The terms that count are: include, a, mx, ptr, exists, and the redirect modifier. (The ptr mechanism counts as a DNS-querying term although RFC 7208 §5.5 recommends against publishing it.) When an evaluation would exceed the limit, it returns permerror.
A top-level count of lookup terms in your record is a useful screening tool, but it is incomplete: nested includes can add additional DNS-querying terms during evaluation. Only a recursive evaluation can confirm the total.
Worked example: recursive lookup counting
The following is a self-contained synthetic example. All records and the test sender IP are defined below. You can reproduce the count by following RFC 7208 §4.6.4 and §5 step by step.
Records
example.com. IN TXT "v=spf1 include:esp1.example include:esp2.example ~all" esp1.example. IN TXT "v=spf1 include:_net.esp1.example ip4:198.51.100.10 ~all" _net.esp1.example. IN TXT "v=spf1 ip4:198.51.100.0/24 ~all" esp2.example. IN TXT "v=spf1 ip4:203.0.113.5 ~all" Test sender IP: 198.51.100.10
Evaluation trace
check_host(198.51.100.10, example.com):
1. include:esp1.example → DNS query #1
check_host(198.51.100.10, esp1.example):
2. include:_net.esp1.example → DNS query #2
check_host(198.51.100.10, _net.esp1.example):
3. ip4:198.51.100.0/24 → no DNS query (literal IP)
198.51.100.10 is in 198.51.100.0/24 → MATCH
→ include returns pass
→ esp1.example evaluation stops (include matched)
→ esp1.example returns pass
→ example.com: first include matched → evaluation stops at ~all
→ Result: softfail (reached ~all, no mechanism matched the IP before it)
Wait - re-check: include:esp1.example matched, so the include mechanism
returns pass. Evaluation of example.com's record stops at the next term
(~all is never reached because include already matched).
Correction: include:esp1.example returned pass → example.com returns pass.
Total DNS-querying terms evaluated: 2
(1 for include:esp1.example + 1 for include:_net.esp1.example)
Terms NOT evaluated: include:esp2.example, ~all
(evaluation stopped after the first include matched)
→ Result: pass (authorized)
→ Lookup count: 2 of 10
Key point: evaluation stops as soon as a mechanism matches. The second include:esp2.example was never queried because the first include already returned pass. If the sender IP were 203.0.113.5 instead, the first include would not match (esp1's network is 198.51.100.0/24), evaluation would continue to the second include, which would match - still using only 3 DNS queries (include:esp1.example, its nested include, and include:esp2.example).
This is a synthetic walkthrough for illustration - it is not output from our checker or any tool. Our SPF Record Checker counts top-level terms only; it does not recursively evaluate include chains.
Safe correction steps
- Diagnose the cause. Use the SPF Record Checker to inspect your record's syntax and count its top-level lookup terms. The tool reports syntax errors and a top-level count that may indicate a problem.
- If multiple records: merge all mechanisms into a single
v=spf1record and delete the duplicate. Every authorized sender must appear in the one remaining record. - If syntax error: correct the misspelled or malformed term. The checker's term table shows which term it could not parse.
- If over the lookup limit: first check whether every
include:is still needed. Remove any for services you no longer use. Then check your email provider's current SPF guidance - they may have consolidated or changed their include domains. Only after exhausting these options, consider whether SPF flattening makes sense. Flattening replaces includes with IP addresses, which can become stale if the provider changes their infrastructure - it is a maintenance trade-off, not a default fix. - Retest. Run the SPF Record Checker again. For sender-level verification, send a test message and inspect the
Authentication-Resultsheader.
Related
- The SPF 10-lookup limit explained
- SPF records: the complete guide
- SPF Record Checker (free tool)
- SPF Flattener (free tool, with trade-offs)
Primary reference: RFC 7208 - Sender Policy Framework. Synthetic examples are labeled and are for illustration only.
Frequently asked questions
Does permerror mean my domain is blocked?+
No. Permerror means receivers could not evaluate your SPF record at all, usually from syntax errors or too many lookups. Fix the record and evaluation resumes.
Can I just delete my SPF record to fix permerror?+
Deleting stops the permerror but leaves your domain unauthenticated. Fix or rebuild the record instead: one v=spf1 record, under 10 lookups.
Why did permerror start suddenly?+
A new include pushed the lookup count over 10, or an edit introduced a syntax error. Our SPF checker reports both conditions in one run.
Last verified: 2026-10-28