Skip to content

Your SPF Record Has Too Many Senders: Fixing the 10-Lookup Limit for Microsoft 365

Every app that sends email as your business adds to your SPF record. Past 10 lookups, the record breaks. Here is how to tell, and how to fix it on Microsoft 365.

Close-up of server racks in a data center highlighting modern technology infrastructure.
On this page

Most small businesses never think about their SPF record for Microsoft 365 until the day invoices start landing in a client's junk folder. Nothing changed on your end, or so it seems. You added a new billing app last month, maybe a scheduling tool, and now some mail goes through fine while other mail quietly disappears.

That pattern has a common cause, and it is fixable in an afternoon. It comes down to a hard limit in how Sender Policy Framework (SPF) works, a limit most people have never heard of until they hit it. If you have not read the overview yet, start with our post on what an email security check looks at. This one goes deep on SPF.

What an SPF record actually does

Think of SPF as the guest list for your domain. It is a single line of text published in your Domain Name System (DNS) settings, the same place your website address and mail routing live. It names every service allowed to send email on your behalf. When a message arrives claiming to be from you, the receiving server checks the list.

One detail trips people up. SPF checks the hidden return address on the message envelope (the address bounces go back to), not the From line your customer sees. Tying that hidden address to the visible From is the job of Domain-based Message Authentication, Reporting and Conformance (DMARC), which gets its own post in this series. SPF is still the foundation, and if it breaks, DMARC loses one of its two legs.

A plain Microsoft 365 record looks like this:

v=spf1 include:spf.protection.outlook.com -all

The include: part says "trust whatever servers Microsoft lists." The -all at the end says "anyone not on this list is not me." Microsoft's own SPF setup guide recommends exactly that record when Microsoft 365 is the only thing sending your mail, and it recommends the strict -all ending over the softer options.

Why your SPF record for Microsoft 365 keeps growing

Real life gets in the way fast. A shop in Pueblo or Fountain rarely sends mail from Outlook alone. The estimating platform emails bids as you. The website form sends notifications as you. A marketing tool sends the spring tune-up reminder as you. Each vendor's setup page says the same thing: add our include: to your SPF record.

So the line grows. And nobody ever takes anything off it. Switch from one email marketing tool to another and the old include usually stays, because whoever set it up three vendors ago is long gone and nobody wants to touch DNS. That is why we treat DNS cleanup as part of offboarding any email service, on the same day the account closes. A stale include does nothing useful and still costs you.

Costs you what, exactly? Lookups.

The 10-lookup limit, in plain words

Every include: forces the receiving server to go fetch another record from DNS. So do the a, mx, ptr and exists terms, and the redirect modifier. The SPF standard, RFC 7208 (RFC stands for Request for Comments, the name internet standards are published under), says a receiver must stop after 10 of those. At 11, the check does not merely fail softly. It returns a "permanent error," which most receivers treat the same as a failed check.

The catch is that includes nest. An include points to another record, which can contain its own includes, and every one of them counts. Microsoft says this directly in its documentation: having fewer than 10 include: statements doesn't guarantee fewer than 10 lookups.

To make that concrete, we looked up a few common vendor records on October 31, 2026. Microsoft's spf.protection.outlook.com cost one lookup that day, because Microsoft publishes its addresses directly. Google's record also cost one. SendGrid's cost two. Mailgun's cost five, because its record points to two more records, and one of those points to two more. These numbers change whenever a vendor reorganizes its servers, which is part of the problem. Your record can tip over the limit without you editing a single character.

Why it fails some mail and not other mail

This is the part that drives people crazy. Receivers read your SPF record left to right and stop the moment they find a match. Microsoft's guide points this out: a record can contain enough to cause more than 10 lookups, yet some checks never go deep enough to hit the error.

So mail from Outlook, listed first, sails through. Mail from the billing app, listed last, triggers the full walk and fails.

To you it looks random. It is not. It is the order of the line.

Picture a small roofing contractor in Fountain that adds a new invoicing tool in the fall. Outlook mail works. The tool's test email even lands fine in the owner's own inbox, where Microsoft's filtering is forgiving. Then a general contractor's accounts payable desk mentions the last two invoices never showed up. Nothing was hacked and nothing is down. The SPF record just hit lookup number 11 for that one sender.

Two other SPF mistakes worth checking

The first is having two SPF records. It happens all the time when a new vendor's instructions say "create a TXT record" (a plain text entry in DNS) and someone adds a second line instead of editing the first. The standard says more than one SPF record is a permanent error. Both lines stop counting. Microsoft repeats it: only one SPF record per domain or subdomain.

The second is the ending. -all means "reject strangers." ~all means "strangers are probably fake." It's common, but Microsoft recommends -all, because a soft fail on a message with no DomainKeys Identified Mail (DKIM) signature gives DMARC little to act on. But ?all tells receivers nothing at all, and Microsoft says it is for testing, not production. Worst of all is +all, which tells the whole internet it may send as you. If you find +all on your domain, fix it today, before anything else in this post.

How to fix an SPF record for Microsoft 365 that is over the limit

Start with an inventory, not with DNS. List every system that sends mail with your domain on it: Outlook, the website, the estimating or job management software, the customer relationship management (CRM) system, marketing email, the phone system's voicemail-to-email if it has one. Then compare that list to the includes in your record. Anything on the record that is not on the list is a candidate for removal, after you confirm it is truly unused.

Next, look at what each remaining vendor actually needs. Some services send from their own domain and need nothing from you. Others give you a choice. Microsoft's guide lays out three ways to cut lookups. Move outside services like marketing email onto a subdomain such as news.yourcompany.com, which gets its own SPF record and its own budget of 10. Drop services you no longer use. And where a vendor documents a stable, published set of server addresses, list those addresses directly with ip4:, which costs no lookups at all.

That last one is called flattening, and it comes with a warning. If the vendor changes its addresses and you do not notice, its mail starts failing. Microsoft specifically says not to flatten its own spf.protection.outlook.com include, because its sending addresses change often. Keep that one as an include, always.

After any change, run your domain through a free SPF validator that counts nested lookups and send a test message from each service to an outside mailbox, like a personal Gmail account. Look for a pass. Receivers can keep using the old version of the record until its time to live (TTL) runs out, often an hour or more, so give a change at least that long before you trust the result. Microsoft recommends keeping the TTL at one hour or longer anyway.

Spare domains need a record too

Many owners hold a domain or two they never send mail from: an old company name, a typo version of the main domain, the one somebody bought for a job site project. Those are easy to spoof precisely because nobody watches them. Microsoft's answer for a parked domain is a one-line record that says nobody sends mail from here:

v=spf1 -all

Pair it with a DMARC reject policy, which our DMARC post covers, and the domain is locked down.

You may have heard Google, Yahoo and Microsoft now have sender requirements. The strict versions, with SPF, DKIM and DMARC all in place, target bulk senders, so most small offices fall outside them; the email security check overview explains who they cover. Google and Yahoo still expect every sender to pass SPF or DKIM, and a broken SPF record hurts delivery at any volume. DKIM, the signature side of email, is the next piece, and our guide to turning on DKIM in Microsoft 365 walks through it.

If you would rather not touch DNS

That is a completely reasonable feeling. One typo in an SPF record, a stray period or a space after the colon, and every message fails. Untangling a decade of vendor includes is the kind of managed IT work we do: inventory the senders, rebuild the record under the limit, set up subdomains where they help, and test each service before calling it done. If your invoices are going missing, or you just want to know where your record stands, book a short call.

Questions about your technology?

Book a free assessment with us. No sales pitch, no obligation.

Get your free assessment