
SPF flattening replaces the include: mechanisms in your SPF record with the IP addresses they resolve to, so receivers need fewer DNS lookups. It's a common fix for the SPF 10-lookup limit, which causes a permerror when exceeded. But manual flattening is fragile: when a provider changes its IPs, your record silently goes out of date. This guide explains how SPF flattening tools work, the difference between static and dynamic flattening, the risks, and the alternatives worth trying first.
💡 TL;DR
SPF flattening tools resolve the include: mechanisms in your SPF record into IP addresses, reducing DNS lookups so you stay within SPF's limit of 10. Static (manual) flattening is risky because providers change their IPs, which can make legitimate mail fail SPF without warning. Dynamic flattening tools, often sold as hosted or managed SPF by DMARC vendors, monitor providers and update the flattened record automatically. Before flattening, try simpler fixes: remove includes for services you no longer use, move some senders to subdomains with their own SPF records, and rely on aligned DKIM where possible. Use flattening when those aren't enough.
By LiteMail · Prices/data checked on November 25, 2026
Table of Contents
What Is SPF Flattening?
Static vs Dynamic Flattening
Do You Actually Need Flattening?
Alternatives to Try Before Flattening
How Dynamic Flattening Tools Work
Types of Flattening Tools
Risks of Flattening an SPF Record
Step-by-Step: Deciding Whether to Flatten
How to Verify a Flattened Record
Flattening and Cold Email Domains
Worked Example: From 13 Lookups to 8 Without Flattening
Final Verdict: Clean Up First, Flatten Dynamically if Needed
Frequently Asked Questions
What Is SPF Flattening?
SPF lets receivers check whether a server is allowed to send for your domain. Each include:, a, mx, redirect or exists mechanism triggers DNS lookups, and the SPF standard (RFC 7208) caps those at 10. Go over, and receivers return a permerror, which breaks SPF for all your mail.
Flattening replaces includes with the actual IP addresses behind them, so the record needs few or no lookups.
By the end of this, you'll know how these tools work, their risks and whether you need one.
Static vs Dynamic Flattening
The key distinction is whether the flattened record stays up to date.
Static (manual) flattening | Dynamic flattening tools | |
|---|---|---|
How it works | You replace includes with IPs once | Tool monitors providers and updates IPs automatically |
Maintenance | Manual; easy to forget | Automated |
Risk when providers change IPs | High: legitimate mail starts failing | Low, if the tool updates promptly |
Typical setup | Edit your TXT record | Point SPF to a hosted record via include or redirect |
Cost | Free | Usually part of a paid DMARC or SPF service |
🚩 Static flattening goes stale
Large providers change sending IPs over time. A record flattened by hand a year ago may no longer cover them, and SPF will fail without any error on your side.
How We Built This Guide
This guide follows the SPF specification (RFC 7208) and published descriptions of hosted and dynamic SPF services from DMARC vendors, checked on November 25, 2026. We haven't benchmarked specific flattening tools against each other, so we describe tool types rather than ranking products.
The content gap
Many pages promote this as the default fix for the 10-lookup limit. This guide puts simpler fixes first and explains when flattening, especially static flattening, creates new problems.
Do You Actually Need Flattening?
Check first. Many records exceed the limit because of includes nobody uses anymore.
Count lookups with an SPF checker.
List every include and identify the service behind it.
Confirm which services still send as your domain, using DMARC reports.
Remove includes for services you've stopped using.
Recount.
Our SPF, DKIM and DMARC guide and our guide to fixing SPF failures in this series cover lookup counting.
DMARC aggregate reports are the best evidence for which services really send as your domain. If an include belongs to a service that hasn't appeared in your reports for months, it's a strong candidate for removal.
Alternatives to Try Before Flattening
These fixes are often simpler and more durable.
Alternative | How it helps |
|---|---|
Remove unused includes | Cuts lookups at no risk |
Move senders to subdomains | Each subdomain gets its own SPF record and 10-lookup budget |
Rely on aligned DKIM for some senders | DMARC passes via DKIM even if SPF doesn't cover a service |
Use the provider's recommended, smaller include | Some providers offer narrower includes |
Consolidate sending tools | Fewer services, fewer includes |
Subdomains are especially effective: marketing mail from news.yourdomain.com doesn't need to share your main domain's SPF record.
Each of these reduces the number of services your main domain's SPF record has to cover, which also makes the record easier to understand and maintain. That matters as much as the lookup count, because records nobody understands are the ones that break during the next tool change.
How Dynamic Flattening Tools Work
Most dynamic tools follow the same pattern.
You list the services that send for your domain.
The tool resolves their includes to current IP ranges.
It publishes a hosted, optimized record.
Your SPF record points to it, typically with a single include or redirect.
The tool rechecks providers regularly and updates the hosted record.
The example host is illustrative; each tool provides its own.
Types of Flattening Tools
Tools come in a few forms.
Type | Examples (illustrative) | Notes |
|---|---|---|
Hosted/dynamic SPF in DMARC platforms | Offered by several DMARC vendors, such as EasyDMARC and PowerDMARC | Combined with DMARC reporting |
Standalone flattening services | Dedicated SPF services | Focused on SPF only |
Free online flatteners | One-time IP output | Static; you maintain it |
Check each vendor's current features and pricing; offerings change.
When evaluating a tool, ask how often it rechecks providers, what happens if the tool itself is unavailable, and how easily you can return to a normal SPF record if you stop using it.
Risks of Flattening an SPF Record
Even dynamic approaches have trade-offs.
Stale IPs with static flattening, causing silent SPF failures.
Record length: many IPs can exceed the 255-character TXT string limit, requiring multiple strings, and very long records can cause DNS issues.
Vendor dependence: your SPF relies on the tool's uptime and accuracy.
Hidden complexity: teams may not know which services are actually authorized.
Keep an inventory of authorized senders regardless of the tool you use.
Step-by-Step: Deciding Whether to Flatten
Use this process.
Count lookups. If under 10, you don't need flattening.
Remove unused includes and recount.
Move suitable senders to subdomains.
Confirm DKIM is aligned for each sender.
If still over 10, choose a dynamic flattening tool, not static.
Monitor DMARC reports after the change.
If you do adopt one of the available SPF flattening tools, document which services it covers and who owns the account, so the setup survives staff changes and doesn't become another mystery in your DNS.
How to Verify a Flattened Record
After any change, check that everything still passes.
Run an SPF checker: one record, 10 or fewer lookups, no errors.
Send test emails from every service; confirm spf=pass.
Review DMARC aggregate reports for new SPF failures.
Re-check after any provider announces infrastructure changes.
Set a reminder to repeat these checks every quarter, even with a dynamic tool. A quick review catches services that were added without updating the record and confirms the tool is still doing its job.
Flattening and Cold Email Domains
Cold email sending domains usually need far fewer includes than a main company domain, because they send through one mailbox provider and maybe one sequencer. Flattening is rarely needed there.
Keep outreach domains simple: one provider include, aligned DKIM and DMARC. Every Litemail pre-warmed inbox ships with this configured. See our deliverability guide.
Worked Example: From 13 Lookups to 8 Without Flattening
An illustrative cleanup.
Step | Lookups |
|---|---|
Starting record (7 includes, nested) | 13 (permerror) |
Removed 2 includes for retired tools | 10 |
Moved newsletter sending to news.company.com | 8 |
Result | SPF passes; no flattening needed |
Flattening would have worked, but the cleanup was simpler and leaves nothing to maintain.
What Real Users Say
Admins frequently describe static flattening breaking SPF months later when a provider changed IPs. Deliverability practitioners commonly recommend cleaning up includes and using subdomains first, and choosing dynamic, monitored flattening when the record is still over the limit.
Final Verdict: Clean Up First, Flatten Dynamically if Needed
These tools solve the 10-lookup limit by replacing includes with IP addresses. Static flattening is fragile because provider IPs change; dynamic tools keep records current. But many records don't need flattening at all: removing unused includes and moving senders to subdomains often fixes the problem more simply.
Flatten only when cleanup isn't enough, and always with monitoring.
Simple, Correct SPF on Every Outreach Domain
Litemail pre-warmed Google Workspace and Microsoft 365 inboxes ship with SPF, DKIM and DMARC pre-configured, so outreach domains stay well within lookup limits. From $39/month for 5 inboxes with dedicated US and EU IPs and full admin access.
Get Pre-Warmed Inboxes from $39/mo →
Google Workspace & Microsoft 365 · Full admin access · Dedicated US and EU IPs · Plans from 5 inboxes
About Litemail — Litemail provides pre-warmed Google Workspace and Microsoft 365 inboxes for cold email outreach. From $39/month for 5 inboxes with automated DNS, dedicated US and EU IPs, and full admin access. View pre-warmed inbox plans →
Related reading: SPF, DKIM and DMARC Setup Guide · Cold Email Deliverability Guide · Blacklist Prevention for B2B Teams · Inbox Monitoring for Enterprise Teams · Litemail Pre-Warmed Inboxes — Plans and Pricing
Key Takeaways
SPF has a 10-lookup limit; exceeding it causes a permerror.
Flattening replaces includes with IP addresses to reduce lookups.
Static flattening goes stale when providers change IPs.
Dynamic tools update flattened records automatically.
Remove unused includes and use subdomains before flattening.
Verify with SPF checks and DMARC reports after any change.
Frequently Asked Questions
What does flattening an SPF record mean?
Replacing include: mechanisms in an SPF record with the IP addresses they resolve to, reducing DNS lookups.
Why would I need to flatten SPF?
When your SPF record exceeds the 10-lookup limit and simpler fixes aren't enough.
Is static flattening safe?
It's risky because provider IPs change, which can make legitimate mail fail SPF.
What do dynamic flattening tools do?
They host an optimized record and update it automatically as providers' IPs change.
What should I try before flattening?
Remove unused includes, move senders to subdomains and rely on aligned DKIM where possible.
Do cold email domains need flattening?
Rarely. They usually have few includes.
Do Litemail inboxes include SPF?
Yes. SPF, DKIM and DMARC are pre-configured on Litemail inboxes from $39/month for 5 inboxes.
Buy Pre-Warmed Email Inboxes & Domains | Litemail
Buy pre-warmed email accounts, inboxes and domains from $39/month for 5 inboxes. Google Workspace & Microsoft 365. Automated DNS, US & EU IPs. Setup in 5 minutes.
View Plans & Pricing → Related reading: Google Workspace Inboxes · Microsoft 365 Inboxes · Outlook Subject Line Display · Pre-Warmed Domains · Litemail Home


