SPF Email Authentication: How It Works and the Lookup Limit

By Kam Low ยท Updated 2026-08-19

SPF Email Authentication

SPF (Sender Policy Framework) is a DNS record that lists which servers are allowed to send email for your domain, so receivers can reject mail from unauthorised sources. It is the oldest of the three records and still the one most often quietly broken, which makes it a recurring cause of email deliverability problems that look like reputation issues.

Two hard constraints
one record per domain
ten DNS lookups maximumexceeding it fails outright
both fail silently until they fail loudly
The gap it leaves
SPF validates the envelope sendernot the From address a person actually sees, so a passing message can still show any name it likes
Which is whyDMARC exists: it ties the two together
One record, ten lookups, envelope only. SPF alone never checked the address people see.

How SPF works

You publish a TXT record naming the IPs and services allowed to send as your domain. When a server receives mail claiming to be from you, it checks the sending IP against that list. If the IP isn't authorised, SPF fails, and combined with DMARC that mail can be quarantined or rejected.

The ten-lookup limit

SPF allows a maximum of ten DNS lookups per record, and each included service (your ESP, your CRM, your helpdesk) can consume one or more. Exceed ten and SPF fails with a permerror, silently breaking authentication. Flattening or consolidating includes is the usual fix. Because the failure is silent, confirm the result on a real delivered message rather than a record checker, which is what reading the headers in Gmail is for.

One fear we can retire: adding these records is purely additive. New CNAME or TXT entries sit alongside what is already in your zone, and they will not overwrite or break your website, your nameservers or any current records.

SPF is necessary but not sufficient

SPF alone doesn't stop spoofing of your visible from address, which is why it pairs with DKIM and DMARC. Alignment between the SPF domain and the visible from domain is what DMARC actually checks, and the full picture of authenticated email covers how the three records divide the work.

Some receivers add requirements on top of the standard. Outlook and Microsoft 365 publish a volume threshold above which all three records must be present and aligned, so an SPF-only setup that works elsewhere will start failing there as you scale.

How Nitrosend handles SPF

Nitrosend provisions the necessary records automatically and the compliance layer flags SPF problems, including the lookup-limit trap, against the 2026 bulk-sender requirements.

Verification starts by checking for the DKIM CNAMEs and the SPF record, then extends to the full set: SPF, DKIM, DMARC and return-path alignment for every sending domain.

SPF is also the record we literally cannot send without. If it is missing or broken, your campaigns do not go out at all. That bites hardest on transactional email, where a blocked send is a customer left waiting on a reset link rather than a delayed newsletter.

Adding a new sending source is what usually pushes a record past ten lookups, so count the includes before you point an email API at a domain that already carries your CRM and helpdesk.

George, our CEO, flags the trap most senders hit after setup: "Verified" only means the DNS records are valid. It does not mean allowed to send right now. Reputation and account state still gate the send.

Related reading

SPF is the easy part. Staying aligned is not

SPF authorizing your sending servers is a five-minute DNS record. Staying aligned as you add new tools, and catching it before it silently breaks DMARC, is the part people get wrong. I built Nitrosend's agent to check SPF alignment before every send, so the record you set up today does not quietly stop working the day you add a new sending service.

FAQ

What is SPF email authentication?

A DNS record listing which servers may send email for your domain, so receivers can reject mail from unauthorised sources.

What is the SPF ten-lookup limit?

SPF allows at most ten DNS lookups per record. Exceeding it causes a permerror that silently breaks authentication, usually fixed by consolidating included services.