← Back to Blog

550 5.7.23 from Microsoft: the SPF record that is rejecting your mail, and the order we fix it

  • Admin console
  • Gmail
550 5.7.23 from Microsoft: the SPF record that is rejecting your mail, and the order we fix it

Say a 14-person insurance brokerage sends policy documents out of its own system and staff mail through Microsoft 365. One Monday the documents addressed to Outlook.com and Hotmail mailboxes start coming back. The bounce says 550 5.7.23 and mentions Sender Policy Framework. Nobody edited DNS that weekend. So the office assumes the problem sits on the recipient's side, resends twice, and loses three days before anyone reads the whole bounce.

This code is narrower than most rejection codes, which is good news. It names one check and one result. The awkward part is that the record it complains about is usually not the record people go looking at first.

What 550 5.7.23 actually says

The enhanced status code X.7.23 was registered in RFC 7372 (September 2014) with the sample text "SPF validation failed" and an associated basic status code of 550. The RFC is specific about when it applies: a message completed an SPF check that produced a fail result, and local policy then rejected it. It is used in place of the older, broader 5.7.1, as described in section 8.4 of RFC 7208.

That means a 5.7.23 bounce hands you three facts at once. The receiver ran SPF. The result was a fail, not a softfail and not a permerror. And the receiver's policy was to refuse delivery on that result rather than tag the message.

Microsoft's own guidance points the same way. Its Exchange Online article on the code says the bounce most likely indicates an SPF configuration issue in the sending organization, tells admins to read the Diagnostic information for administrators section of the bounce for the original error the receiving server returned, and then to validate the domain's SPF record with a publicly available checker.

Which code you got, and what it tells you to change

Before anyone touches DNS, confirm which rejection you are holding. These codes get mixed together in support threads, and they ask for different fixes.

Bounce codeWhat the receiver checkedWhat you change
550 5.7.23SPF on the envelope sender domain returned a failThe SPF record for that domain, so the sending IP or service is authorized by it
550 5.7.1 with wording about missing SPF, DKIM or DMARCA broad policy check, usually because there is no usable authentication at allPublish SPF, turn on DKIM signing, then add a DMARC record
550 5.7.509DMARC evaluated as a fail against a published p=reject policyAlignment: SPF or DKIM has to pass for the From domain, not for some other domain
550 5.7.515Outlook.com's authentication requirement for high-volume sendersSPF, DKIM and DMARC all present, with an aligned pass on every stream
550 5.4.1Whether the recipient address exists and is allowed to receive from youThe address itself, or the recipient's own allow rules. SPF is not involved
550 5.7.25Reverse DNS on the IP that opened the connectionA PTR record, requested from whoever owns the IP block

If your bounce is not 5.7.23, follow the row that matches instead. We have the long version of three of them: 550 5.7.515 access denied at Outlook.com, 550 5.4.1 recipient address rejected and 550 5.7.25 and the missing PTR record.

Find the domain the receiver actually checked

SPF does not check the address your reader sees. It checks the domain in the SMTP envelope sender, the one that lands in Return-Path, and on anything sent by an application that is frequently a different domain. An invoicing system can show billing@example.com in the From header and hand the receiver bounces@mail.somevendor.com on the envelope. SPF passes or fails on the second one. Fixing the record on the first one changes nothing, and that is the single most common reason a brokerage like the one above spends a week on this.

Three ways to get the real domain:

  • The bounce. Microsoft's guidance is to read the diagnostic information section, which carries the original error from the receiving server, including the domain and IP it judged.
  • A delivered message. Pull the headers from something that did arrive from the same system and read the Return-Path and the Received-SPF or Authentication-Results lines.
  • Message trace. If the mail leaves through Exchange Online, message trace shows the per-recipient result and the route the message took.

Our header analyzer does the second one for you: paste the raw headers and it separates the envelope domain from the visible From domain and shows which one each check applied to.

Fix the SPF record: one record, every sender, under ten lookups

Microsoft's SPF setup documentation is blunt about the rules, and three of them cause most 5.7.23 bounces.

One record only. A domain can have exactly one SPF record, meaning one TXT record that defines SPF. Two of them is not additive. The SPF check returns a permerror when a domain publishes more than one, and a permerror is the kind of ambiguous result a strict receiver turns into a rejection. If the domain already has a record, Microsoft's own registrar guides say to add the required values to the existing record rather than creating a second one.

Every real sender in it. Most Microsoft 365 organizations need include:spf.protection.outlook.com. If an on-premises server or appliance relays mail for a domain you send from, its IP belongs in the record too. Microsoft also asks that every domain you own be provisioned in the tenant, and notes that it limits how much mail a tenant can send from unprovisioned domains.

Ten DNS lookups, no more. The total DNS lookups the record causes cannot exceed ten, and each include: costs at least one. Go over and the result is a permerror again. A record that grew by one marketing tool at a time is the usual culprit, and the fix is in getting under the SPF 10-lookup limit.

