Microsoft 365 / Exchange Online 5.7.23: Sender Policy Framework violation
Exchange rejected the message because of an SPF violation.
- SMTP reply
- Varies by SMTP server
- Enhanced DSN
- 5.7.23
- Status
- Hard / permanent
- Provider
- Microsoft 365 / Exchange Online
- Retryable
- No
- Diagnosis
- Exchange rejected the message because of an SPF violation.
Raw SMTP response
Illustrative response using fictional values. Compare it with the complete reply in your own log.
Illustrative response
Status: 5.7.23
Diagnostic-Code: smtp; Sender Policy Framework violationFour-step fix playbook
- Capture the full reply
Save the receiving host, SMTP stage, UTC timestamp, complete reply and the original queue ID. Redact real addresses before sharing.
- Resolve the cause
Verify the actual envelope domain and authorized sending IP against the published SPF record.
- Set retry and suppression handling
Pause automatic retries for this response. Resolve the cause before any controlled retest. Keep existing opt-out and invalid-address suppressions in force. Record this result under its actual cause.
- Confirm the outcome
Check the next delivery or test with an authorized mailbox and review the new status. Leave pauses or suppressions in place until the evidence changes.
DNS and suppression checks
Replace example fields with authorized values. The CSV snippets are review records. Confirm the cause before importing a suppression.
DNS authentication checks
dig +short TXT sender.example
dig +short TXT _dmarc.sender.example
dig +short TXT selector._domainkey.sender.exampleOfficial primary source
Microsoft 365 / Exchange Online documentation
Read the complete reply alongside the published guidance.
Frequently asked questions
What does this Microsoft 365 / Exchange Online bounce indicate?
Exchange rejected the message because of an SPF violation.
Should I retry the same message?
Pause automatic retries for this response. Resolve the cause before any controlled retest.
Should I remove the recipient from my list?
Keep existing opt-out and invalid-address suppressions in force. Record this result under its actual cause. Review the full response before changing recipient status.
Start with Xpoudy
$0/mo cold email sending and warm-up. Pay as you go for lead data and verification credits.
Start Free