Dev.to Security πŸ” Cybersecurity πŸ‘ 0

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 m

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.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.