Send & Receive Issues

How to Customize Microsoft 365 Distribution List Error Messages

Steven ParkerSteven Parker Oct 28, 2026 868 views

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.

Customize Microsoft 365 Distribution List Error Messages (550 5.7.124)
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.
Before you start

Ensure you have Exchange Administrator privileges in your Microsoft 365 tenant to access and configure mail flow rules in the Exchange admin center.

Solution 1Recommended

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.

1
Open Exchange Admin Center

Log in to the Microsoft 365 admin center with your administrator credentials and navigate to the Exchange admin center.

2
Navigate to Mail Flow Rules

In the left-hand navigation pane, go to Mail flow, and then select Rules.

3
Create a New Rule

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.

4
Set Conditions for Restricted Lists

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').

5
Configure the Custom Rejection Action

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.

6
Save and Enable

Review your settings, optionally add exceptions for authorized senders, and click Save to enforce the new mail flow rule.

Use a Mail Flow Rule to Provide a Custom Notification
Rule Propagation Time: It can take up to an hour for newly created or modified mail flow rules to fully propagate and take effect across your Exchange Online environment.
Free Microsoft Office alternative

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.

Completely free and lightweight alternative to heavy Microsoft Office desktop appsFully compatible with Microsoft Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) formatsFamiliar, tabbed user interface ensures a seamless transition with zero learning curveBuilt-in PDF editing, document conversion, and cloud collaboration tools included
microsoft office alternative - wps office

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.