Send & Receive Issues

Fix Exchange 2016 Mail Flow Rules Rejecting Messages Without Details

Elise WilliamsElise Williams Nov 3, 2026 868 views

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.

How to Fix Exchange 2016 Mail Flow Rules Rejecting Messages Without Details
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.
Before you start

Ensure you have Exchange admin center (EAC) permissions to view and modify mail flow rules, and access to Exchange Management Shell for tracking logs.

Solution 1Recommended

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.

1
Access the Exchange Admin Center

Log into the Exchange admin center (EAC) using your administrator credentials.

2
Navigate to Mail Flow Rules

In the left-hand navigation pane, click on 'mail flow' and then select the 'rules' tab at the top.

3
Edit the Target Rule

Locate and select the rule responsible for the rejected messages, then click the 'Edit' (pencil) icon to view its properties.

4
Verify the Reject Action

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.

Review Rule Conditions and Reject Actions in EAC
Internal vs. External Senders: External mail servers or intermediate gateways may strip enhanced status codes or custom text. Test the rule with an internal sender to verify if the server is generating the correct explanation locally.
Free Microsoft Office alternative

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. 1. Visit the WPS Office Website: Go to the official WPS website to access the latest version of the suite.
  2. 2. Download the Installer: Click the 'Free Download' button to save the installation file to your computer.
  3. 3. Install and Launch: Run the installer, follow the on-screen prompts, and open WPS Office to start working immediately.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight software suite that runs smoothly without slowing down your PC.Intuitive and familiar user interface that requires zero learning curve.Integrated PDF tools to edit, convert, and manage documents seamlessly.
microsoft office alternative - wps office

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.