Technical details
An SPF mechanism is a single evaluation rule inside a v=spf1 TXT record defined in RFC 7208 that determines whether a sending IP is authorized to send email for a domain.
SPF mechanisms are evaluated left to right, and the first mechanism that matches the connecting IP address determines the result (pass, fail, softfail, or neutral).
The 10-DNS-lookup limit in RFC 7208 caps the total number of mechanisms that trigger DNS queries (include, a, mx, ptr, and exists) to prevent denial-of-service amplification.
Frequently asked questions
How many SPF mechanisms can I have?+
You can have unlimited non-DNS mechanisms (ip4, ip6, all). DNS-querying mechanisms (include, a, mx, ptr, exists) are capped at 10 total.
What happens if I use two all mechanisms?+
Only the first all mechanism is evaluated. The second is ignored. RFC 7208 requires all to be the last mechanism.
Does include: recursive counting apply to nested includes?+
Yes. Each include: triggers a new SPF evaluation of the target domain, and its own DNS-querying mechanisms count against your total of 10.
Check your domain with our free tools: SPF checker, DMARC checker, DKIM checker.