550 5.7.23 is a permanent SMTP reply meaning message rejected for an spf violation (exchange online). Microsoft explains that the destination email system uses SPF to validate inbound mail, and there is a problem with your SPF configuration.
What 550 5.7.23 means
Microsoft explains that the destination email system uses SPF to validate inbound mail, and there is a problem with your SPF configuration.
Common causes
Microsoft 365 is not in your SPF record
Most commonThe record is missing include:spf.protection.outlook.com, or it was removed during an edit.
The record ends in -all and a real sender is missing
CommonA hard fail makes the receiver reject mail from any service you forgot to list.
SPF is invalid
CommonTwo SPF records, a syntax error, or more than 10 lookups make SPF fail.
How to fix 550 5.7.23
- 1
List every service that sends for you
Include Microsoft 365, your ESPs and your servers in one SPF record.
- 2
Stay under 10 DNS lookups
Remove includes you no longer use, or flatten SPF if you need many services.
- 3
Check SPF
Run the free SPF checker to see the record, the lookup count, and any error.
Confirm your domain is set up correctly
Most delivery failures — permanent or temporary — trace back to authentication or reputation. Run a free EmailHealth check to confirm SPF, DKIM, DMARC, blacklist status, and TLS are all healthy for your sending domain. If you send in volume, free daily monitoring will alert you before a small issue becomes a flood of bounces.