Skip to content

SPF validation fails with 'too many DNS lookups', more than 10 includes

RFC 7208 limits SPF to 10 DNS lookups (include, a, mx, ptr, exists). With each new SaaS sender that stacks above 10 fast, and receivers return PermError, breaking alignment.

Try this first

  1. 1Count current lookups via mxtoolbox.com SPF tool. Above 8 is the danger zone.
  2. 2Flatten the SPF: replace vendor includes with their hard IP ranges (if they publish them). Less elegant, but 0 lookups.
  3. 3Use an SPF-flatten service (dmarcian-flat, EasyDMARC, or a homegrown hourly cron job), so you stay dynamic but under 10.
  4. 4Remove includes for vendors you no longer use, often low-hanging fruit.
  5. 5Reconsider whether every vendor must align via SPF, sometimes DKIM-only for a vendor is enough for DMARC alignment.

When to bring us in

If you have a complex SPF and no flatten tooling, we can set up a maintained SPF flat with monitoring so you do not get silent bounces.

See also

None of the above fits?

Describe your situation below. We pass your input plus the steps you already saw to our AI and return tailored next-step advice. If it's too risky to DIY, we'll say so.

Who are you?

For the AI question we need your email and company, so we can follow up if the AI gets stuck, and to prevent abuse.

Limited to 2 questions per hour and 5 per day, kept lean so the AI stays useful. For more, contacting us directly works better for you and us.

Or skip the DIY entirely

Our Managed IT clients do not look these things up. One point of contact, a fixed monthly price, resolved within working hours.