A plain Exchange Online record looks like this, published as TXT at the domain apex, with a TTL of at least 3600 seconds:

example.com.   3600   IN   TXT   "v=spf1 include:spf.protection.outlook.com -all"

With an on-premises relay and one external sender added, still one record:

example.com.   3600   IN   TXT   "v=spf1 ip4:203.0.113.25 include:spf.protection.outlook.com include:_spf.vendor.example -all"

Two things worth knowing before you go looking in the admin console. There is no Microsoft 365 portal page or PowerShell cmdlet that publishes SPF for you: the record lives at your registrar or DNS host. And an SPF record for example.com does not cover mail.example.com. Every subdomain that sends needs its own record, which is also the clean way to keep a bulk stream separate from staff mail.

When the records are right and the mail still bounces

Two causes sit outside your DNS zone, and both of them look exactly like an SPF problem from the bounce text.

Your own outbound mail was classified as spam. Every message leaving Exchange Online is scanned on the way out. Microsoft documents that messages it determines to be spam are delivered from a secondary, less reputable IP address pool called the high-risk delivery pool, and that messages sent through that pool will not pass SPF checks, so the destination organization will not accept them. Sending from a domain with no A or MX record routes mail there regardless of the content. Message trace tells you whether your messages took that route. No DNS edit fixes it; the compromised mailbox, the scraped list or the volume spike does.

The receiver changed something. This is rarer, and it happened in the open this month. From roughly 6 November 2026 at 18:00 UTC until 9 November 2026 at 11:02 UTC, mail to personal Outlook.com, Hotmail and Live mailboxes was rejected with 550 5.7.23 and 550 5.7.1 bounces complaining about SPF, DKIM and DMARC, including mail from senders whose records were correct. Reporting on Microsoft's incident report, filed as EX1545193, attributes the cause to an update to Microsoft's spam enforcement rules that incorrectly marked and blocked legitimate messages; the change was rolled back, senders were told they did not need to alter their SPF, DKIM or DMARC records, and the rejected messages were not redelivered (as reported by Neowin, checked 17 November 2026).

The practical lesson is not that receivers are unreliable. It is the order of work. Confirm the failure is yours before you edit a live record: test the domain against a receiver that is not the one bouncing, check whether a message from the same system was accepted an hour earlier, and look at the provider's service health page. A rushed SPF edit during somebody else's incident leaves you with a broken record and no bounce to debug it against.

What we check after the record changes

  1. Resend one message and read the headers. A clean spf=pass on the envelope domain closes the case. A new code means a new cause, so work that one instead of re-editing SPF.
  2. DKIM on every stream. SPF breaks on forwarding, because the forwarder connects from its own IP. An aligned DKIM signature is what keeps a forwarded message authenticated, and it is what DMARC falls back to.
  3. DMARC with a reporting address. Start at p=none with rua set, read a week of reports, and only then tighten. Reports are how you find the sender nobody told you about.
  4. The queue. A system that bounced for days has a backlog that can flush all at once and trip rate limits at the receiver. Release it in batches.
  5. Subdomains. Check each one that sends. The apex record does not cover them, and the one you forget is the one that bounces next quarter.

How Guanacos Tech helps

On this bounce the work is mostly reading, not configuring. We find the envelope domain the receiver actually judged, count what the record resolves to today, consolidate it into one record that covers every real sender, and confirm the pass in the headers of a live message rather than in a checker. If the failure turns out to be outbound spam classification or an incident on the receiver's side, we say so and leave your DNS alone. If policy documents, invoices or notifications are bouncing from Microsoft mailboxes, our email deliverability consulting for small business starts with a 30-minute call to read the bounce and tell you which record, if any, has to change.

Sources

Next step

Would you rather we did this for you?

Thirty minutes on Google Meet, free. We look at your domain or project with you, tell you what is wrong and what we would do first. If you can fix it yourself, we say so.

Book a 30-minute call or read about our email deliverability service

Frequently asked questions

Is a 550 5.7.23 bounce my problem or the recipient’s?

Almost always the sending side. The code means the receiver ran SPF on your envelope sender domain and got a fail, so the record that authorizes your sending IPs is the thing to check. The exceptions are outbound mail routed through a spam pool and a fault at the receiver, and both are ruled out by testing the same domain against a different receiver first.

Can I publish two SPF records, one for Microsoft and one for my CRM?

No. A domain may have only one TXT record that defines SPF, and publishing two makes the check return permerror, which strict receivers treat as a failure. Merge the values into a single record and keep the total DNS lookups it causes at ten or fewer.

Will fixing SPF recover the messages that already bounced?

No. A 550 is a permanent rejection, so the receiver discarded the message and nothing is retried. That was also true of the Outlook.com rejections in early November 2026, where the rejected mail was not redelivered after the cause was rolled back. Once the record is right, resend from the sending system in batches.