How to Customize Microsoft 365 Distribution List Error Messages
Question details
Administrators are looking for a way to replace or modify the default non-delivery error message sent to unauthorized users who attempt to email restricted distribution lists.

- Product
- Microsoft 365 Exchange Online
- Device & OS
- not provided
- Scenario
- Setting up custom delivery restriction bounce messages for unauthorized senders targeting restricted groups.
- Observed behavior
- Senders receive a lengthy, generic system error containing code 550 5.7.124 instead of a helpful, customized rejection notification.
Ensure you have Exchange Administrator privileges in your Microsoft 365 tenant to access and configure mail flow rules in the Exchange admin center.
Use a Mail Flow Rule to Provide a Custom Notification
Since Microsoft 365 does not natively allow editing the raw system text for the 550 5.7.124 error, creating an Exchange mail flow rule is the recommended workaround to intercept the email and provide a customized rejection message.
By setting up a mail flow rule, you can catch emails sent to restricted distribution lists by unauthorized users before they trigger the default Non-Delivery Report (NDR). Instead of the generic system error, the rule will block the message and return your specified custom explanation.
Log in to the Microsoft 365 admin center with your administrator credentials and navigate to the Exchange admin center.
In the left-hand navigation pane, go to Mail flow, and then select Rules.
Click the '+' (Add) icon to create a new rule and select 'More options' at the bottom of the window to see all available conditions and actions.
Under 'Apply this rule if', configure the conditions to identify emails sent to your restricted distribution list (e.g., 'The recipient is...') and specify the unauthorized senders (e.g., 'The sender is located... Outside the organization').
Under 'Do the following', choose the action 'Block the message', and then select 'Reject the message and include an explanation'. Type the custom error message you want unauthorized senders to see.
Review your settings, optionally add exceptions for authorized senders, and click Save to enforce the new mail flow rule.

Looking for a lighter, cost-effective office suite? Try WPS Office
While managing Exchange routing rules requires Microsoft 365 admin tools, your daily document creation doesn't have to be tied to an expensive subscription. WPS Office provides a powerful, lightweight, and free alternative with exceptional compatibility for all your Office files.

Frequently Asked Questions
Why do senders receive the 550 5.7.124 error code?
This specific NDR (Non-Delivery Report) error code is triggered when a user attempts to send an email to a Microsoft 365 distribution list that has delivery management restrictions enabled, and the sender is not on the list of authorized senders.
Can I directly edit the default Microsoft 365 NDR bounce messages?
No, Microsoft 365 does not currently provide a dedicated setting to directly edit the raw system text of specific NDRs like 550 5.7.124. Administrators must use mail flow rules to bypass the default message and send a custom one.
Will my custom mail flow rule override the default error immediately?
Mail flow rules take priority, but they do not always apply instantaneously upon creation. It typically takes between 15 minutes to an hour for new Exchange mail flow rules to replicate across the entire network.




