DEV Community

DNSFix
DNSFix

Posted on Originally published at dnsfix.com

SPF PermError: too many DNS lookups

SPF allows at most 10 DNS lookups. Go over and SPF fails for every email, even though the record looks fine.

Why it happens

Each include:, a, mx, exists and redirect costs a lookup, and includes can contain more includes. A mailbox service, a newsletter tool, a CRM and a booking tool can add up to more than 10 quickly. The limit is in the SPF standard (RFC 7208).

Fix it

  1. Run the lookup counter: it shows each include and what it costs.
  2. Remove services you no longer use. Old ones are the most common cause.
  3. Replace a and mx with nothing if your mail provider is already included.
  4. Move bulk mail to a subdomain (for example news.yourbusiness.com) with its own SPF record.
  5. Re-check until the counter shows 10 or fewer.

First published on DNSFix. Check your own domain free at dnsfix.com.

Top comments (0)