Suped

Summary

SPF flattening is primarily necessary to avoid exceeding the 10-DNS-lookup limit imposed by the SPF specification (RFC 7208). When an SPF record requires more than ten DNS queries to fully resolve, mail servers may treat emails as suspicious, leading to deliverability issues such as rejection or placement in the spam folder. This is especially common for domains using multiple email service providers (ESPs) or third-party sending services, as each 'include' mechanism in the SPF record can trigger additional lookups. Flattening consolidates these lookups into fewer, direct IP addresses or ranges, ensuring compliance and improving email authentication success.

Suped DMARC monitor
Free forever, no credit card required
Get started for free
Trusted by teams securing millions of inboxes
Company logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logo

What email marketers say

Many email marketers find SPF flattening to be a necessary step, especially when managing email for domains that utilize various sending platforms. They often encounter the 10-DNS-lookup limit, which can severely impact deliverability if not addressed. While some advocate for automated flattening services, others emphasize the importance of careful review of existing SPF records to remove redundant entries before resorting to flattening, believing it can sometimes be an unnecessary expense or introduce new complexities.

Marketer view

Email marketer from Email Geeks asks whether SPF flattening is truly necessary when using multiple services, noting a conflicting opinion about it being unnecessary or a waste of money.

07 Feb 2022 - Email Geeks

Marketer view

Email marketer from Email Geeks asserts that flattening is necessary if a domain is exceeding the 10 DNS lookup limit. They also emphasize the importance of monitoring DMARC aggregate reports before using any SPF flattening solution.

08 Feb 2022 - Email Geeks

What the experts say

Email deliverability experts universally agree that SPF flattening becomes essential when a domain's SPF record necessitates more than the allowed ten DNS lookups. They emphasize that while flattening can prevent authentication failures, it's crucial to understand the implications, such as the static nature of flattened records requiring frequent updates if included IP ranges change. Experts often advise a thorough audit of the existing SPF record to remove unnecessary entries before considering an automated flattening solution, stressing that proper DMARC implementation and monitoring are key to validating any SPF changes.

Expert view

Expert from Email Geeks states that SPF flattening is necessary if a domain exceeds 10 DNS lookups, and emphasizes the importance of monitoring DMARC aggregate reports before implementing any SPF flattening solution.

08 Feb 2022 - Email Geeks

Expert view

Expert from Email Geeks notes that in many cases, people incorrectly configure SPF records with unnecessary includes that could be omitted, leading to compliance issues.

08 Feb 2022 - Email Geeks

What the documentation says

Official SPF documentation, particularly RFC 7208, establishes the crucial 10-DNS-lookup limit for SPF records. This constraint is designed to prevent excessive load on DNS servers during SPF evaluation. The documentation implies that any mechanism that leads to more than ten DNS queries during the SPF validation process will result in a 'PermError', which tells the receiving mail server to treat the SPF check as invalid. While "flattening" isn't explicitly detailed as a solution in the RFC, it is a common industry practice to circumvent this lookup limit by converting domain names into their direct IP addresses, thus reducing the number of DNS queries.

Technical article

Documentation from Information Security Stack Exchange, quoting RFC 7208, clarifies that SPF implementations must limit the total number of mechanisms that require DNS lookups to 10 to prevent an unreasonable load on the DNS system.

22 Mar 2023 - security.stackexchange.com

Technical article

Documentation from GoDMARC Knowledge Base explains that SPF flattening's primary objective is to simplify SPF records, consolidating and optimizing them for enhanced email delivery and authentication.

15 May 2023 - godmarc.com

15 resources

Start improving your email deliverability today

Get started