Free tool
SPF record checker
Look up a domain's SPF record, count its DNS lookups against the limit of 10, and get clear fixes for anything that would make SPF fail.
What this SPF checker tests
- Exactly one SPF record. Two
v=spf1records make SPF fail with a permanent error. - The 10-lookup limit. Every
include,a,mx,ptr,existsandredirectcosts a DNS lookup, including the ones nested inside includes. We follow every include and count them all. - The all mechanism.
+allauthorises the whole internet;?allgives no guidance;~allor-allare what you want. - Deprecated mechanisms such as
ptr.
How to fix "too many DNS lookups"
- Remove includes for services you no longer use.
- Replace
aandmxwith explicitip4:ranges if your servers have fixed IPs. - Send marketing or app mail from a subdomain (for example
mail.acme.com) with its own short SPF record. Stack Emails does this by default, so it never adds to your root domain's lookups.
Next steps
SPF only covers the return-path domain. To protect the From address people see, add DKIM and a DMARC policy. Need a record from scratch? Use the SPF record generator.