SPF allows at most 10 DNS lookups per check. A record that needs more returns a permanent error.
What counts
include:,a,mx,existsandredirect=each use a lookup.- Lookups inside an included record count too, so one
include:can use several. ip4:,ip6:andalluse none.- No more than 2 lookups may come back empty, and one
mxentry must not lead to more than 10 mail servers.
How to cut them
- Run the SPF record checker and open the lookup tree to see which entry costs the most.
- Remove services you no longer use. Ask who set up each one before deleting it.
- Remove
aandmxif those servers don’t send your email. Avoidptr. - Move bulk or marketing email to a subdomain, which gets its own SPF record and its own 10 lookups.
- Check whether a service needs your SPF at all. Many send with their own bounce domain and rely on DKIM for DMARC.
SPF flattening: be careful
Replacing an include: with the IP addresses behind it saves lookups, but the provider can change those addresses without telling you. Only do it if something keeps the list current.
