hello@wpfoss.com
Email SecuritySPFDNSDomain Security

SPF too many DNS lookups: what the error means

Your SPF check says "too many DNS lookups". What the limit of 10 is, why going over it can break email, and what to ask your email or DNS provider.

By WPfoss Team

You ran a check on your domain, or a mail report landed in your inbox, and it says something like “SPF: too many DNS lookups” or “permerror”. It sounds technical and it is easy to ignore. Please do not ignore it. It can mean the “who may send email for us” list on your domain is being thrown away, and nobody tells you.

What SPF is, in one minute

SPF (Sender Policy Framework) is a short note published with your domain. It lists the services allowed to send email using your address: your email provider, your newsletter tool, your invoicing system. When a message arrives, the receiving mail server reads the note and checks whether the sender is on the list.

The same standard also has a safety rule. To read your list, the receiving server has to look things up in DNS (the internet’s address book). Each lookup costs the receiver a little work, so the standard caps them.

What the limit is

The SPF standard (RFC 7208) says a receiving server must stop at 10 lookups while checking one message. The things that cost a lookup are include entries (a pointer to another company’s list), a, mx, ptr, exists and redirect. Entries that just list addresses directly do not cost a lookup.

The part people miss: lookups add up across the whole chain. When your list points to your email provider’s list, and that list points to three more lists, every one of those counts toward your 10. Two or three business tools can use up the allowance without anyone planning it.

What happens when you go over

The standard says that when the limit is exceeded, the result must be a “permerror”. The standard describes that as meaning the published records could not be correctly interpreted, and says it definitely needs the domain’s DNS operator to step in.

In plain words: the receiving server cannot tell whether the sender is allowed. What it does next is up to that server. Some treat it as a failed check, some shrug it off, and your SPF protection is not doing what you think. That means:

  • Real email from you may be marked suspicious or sent to spam.
  • Your own SPF can no longer help stop forgers, because the list cannot be read.
  • If you also use DMARC, which leans on SPF or DKIM passing, the effect can reach your whole email setup.

We have not tested a specific provider here. Different receivers behave differently, which is why the problem tends to show up as “some customers say our email goes to spam” rather than a clean error.

Why you reach the limit without trying

  • Many tools, one list. Every service that sends mail for you adds an include. Over the years the list grows.
  • Old tools nobody removed. The newsletter service you stopped using in 2022 may still be on the list, using up lookups.
  • Providers that point to more providers. You added one entry, but it hides several lookups of its own.
  • Using mx and a entries out of habit. These cost lookups too, and are often not needed.

The standard also says only one SPF record is allowed per domain name. A second record created when someone added a new provider is a separate mistake, and it is worth checking for at the same time.

How to find out if you have the problem

  1. Run your domain through our free domain security checker and look at the SPF result.
  2. Or open any mail report that mentions SPF “permerror” or “too many lookups”.
  3. Make a list of every service that sends email in your name: staff mail, newsletters, invoicing, your website forms, your helpdesk. Anything on the SPF list that is not on this real list is a candidate for removal.

What to ask your email or DNS provider

You do not need to edit anything yourself. Ask:

  1. How many DNS lookups does our SPF record use today, counting every nested entry?
  2. Which services on it do we actually still use?
  3. Is there more than one SPF record on the domain?
  4. If we are over the limit, how will you bring it down without cutting off a service that really sends our mail?
  5. Who will re-check it when we add a new tool?

The fix needs care. Removing the wrong entry silently stops a real service from sending, so it should be done with a list of real senders in hand and tested afterwards. We do not publish the exact edit here because the right answer depends on your senders.

Want us to check yours?

If your SPF record is over the limit, or you are not sure, we can read it, work out which services really send for you, bring it within the limit and make sure your mail keeps flowing. Start with the free domain security checker. For the fix itself, see our domain and email security service.

Sources and further reading

  • RFC 7208: Sender Policy Framework (SPF), IETF, April 2014. Source for the limit of 10 lookups (section 4.6.4), which entries count, the “permerror” result (sections 2.6.7 and 4.6.4), and one SPF record per domain name (section 3).

Stop impersonation. Control access. Protect your business.

Choose the service you need, or book a security review and we will help you identify the correct starting point.