Your domain publishes a list of the services allowed to send email in your name. The list is called an SPF record, and other companies’ email systems read it every time a message from you arrives. If the sender is on the list, that counts in the message’s favour.
The list has a limit that few people hear about until they hit it. Our domain check reports “Probably, with one risk” when you are close, and “At risk” when you are over.
What the limit is
An SPF record rarely lists servers one by one. It mostly points at other lists: one line for Microsoft 365, one for the newsletter tool, one for the accounts system. The receiving system has to look each of those up, and many of them point at further lists of their own.
The standard that defines SPF (RFC 7208) allows 10 of these lookups for one message. The receiving system stops at 10 and reports a permanent error.
The count covers the whole chain. A record with four entries can cost twelve lookups if two of them fan out. That is why a record that worked for years can break the day someone adds one line for a new system.
Why it fails everything
An over-long record cannot be read to the end, so it gives no answer for any sender, including the ones near the top of the list. The message from your own mailbox fails alongside the message from the newest tool.
What happens next depends on your other settings. Where your email is also signed, and most of it should be, a failed SPF check is survivable. Where it is not, your email starts landing in junk, or is refused by the stricter recipients. Nobody sends you an error message when that happens.
How to count yours
Find the record first. It is a TXT entry on your domain that starts v=spf1. A typical one looks like this:
v=spf1 include:spf.protection.outlook.com include:servers.mcsv.net include:_spf.salesforce.com ~all
Each include, a, mx, exists and redirect costs one lookup, plus whatever the list it points at costs in turn. Addresses written out in full (ip4 and ip6) cost nothing, and nor does the all at the end.
Counting by hand means following every include to the bottom. The domain check does it for you and shows the total, with the three entries that cost the most, under “Show technical detail”.
Getting back under the limit
Start by removing what you no longer use. Most records we look at still name a newsletter tool the business left years ago, or a web host two hosts back. Every one of those is a lookup spent on nothing.
Next, look for entries that are there by habit. A bare mx or a is often left over from a template and duplicates what an include already covers.
For a sender that uses one or two fixed addresses, writing the addresses out costs no lookups at all. This only suits senders whose addresses do not change, so check with them first.
If you still do not fit, move a sender to a subdomain. Marketing email sent from news.example.co.uk has its own SPF record with its own allowance of 10, and it keeps bulk email’s reputation apart from your everyday email’s. This is what the National Cyber Security Centre suggests for organisations that outgrow one record.
Two shortcuts to avoid
Services that “flatten” a record replace every include with the addresses behind it. It works until a provider changes its addresses, which the large ones do without notice, and then genuine email starts failing with no change on your side.
Ending the record with +all makes the limit irrelevant by approving every server in the world, which is worse than having no record.
Before you change anything
A wrong edit to this record can stop your email being delivered, so make a note of the record as it stands, and make sure you know every system that sends email as you before removing a line. The systems people forget are the ones that send rarely: the scanner on the landing, the website’s contact form, the payroll bureau.
This is routine work for our engineers. If your check shows you at or over the limit, ask us from your results page and we will list what is sending as you, remove what is not, and leave room for the next system you add.