SPF PermError: your SPF record is broken

The SPF record cannot be evaluated: syntax, duplicates or too many lookups.

Validate an SPF record.

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

CauseExample
Two SPF recordsTwo TXT records starting with v=spf1, often one old and one from a new provider.
More than 10 DNS lookupsToo many include:, a, mx or redirect. See too many DNS lookups.
Syntax errorinclude: _spf.google.com (space after the colon), ip4:192.0.2.0/33, a typo like inculde.
An include that does not existinclude:spf.oldprovider.com after the provider removed it.
Bad charactersCurly quotes or line breaks pasted from a document.

How to fix it

  1. Check your domain with the SPF checker above: it shows each problem in plain words.
  2. If there are two records, merge them into one: one v=spf1, all the includes, one all at the end.
  3. Fix any syntax error the checker points out, and remove includes of providers you no longer use.
  4. If you are over 10 lookups, remove unused senders or replace an include by the IP ranges it publishes.
  5. 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.

Related errors

Last updated: