550 5.7.23 SPF validation error: what it means and how to fix it
The error 550 5.7.23 SPF validation error means Outlook.com checked your domain's SPF record and either the sending server was not authorized or the record could not be evaluated. Fix it by publishing one valid SPF record that covers every service sending as you, then confirm with the message headers.
Sohail Hussain10 min readShort answer
- The sending domain's SPF record is missing, duplicated, over the 10-lookup limit, or does not list the server that sent the message. Fix it at your DNS host so one valid SPF record covers every service that sends as you.
- Then check that DKIM and DMARC are set up, because Outlook.com's bounce text also mentions them. Send a fresh test message and read the new bounce or headers.
- If everything validates and only some messages fail, collect the full bounce and contact Microsoft support.
You sent a message to an Outlook.com, Hotmail, Live or MSN address and got back 550 5.7.23 SPF validation error, often with the line "couldn't confirm that your message was sent from a trusted location". The longer form many senders see is 550 5.7.23 The message was rejected because of Sender Policy Framework violation -> 550 5.7.1 Message rejected: Message lacks SPF/DKIM/DMARC Auth Records (AS9031519).
This is a permanent rejection during server-to-server delivery. It happens before the message reaches the recipient's mailbox, so Outlook junk settings and Safe Senders cannot override it. The fix sits with whoever manages the sending domain's DNS.
Why it happens
Outlook.com checks the SPF record of the sending domain and rejects the message when the check fails. SPF compares the sending server against the MAIL FROM address (also called the envelope sender or 5321.MailFrom), which can differ from the visible From address. Common causes, most likely first:
- A sending service is not in the SPF record. A CRM, billing tool or newsletter platform sends as your domain but was never authorized.
- More than one SPF record. Multiple SPF TXT records for the same domain cause a permerror.
- Too many DNS lookups. Each include needs at least one lookup, and nested includes add more, so fewer than 10 include statements does not guarantee fewer than 10 lookups.
- Syntax errors or a broken include. If an include domain does not resolve or has no SPF record, validation returns permerror and messages might be rejected.
- Missing DKIM or DMARC. The AS9031519 text says the message lacks SPF, DKIM or DMARC authentication records, so SPF alone may not be the whole story.
- Microsoft 365 routing through the High Risk Delivery Pool. Per Microsoft Q&A answers, if Microsoft 365 classified the outbound message as spam and routed it through that pool, the message does not pass SPF at the destination.
- A Microsoft-side problem. See the next section.
The November 2026 wave
In early November 2026, many senders hit this bounce even though their records had been correct for years. People on Microsoft's community Q&A site report a service health notice (incident EX1545193) that blamed a recent update to spam enforcement rules, which wrongly flagged some legitimate mail as SPF violations. They report that Microsoft rolled the change back and marked the incident as Service Restored. Other users in the same threads say adding a DMARC record with p=none made the bounces stop. I can't verify that from Microsoft documentation, so treat it as a user report.
If your records validate and the bounces started in that window, resend a new test message before changing anything.
Do not replace a working record blindly
Overwriting your SPF record with a Microsoft-only value can break other services that send as your domain. Read the current record first and edit it rather than adding a second one.
Step-by-step fixes
1. Read the bounce and find the failing sender
- Open the bounce and copy the whole Diagnostic information for administrators section, including the timestamp and any IP address.
- Send a test message to an Outlook.com address you control and open its full headers.
- Paste them into the email header analyzer and find
Authentication-ResultsorReceived-SPF. - Note
smtp.mailfrom, the connecting IP, and thespf=,dkim=anddmarc=results.
If you are not the domain admin, forward the full bounce to whoever is. Changing Outlook settings will not help.
2. Match the result to the cause
| Header result | Likely cause | Fix |
|---|---|---|
spf=none | No SPF record at the envelope domain | Publish one |
spf=permerror | Two records, over 10 lookups, or a broken include | Merge, trim, or repair |
spf=fail or softfail | The sending IP is not authorized | Add that service to the record |
spf=pass, dkim=none, dmarc=fail | No DKIM, or neither SPF nor DKIM aligns with the From domain | Enable DKIM, check alignment |
| Everything passes, rejections are intermittent | Routing or a Microsoft-side false positive | Compare good and bad messages, then contact Microsoft |
The none, permerror and fail rows follow Microsoft Q&A guidance on reading Authentication-Results.
3. Publish one valid SPF record
SPF lives in public DNS. No SPF TXT record configuration is available in Microsoft 365, so you edit it at your DNS host or registrar. If Microsoft 365 is your only sender, Microsoft's documented record is:
v=spf1 include:spf.protection.outlook.com -all
If other services also send as your domain, put everything in the same record before the final -all, as in Microsoft's example that combines an IP range, the Microsoft include and a third-party include. For other vendors, copy the include from the vendor's own documentation. The SPF generator can help you assemble it.
v=spf1 include:spf.protection.outlook.com include:{vendor-include} -all
If an SPF record already exists, do not create a new one for Microsoft 365; add the value to the existing record.
4. Remove duplicates and fix syntax
- List every TXT record at the domain root that starts with
v=spf1. - Merge them into one record.
- Check for the mistakes Microsoft lists: a trailing period after the domain name, an equals sign instead of a colon after
include, and a space between the colon and the domain. - Also check for pasted smart quotes, a missing
v=spf1, and an include that points to a domain with no SPF record.
5. Get under 10 DNS lookups
- Remove services you no longer use.
- Individual IP addresses and ranges do not cause DNS lookups, so use
ip4:where the addresses are stable. - Move bulk or marketing mail to a subdomain with its own SPF record. A sending subdomain needs its own record; the parent domain's record does not cover it.
- Recount with the SPF lookup count calculator.
I would not flatten the Microsoft 365 include into IP addresses. Microsoft's sending infrastructure uses dynamic IP addresses that change frequently, so a flattened record goes stale.
6. Add DKIM and DMARC
The bounce text names all three protocols, so do not stop at SPF. For most Microsoft 365 environments, Microsoft recommends SPF first, then DKIM, then DMARC. Microsoft 365 DKIM needs two domain-specific CNAME records; get the exact values from the Defender portal or Exchange Online PowerShell rather than building them by hand. Then publish a monitoring-only DMARC record:
Move to p=quarantine and p=reject later, only after you have confirmed that all your legitimate senders pass. Our SPF, DKIM and DMARC setup guide walks through each record.
7. Check the domain and routing in Microsoft 365
If you send from Microsoft 365, confirm the sending domain is added and verified under Microsoft 365 admin center > Settings > Domains. Then run a message trace in the Exchange admin center to see whether the message went through the High Risk Delivery Pool. If it did and you believe the classification is wrong, open a Microsoft 365 support request.
8. Wait, then retest with a new message
Microsoft recommends a minimum TTL of 3600 seconds on SPF TXT records. Allow at least the record's TTL, then send a new message. Inspect the new result rather than resending the old bounced message.
Check the right domain
If you send through a third-party service, the envelope domain may be the vendor's bounce domain, not yours. Then the vendor's SPF is what Outlook.com checks, and the fix is a custom return-path or authenticated-domain setting in that vendor's dashboard.
Checklist before you try again
- Exactly one
v=spf1TXT record exists at each sending domain or subdomain. - Every service, relay, application and on-premises IP that sends as the domain is in that record.
- The total lookup count, including nested includes, is under 10.
- Every
include:target resolves and has its own SPF record. - DKIM is enabled for the custom domain and signing.
- A DMARC record exists, starting at
p=none. - The domain is verified in Microsoft 365, if you send from it.
- You waited at least the TTL and tested with a new message to an Outlook.com address.
If nothing works
If SPF, DKIM and DMARC validate and rejections continue, the cause may be routing or an Outlook.com false positive. Microsoft Q&A answers point senders to Outlook.com Sender Support for delivery to outlook.com, hotmail.com, live.com and msn.com recipients. Microsoft 365 tenants should also open Microsoft 365 admin center > Help & support > New service request.
Include the full bounce, UTC timestamps, sending IP, envelope sender and From domains, the Authentication-Results lines from a good and a failed message, and the output of a DNS lookup for your SPF record.
Subject: 550 5.7.23 SPF validation error delivering to outlook.com/hotmail.com
Sending domain: example.com
Envelope sender (MAIL FROM) domain: example.com
Sending IP: {ip-from-bounce}
First bounce: {date and time, UTC}
Bounce text: 550 5.7.23 The message was rejected because of Sender Policy Framework violation -> 550 5.7.1 Message rejected: Message lacks SPF/DKIM/DMARC Auth Records (AS9031519)
What I checked: one SPF record, under 10 lookups, DKIM enabled, DMARC published.
Authentication-Results from a delivered message and a rejected message are attached.
Please check whether this is a false positive on your side.
Where Mailneo fits
This error is a DNS and authentication problem; Mailneo can't change your DNS or override how Outlook.com filters mail. If you send through Mailneo, its domain checks look at the sending domain's SPF (including the include chain), DKIM and DMARC records and whether they authorize the provider you connected, so you can see what to fix at your DNS host. Details are in the email accounts documentation.
Common questions
Can the recipient fix a 550 5.7.23 bounce?
No. The rejection happens before delivery, and Safe Senders lists or junk settings do not apply. The recipient can forward the bounce to the sender and, if needed, report it through Outlook.com's Help option.
Is SPF checked against the From address I see in my mail client?
Not directly. SPF is evaluated against the envelope sender, and DMARC then checks whether SPF or DKIM aligns with the visible From domain. A message can pass SPF for one domain and still fail DMARC for another.
Do I need -all or is ~all fine?
Microsoft recommends -all for Microsoft 365 domains, because it also recommends DKIM and DMARC. Either way, the record has to be valid and include all your senders. Per Microsoft's docs, the DMARC policy is effectively ignored for SPF ~all failures if messages also lack DKIM signatures.
Why do only some of my messages bounce?
Different messages can take different routes: another application, relay, connector or envelope domain. Compare a delivered and a rejected message, looking at the outbound IP, the envelope sender and the DKIM signing domain. Intermittent failures were also reported during the November 2026 incident.
Explore: Email Deliverability
Related Articles
451 4.7.500 Server busy: SMTP2GO stuck at Processed (Microsoft)
`451 4.7.500 Server busy. Please try again later.` is a temporary Microsoft deferral of the connecting IP, not a problem with your message. SMTP2GO keeps retrying, so mail sits at "Processed" for hours. Ask SMTP2GO to rotate your IP, move to a dedicated IP, or allow-list carefully in Defender.
550 5.7.1 Message lacks SPF/DKIM/DMARC: Find the Real Cause
Outlook.com and Hotmail return "550 5.7.1 Message rejected: Message lacks SPF/DKIM/DMARC Auth Records" when a message fails their authentication checks. Valid SPF alone is not enough. Publish SPF, DKIM and an enforced DMARC policy for your From domain, then confirm the real cause in Message Trace.
0x800ccc0e: Outlook Unable to Connect to SMTP Server, Fixed
Outlook error 0x800ccc0e means the app could not open a connection to your outgoing (SMTP) server. Usually the port, encryption setting or password is wrong, or antivirus, a firewall or your ISP is blocking it. Set port 587 with STARTTLS, turn on SMTP authentication, and test again.
SocketLabs "421 4.5.1 Too many errors" blacklist: how to fix it
`421 4.5.1 Too many errors, you have been temporarily blacklisted` means a SocketLabs server saw repeated auth or bad-address errors from your IP and paused it. Stop whatever is retrying, fix credentials and invalid recipients, clear the queue, and wait. The block usually lifts within minutes, but returns if retries resume.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free