What SPF PermError means
SPF results come in a few flavours: pass, fail, softfail, neutral,
and two errors. PermError (permanent error) means the receiving server could not even evaluate your
SPF record, because the record itself is broken. Receivers treat it like a failure, and DMARC counts SPF as failed.
You see it in bounce messages and in the Authentication-Results header:
spf=permerror.
The usual causes
| Cause | Example |
|---|---|
| Two SPF records | Two TXT records starting with v=spf1, often one old and one from a new provider. |
| More than 10 DNS lookups | Too many include:, a, mx or redirect. See too many DNS lookups. |
| Syntax error | include: _spf.google.com (space after the colon), ip4:192.0.2.0/33, a typo like inculde. |
| An include that does not exist | include:spf.oldprovider.com after the provider removed it. |
| Bad characters | Curly quotes or line breaks pasted from a document. |
How to fix it
- Check your domain with the SPF checker above: it shows each problem in plain words.
- If there are two records, merge them into one: one
v=spf1, all the includes, oneallat the end. - Fix any syntax error the checker points out, and remove includes of providers you no longer use.
- If you are over 10 lookups, remove unused senders or replace an include by the IP ranges it publishes.
- Save, wait a few minutes (the TTL) and check again until the result is valid.
Not sure what the record should look like? Build a clean one with the SPF generator, then make sure DMARC is set up too.