What does SPF permerror mean?
An SPF permerror (permanent error) means the receiver could not interpret the domain's published SPF records, so SPF cannot pass for any message. RFC 7208 Section 2.6.7 says it "definitely requires DNS operator intervention to be resolved." Retrying will not help. Someone has to fix the DNS record.
A permerror is not a verdict on one sending IP. It is a verdict on the record itself, which is why it hits every sender on the domain at once: Microsoft 365, the newsletter platform and the billing system together. This article classifies every cause that RFC 7208 defines, shows how to detect each one, and links to the dedicated guide where one exists. For SPF basics, start with the SPF guide.
Key takeaways
- Permerror comes from the record, not from the sender. One syntax error "anywhere in the record" ends evaluation (Section 4.6).
- The causes fall into five groups: more than one record, syntax errors, lookup limits, include or redirect targets without a record, and broken macros.
- DMARC treats a permerror as no SPF pass. Mail still passes DMARC if it carries an aligned DKIM signature, which is why the error often goes unnoticed.
- Detect it with
digornslookup, thespf=permerrorresult in theAuthentication-Resultsheader, and the SPF result per source in DMARC aggregate reports. - For an MSP, a scheduled check of every client domain and every envelope subdomain catches the error before an enforced policy turns it into rejected mail.
How is permerror different from fail, softfail and temperror?
Fail and softfail are answers: the record was read and the IP was not authorised. Temperror is a transient DNS problem that may clear on retry. Permerror means the record could not be read correctly at all, so no answer about the IP exists.
| SPF result | RFC 7208 | What it means | Who fixes it |
|---|---|---|---|
pass |
2.6.3 | IP is authorised | Nothing to fix |
fail |
2.6.4 | Record read, IP explicitly not authorised (-all) |
Add the sender, or it is spoofing |
softfail |
2.6.5 | Record read, IP probably not authorised (~all) |
Add the sender, or it is spoofing |
temperror |
2.6.6 | "A transient (generally DNS) error" | Usually clears; check the DNS host |
permerror |
2.6.7 | Records "could not be correctly interpreted" | The domain's DNS operator |
The qualifier side of this table is covered in SPF softfail vs hardfail with DMARC. The rest of this article is about the last row.
What causes an SPF permerror?
Every SPF permerror traces back to a rule in RFC 7208. The table below lists each cause with its section, how to spot it and the fix. Where another academy article owns a cause in depth, the table points there instead of repeating it.
| Cause | RFC 7208 | How it looks | How to detect | Fix | In depth |
|---|---|---|---|---|---|
| More than one SPF record | 4.5 | Two TXT answers that start v=spf1 |
dig +short TXT example.com and count v=spf1 lines |
Merge into one record | Multiple SPF records |
| Syntax error | 4.6 | Space after a colon, commas, hostname in ip4: |
Read the raw TXT strings, term by term | Correct the term | SPF syntax reference |
| Unknown mechanism | 4.6.1 grammar | A term such as ip:192.0.2.1 or inlcude: |
Compare each term with the eight defined mechanisms | Spell the mechanism correctly | This article |
Invalid ip4/ip6 address or CIDR |
5.6 | ip4:192.0.2, ip4:192.0.2.0/33 |
Check each address and prefix length | Full address, prefix 0 to 32 (IPv4) or 0 to 128 (IPv6) | This article |
| More than 10 DNS-querying terms | 4.6.4 | Long chain of nested include: |
Count include, a, mx, ptr, exists, redirect through every level |
Remove, replace or move senders | SPF too many DNS lookups |
More than 10 addresses behind one mx |
4.6.4 | mx on a domain with many MX hosts |
dig +short MX example.com |
Use ip4/ip6 or include: instead |
This article |
| More than 2 void lookups | 4.6.4 | a: or include: pointing at names that no longer exist |
dig each target; look for NXDOMAIN or empty answers |
Remove dead terms | This article |
include: target has no SPF record |
5.2 | Retired vendor domain still included | dig +short TXT <target> returns no v=spf1 |
Remove or correct the include | This article |
redirect= target has no SPF record |
6.1 | Redirect to a name that was never published | dig +short TXT <target> |
Publish the target or fix the name | This article |
redirect or exp used twice |
6 | Two redirect= modifiers in one record |
Read the record | Keep one of each | This article |
| Invalid macro | 7.3 | A % not followed by {, %, - or _ |
Look for stray % characters |
Correct or remove the macro | SPF syntax reference |
Two things that look like causes are not. A domain with no SPF record at all gives none (Section 4.5), not permerror. A malformed domain name passed into the check, such as a label longer than 63 characters, also gives none (Section 4.3).
Why do two SPF records cause permerror?
Receivers do not pick the right record or merge them. Section 4.5 says that if the record set "includes more than one record, check_host() produces the "permerror" result." Only TXT records starting with v=spf1 count; verification tokens on the same name are harmless.
The usual trigger is a vendor setup guide that says "add this TXT record". The merge procedure, including how to stay inside the lookup budget afterwards, is in multiple SPF records: how to merge them. Note that a long record split into several quoted strings inside one TXT record is a single record, not two.
Which syntax errors cause permerror?
Any syntax error does. Section 4.6 says that "if there are any syntax errors anywhere in the record, check_host() returns immediately with the result "permerror"". Evaluation never reaches the mechanisms, so a typo at the end of the record breaks the senders listed at the start.
The common cases (a space after include:, commas between terms, a hostname inside ip4:) are listed with examples in the SPF syntax reference. Three edge cases are worth knowing here.
What happens with an unknown mechanism?
The grammar in Section 4.6.1 defines a fixed set of mechanisms: all, include, a, mx, ptr, ip4, ip6 and exists. A term such as ip:192.0.2.1 or a misspelt inlcude:_spf.example.net matches none of them and is not a valid modifier either, so it is a syntax error and the record returns permerror.
Unknown modifiers are different. Section 6 says "Unrecognized modifiers MUST be ignored no matter where, or how often, they appear in a record." That has a trap: include=spf.protection.outlook.com (equals sign instead of colon) fits the modifier syntax, so a strict parser may ignore it rather than error. Microsoft's SPF setup guide lists it as a syntax error. Either way, Microsoft 365 is not authorised, so fix it.
What makes an ip4 or ip6 term invalid?
Section 5.6 says "It is not permitted to omit parts of the IP address instead of using CIDR notations." So ip4:192.0.2 is invalid; write ip4:192.0.2.0/24. The grammar limits IPv4 prefix lengths to 0 to 32 and IPv6 to 0 to 128, so ip4:192.0.2.0/33 or ip6:2001:db8::/129 is a syntax error. A missing prefix is fine: IPv4 defaults to /32 and IPv6 to /128.
Can the exp modifier cause permerror?
Only by appearing twice. Section 6 says redirect and exp "MUST NOT appear in a record more than once each", and if they do, the check returns permerror. Problems inside the explanation are harmless: Section 6.2 says that on DNS errors or syntax errors in the explanation string, the receiver proceeds "as if no "exp" modifier was given." exp also does not count towards the lookup limit.
Which DNS lookup limits produce permerror?
Section 4.6.4 sets three limits per SPF check. Exceeding the 10-term limit or the mx address limit "MUST" return permerror. The two void lookup limit is a "SHOULD", so receivers that apply it return permerror and some may not.
| Limit | Value | Counts | Result |
|---|---|---|---|
| DNS-querying terms | 10 | include, a, mx, ptr, exists, redirect, through every nested record |
permerror |
Address records behind one mx |
10 | A and AAAA lookups for the MX hosts | permerror |
| Void lookups | 2 (SHOULD) | Answers with no records, or NXDOMAIN | permerror |
ip4, ip6, all and exp cost nothing. Counting and reducing the 10-term total is covered step by step in SPF too many DNS lookups, and the trade-offs of replacing includes with addresses in SPF flattening explained for MSPs.
What is a void lookup?
A void lookup is a DNS query made by an SPF term that returns either "a positive answer (RCODE 0) with an answer count of 0, or a "Name Error" (RCODE 3)", in the words of Section 4.6.4. In practice that means a:, mx: or include: pointing at a host or domain that has been deleted.
Void lookups pile up quietly as clients retire services. This record can produce three:
v=spf1 a:oldcrm.example.com a:fax.example.com mx:legacy.example.com include:spf.protection.outlook.com -all
If none of the first three names exists any more, a receiver that applies the limit returns permerror on the third void lookup, before it ever reaches the Microsoft 365 include. Check each target:
$ dig A oldcrm.example.com | grep status
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 41733
What happens when an include or redirect target has no SPF record?
Both produce permerror, which surprises people who expect none. Section 5.2 maps a none result inside an include: to "return permerror". Section 6.1 says for redirect= that "if no SPF record is found, or if the <target-name> is malformed, the result is a "permerror" rather than "none"."
A permerror inside an included record also propagates: the Section 5.2 table maps it to "return permerror" for the parent. So one vendor publishing a broken record can break every customer that includes it. Microsoft's setup guide states the same for includes: "If an include: domain doesn't resolve or has no SPF record, SPF validation returns permerror."
Check every include and redirect target:
$ dig +short TXT _spf.vendor.example
$ dig +short TXT _spf.example.com | grep spf1
"v=spf1 ip4:192.0.2.0/24 -all"
An empty answer for the first target means the include must go or be corrected. Remember the all rule too: Section 5.1 says redirect is ignored whenever the record contains all, so a broken redirect in a record that ends with ~all never runs.
How do you detect an SPF permerror?
Use three views: the DNS records themselves, the receiver's verdict in the message header, and the SPF result per source in DMARC aggregate reports. DNS tells you why; headers and reports tell you that it is happening and where.
Which dig and nslookup commands find the cause?
Start with the record, then walk every target it references:
# All SPF records at the name (more than one line = permerror)
dig +short TXT example.com | grep -i "v=spf1"
# Same on Windows
nslookup -type=TXT example.com
# Each include or redirect target must return one v=spf1 record
dig +short TXT spf.protection.outlook.com
# Void lookup check: NXDOMAIN or an empty answer counts as void
dig A oldcrm.example.com | grep status
# mx address limit: count MX hosts behind an mx term
dig +short MX example.com
Check the envelope (MAIL FROM) domain your senders actually use, not only the apex. A return-path subdomain such as bounce.example.com is checked on its own. How to check your SPF record and DNS lookup fundamentals for MSPs cover the commands in more detail.
What does spf=permerror look like in a header?
Receivers record the SPF result in the Authentication-Results header defined by RFC 8601. Section 2.7.2 maps permerror to RFC 7208 Section 2.6.7 and reports the checked domain as smtp.mailfrom. An illustrative example, not copied from a real message:
Authentication-Results: mx.example.net;
spf=permerror smtp.mailfrom=example.com;
dkim=pass header.d=example.com header.s=sel1;
dmarc=pass action=none header.from=example.com
Here SPF is broken but DMARC still passes on aligned DKIM. The email header guide explains how to find the receiving hop's header.
How do Microsoft 365 and Google show it?
Microsoft documents spf=permerror in its anti-spam message headers reference as "A permanent error occurred. For example, the domain has a badly formatted SPF record." Its authentication troubleshooting page names two causes: more than 10 lookups, or multiple SPF records for the domain.
Microsoft's SPF setup guide adds that when lookups exceed 10, the destination system may bounce the message with errors such as "The message exceeded the hop count" or "The message required too many lookups."
Google's Troubleshoot SPF issues article tells admins to read the text after spf= in Authentication-Results. For temperror or permerror, it suggests checking with the domain provider for DNS issues. It also warns that with multiple SPF records "your email might end up in a recipient's spam folder", and that lookup limit errors "might include warnings that you don't have an SPF record".
Where does permerror show in DMARC reports?
The aggregate report schema in RFC 9990 Appendix A includes permerror as an SPF result value. A record-level permerror shows as the same SPF result for every source on the domain, legitimate or not, often starting on the day of a DNS change. DMARC aggregate reports explained shows where the field sits.
How does DMARC treat an SPF permerror?
As no SPF pass. RFC 9989 Section 4.4.2 makes the MAIL FROM domain an SPF-Authenticated Identifier only "If the use of the domain in the MAIL FROM identity is validated by SPF". A permerror validates nothing, so SPF contributes no identifier.
DMARC can still pass. Section 5.3.5 says a message passes "If one or more of the Authenticated Identifiers align with the Author Domain", and an aligned DKIM signature is one. Mail from senders that sign with the client's domain keeps passing; mail that relied on SPF alone fails DMARC. At p=quarantine or p=reject, that mail goes to spam or is refused.
Do not confuse this with a DMARC permerror, which is a broken _dmarc record. That case, and the bounce it can cause, is covered in 554 5.7.5 permanent error evaluating DMARC policy. The alignment side is in why DMARC fails when SPF passes.
Is permerror worse than softfail for deliverability?
On the standards, yes. Section 8.5 says receivers "SHOULD NOT reject the message based solely on" a softfail. Section 8.7 anticipates rejection for permerror and tells receivers that do so to use reply code 550 with enhanced status code 5.5.2.
What each receiver does is local policy (RFC 7208 Appendix G.3), and neither Microsoft nor Google publishes a fixed rule for inbound SPF permerror. The bigger difference is scope. A softfail affects only the unlisted IP. A permerror removes SPF for every sender on the domain, so any source without aligned DKIM loses its route to a DMARC pass at the same moment.
How do you fix an SPF permerror?
Find the cause with the table above, fix it in DNS, then confirm. The order below catches the most common causes first and avoids fixing one problem while creating another:
- Count records. If more than one
v=spf1record exists, merge them first. - Lint the published value. Read the raw TXT strings, not the copy in the change ticket. Look for spaces after colons, commas, curly quotes, stray
%characters and misspelt mechanisms. - Resolve every target. Each
include:andredirect=target must return exactly onev=spf1record. Remove includes for vendors the client no longer uses. - Count lookups. Ten DNS-querying terms in total, at most 10 addresses behind each
mx, and no more than two void lookups. - Publish and verify. After the TTL expires, send a test message to an external mailbox and confirm
spf=passinAuthentication-Results. Then watch the next aggregate reports.
A clean record after the fix looks like this:
example.com. TXT "v=spf1 include:spf.protection.outlook.com include:_spf.mailer.example.net ip4:192.0.2.25 -all"
How to create an SPF record and SPF record best practices cover the wider design.
How should an MSP check a portfolio for SPF permerror?
Run the same check on every client domain on a schedule and after every DNS change. Permerror usually arrives through change: a new vendor, a retired service, a DNS migration, or an include target that a vendor broke on their side.
A routine that works across tenants:
- Inventory envelope domains. For each client, list the apex and every
MAIL FROMdomain its senders use, taken from aggregate reports rather than memory. - Run the five checks from the fix list above against each name, and record the lookup count so you can see a client creeping towards 10.
- Re-resolve includes regularly. A vendor that changes or deletes its SPF record breaks clients who changed nothing.
- Watch aggregate reports for a domain-wide shift. SPF permerror across every source on one day points at the record, not at a sender.
- Gate DNS changes. Put SPF edits through change control with a before and after lint.
- Do not enforce on SPF alone. Before moving from
p=nonetop=quarantineand thenp=reject, make sure the main sources pass aligned DKIM, so an SPF permerror cannot block legitimate mail on its own.
For UK clients, the NCSC's Mail Check service was retired on 31 March 2026, so these checks now need to come from the MSP's own tooling. DMARC AI collects aggregate reports for every client domain in one multi-tenant view and uses AI to classify sending sources, so a domain-wide SPF failure stands out. The DMARC guide and common DMARC errors cover what to check once SPF is clean.
FAQ
Does SPF permerror mean my email will be rejected?
Not necessarily. SPF gives no pass, so DMARC depends on aligned DKIM. Mail with an aligned DKIM signature still passes DMARC. Mail that relies on SPF alone fails DMARC and, at p=quarantine or p=reject, goes to spam or bounces. Some receivers may also reject on the permerror itself, as RFC 7208 Section 8.7 allows.
Is SPF permerror the sender's or the receiver's problem?
The domain owner's. RFC 7208 defines permerror as a record that "could not be correctly interpreted" and says it requires DNS operator intervention. A receiver that applies the standard correctly will keep returning permerror until the record is fixed. Check the record and every include or redirect target it references.
Can a correct SPF record still return permerror?
Yes, through an include. If an included vendor record disappears or itself returns permerror, RFC 7208 Section 5.2 passes permerror up to your domain. Lookup counts can also grow when a vendor adds nested includes. Re-resolve every include target regularly, not only when you edit your own record.
What is the difference between SPF permerror and temperror?
Temperror is "a transient (generally DNS) error", such as a timeout, and a later retry may succeed. Permerror means the published record cannot be interpreted, so retrying gives the same result. Temperror points at DNS availability; permerror points at the content of the record or of a record it references.
How long does it take for an SPF permerror fix to work?
As long as resolvers keep the old record cached, which is up to the record's TTL (time to live). After that, new checks see the fixed record. Confirm with a test message showing spf=pass, then check that the following aggregate reports no longer show permerror for the domain's sources.