SPF too many lookups

The ten-lookup SPF limit is one of the most common reasons otherwise legitimate mail fails SPF. The problem often appears after several SaaS senders have been added over time.

What counts as a lookup

Mechanisms such as include, a, mx, exists and redirect can all generate DNS lookups during SPF evaluation.

Typical symptoms

  • SPF permerror in message headers or validation tools
  • Mail providers reporting SPF as invalid
  • DMARC failing where SPF was expected to align

How to fix it

  1. Remove unused third-party senders.
  2. Replace broad mechanisms with explicit IPs where practical.
  3. Reduce nested includes.
  4. Consider careful SPF flattening.
  5. Move some traffic to a different domain or subdomain if needed.

What to avoid

Do not publish multiple SPF records and do not keep stacking services into one record without periodic cleanup. That is usually how the problem starts.

Related guides