In this post, let’s have a look at the error message “5.7.23 – The message was rejected because of Sender Policy Framework violation” that you get when working with Microsoft 365 Exchange Online.
These are the errors that you usually receive when there is a problem in delivering the email message that was sent by you. These errors are generated and sent by Office 365. This is usually alled as DSN which stands for delivery status notification or in simple words bounce messages.
NDR or Non-delivery report is one of the common type of message that you receive which indicates to the user that the email was not delivered.
Error Message
5.7.23 – The message was rejected because of Sender Policy Framework violation
Error Details
The destination email system uses SPF to validate inbound mail, and there’s a problem with your SPF configuration.
For more information, see Fix email delivery issues for error code 5.7.23 in Exchange Online.