Fix Exchange 2016 Mail Flow Rules Rejecting Messages Without Details
Question details
Administrators need to resolve an issue where Exchange Server 2016 rejects email messages with a 5.7.1 error but fails to provide the configured custom explanation to the sender.

- Product
- Microsoft Exchange Server 2016
- Device & OS
- not provided
- Scenario
- Configuring mail flow rules to ensure rejected messages properly display customized explanations or enhanced status codes.
- Observed behavior
- Exchange Server 2016 rejects messages triggering a 5.7.1 error but does not show the specifically configured rejection explanation to the original sender.
Ensure you have Exchange admin center (EAC) permissions to view and modify mail flow rules, and access to Exchange Management Shell for tracking logs.
Review Rule Conditions and Reject Actions in EAC
Check your mail flow rule configurations in the Exchange admin center to verify that the rejection action is correctly targeting the intended senders.
The delivery of a custom explanation can depend heavily on the specific message path and the defined rule actions. Misconfigured conditions can cause the server to fall back to a generic 5.7.1 error.
Log into the Exchange admin center (EAC) using your administrator credentials.
In the left-hand navigation pane, click on 'mail flow' and then select the 'rules' tab at the top.
Locate and select the rule responsible for the rejected messages, then click the 'Edit' (pencil) icon to view its properties.
Scroll to the 'Do the following' section and ensure the action is set to 'Reject the message with the explanation' or 'Reject the message with the enhanced status code', containing your custom text.

Analyze Message Tracking Logs via Management Shell
Use the Exchange Management Shell to trace rejected messages and identify where the custom explanation is being dropped or overridden.
Enhance Your Daily Productivity with WPS Office
While troubleshooting Exchange Server 2016 routing requires advanced IT tools, your everyday document, spreadsheet, and presentation tasks shouldn't be complicated. WPS Office offers a free, lightweight, and fully compatible alternative to Microsoft Office, helping you manage your work effortlessly.
- 1. Visit the WPS Office Website: Go to the official WPS website to access the latest version of the suite.
- 2. Download the Installer: Click the 'Free Download' button to save the installation file to your computer.
- 3. Install and Launch: Run the installer, follow the on-screen prompts, and open WPS Office to start working immediately.

Frequently Asked Questions
Why do senders receive a generic 5.7.1 error instead of my custom rule explanation?
A generic 5.7.1 error usually occurs if the mail flow rule's reject action is misconfigured, if the action conflicts with another higher-priority rule, or if an external intermediary mail server strips the custom enhanced status code text before returning it to the sender.
Can I configure different rejection messages for internal and external senders?
Yes. You can achieve this by creating two separate mail flow rules in the Exchange admin center. Set the conditions for one rule to apply when the sender is 'Inside the organization' and the other for 'Outside the organization', applying different rejection explanations to each.
Where is the best place to get help for advanced Exchange 2016 mail flow issues?
For highly complex routing or rule evaluation problems, it is recommended to gather your message tracking logs and rule configurations, then post a detailed question in the official Microsoft Q&A Exchange Server forum where specialized engineers can assist.




