The consensus is that adhering to the 10 DNS lookup limit in SPF records is crucial for email deliverability. Exceeding this limit can cause SPF authentication to fail ('permerror'), leading to emails being rejected or marked as spam. While some email servers may be more lenient, strict adherence to the RFC specification is recommended. Strategies to manage the lookup count include flattening SPF records (converting 'include' statements to direct A records), carefully managing includes from providers, and using tools to avoid manual flattening due to IP changes. Regularly checking SPF records, testing, and considering alternative authentication methods like DKIM are also advised.
7 marketer opinions
The 10 DNS lookup limit in SPF records is a critical factor for email deliverability. Exceeding this limit causes SPF authentication to fail ('permerror'), leading to emails being rejected or marked as spam. Flattening SPF records, checking for unnecessary includes, and using tools to manage DNS lookups are recommended strategies to stay within the limit. Employing DKIM as an alternative or supplementary authentication method can also mitigate deliverability issues arising from SPF failures.
Marketer view
Email marketer from StackOverflow responds that exceeding the 10 DNS lookup limit causes an SPF 'permerror' and advises checking how many lookups you have, and flattening your record if required. If you can't flatten the record, try other authentication methods like DKIM to reduce dependence on SPF alone.
1 Apr 2023 - StackOverflow
Marketer view
Email marketer from scotthelme.co.uk explains the 10 DNS lookup limit and suggests that exceeding it is a very bad idea. Scott Helme explains that mail servers will stop evaluating your SPF record the moment the 10 lookup limit is breached, and typically reject your emails due to SPF failing to pass. The best approach is to stay well below the limit.
6 Oct 2022 - scotthelme.co.uk
4 expert opinions
The 10 DNS lookup limit in SPF records is crucial for email authentication, as exceeding it can lead to SPF failing. Although some mail servers may be lenient, strict adherence to the RFC specification is recommended. Strategies to stay within the limit include flattening the SPF record, which involves manually resolving lookups to A records instead of using includes, and carefully managing the includes from your providers to understand their DNS lookup contributions.
Expert view
Expert from Spam Resource explains that you have to stay under 10 DNS lookups within your SPF record, or it won't work. It is recommended to flatten the SPF record by manually doing the lookups and putting in A records instead of includes. This avoids any possible DNS lookup issues.
12 Jan 2024 - Spam Resource
Expert view
Expert from Word to the Wise responds that with SPF, you must make sure you're under the 10 DNS lookup limit. Laura Atkins recommends working with your providers to manage the includes, and understanding what DNS lookups each include is contributing to the overall count. If you can't keep it under 10, you have to flatten the SPF record.
6 Jun 2024 - Word to the Wise
3 technical articles
The SPF standard mandates a strict limit of 10 DNS lookups per SPF record. Exceeding this limit results in SPF authentication failures, as receiving mail servers often ignore SPF results that breach the limit. This impacts email deliverability and can cause temporary errors due to DNS timeouts or server load. The 10 lookup limit includes nested lookups from 'include:' mechanisms. SPF queries are resource intensive, and excessive queries can lead to denial-of-service issues and slow email processing.
Technical article
Documentation from SPF-record.com explains that the SPF standard dictates a limit of 10 DNS lookups. Exceeding this limit can cause SPF authentication to fail, as receiving mail servers are likely to ignore SPF results from records exceeding the limit. This can negatively impact email deliverability.
9 May 2024 - SPF-record.com
Technical article
Documentation from dmarcian shares that SPF has a hard limit of 10 DNS lookups. This limit includes any nested lookups from 'include:' mechanisms. Exceeding this limit will cause the SPF check to fail. This happens because SPF queries are resource intensive, and too many queries could lead to denial-of-service issues and slow email processing.
6 May 2025 - dmarcian
Are SPF, DKIM, and DMARC records necessary for transactional email servers not used for marketing?
Can a sender modify SPF records to alter SPF checking behavior?
How can I optimize my SPF record to stay within the lookup limit when using multiple email sending services?
How complex is the SPF spec for building an SPF checking library?
How do I properly set up SPF and DKIM records for email marketing, including handling multiple SPF records, IP ranges, bounce capturing, and Google Postmaster Tools verification?
How do SPF records and DKIM keys work with multiple email services like Klaviyo and Shopify?