How to Disable a Mailbox and Send a Custom Error to Senders in Exchange
Question details
The user needs to configure Exchange to automatically notify internal and external senders with a custom error message when they email a disabled mailbox.

- Product
- Microsoft Exchange
- Device & OS
- not provided
- Scenario
- An employee has left the organization, and their mailbox is disabled. Senders need to be informed that the account is no longer active instead of receiving no response or a generic failure.
- Observed behavior
- Disabling the mailbox prevents sign-ins but does not automatically send a customized notification to external or internal senders. Standard automatic replies also may not trigger properly for disabled accounts.
Ensure you have administrator access to the Exchange Admin Center (EAC) to create distribution groups and configure mail flow transport rules.
Configure an Exchange Transport Rule for External Senders
Create a specific mail flow rule to reject messages sent to inactive users and return a custom non-delivery report (NDR) explaining the mailbox status.
This is the most reliable method for notifying external senders, as MailTips are only visible to users within your own tenant.
Log in to the Exchange Admin Center, navigate to 'Recipients', and create a new distribution group. Add the disabled mailboxes of departed employees to this group.
Go to 'Mail flow' > 'Rules' and click the '+' icon to create a new rule. Name it appropriately, such as 'Inactive Mailbox NDR'.
Apply the rule if 'The sender is located outside the organization' and 'The recipient is a member of' the inactive users group you just created.
Under 'Do the following', select 'Reject the message with the explanation'. Enter your customized text indicating the user is no longer active.
Save the transport rule and ensure it is checked and enabled in your rules list.

Set up MailTips and Rules for Internal Senders
Internal senders can be proactively notified using MailTips before they send the email, or through an internal-facing transport rule.
Looking for a Better Way to Manage Your Office Tasks?
While managing Exchange server rules requires Microsoft administration tools, handling your daily documents doesn't have to be expensive or complicated. WPS Office provides a free, lightweight suite that is fully compatible with Microsoft Office formats.
- 1. Download the software: Visit the official WPS Office website to download the free installation package.
- 2. Install WPS Office: Run the installer and follow the on-screen instructions to set up the lightweight application on your device.
- 3. Open your files: Launch WPS Office and open your existing Microsoft Office documents, spreadsheets, and presentations with full format compatibility.

Frequently Asked Questions
Can external senders see MailTips before sending an email?
No, MailTips are only visible to internal senders within the same tenant. External senders will not see a MailTip, which is why configuring a transport rule with a custom non-delivery report is necessary to notify them.
What happens to senders if I simply delete the mailbox?
If you delete the mailbox without setting up a transport rule, senders will receive a standard, generic non-delivery report stating that the email address does not exist. A transport rule allows you to provide a much more professional and customized explanation.
Can I forward the emails to a manager instead of rejecting them?
Yes. When creating the transport rule, instead of selecting the 'Reject the message' action, you can choose to redirect or forward the message to a manager or another active team member.
How do I reverse the custom error if the employee returns?
You do not need to delete the rule. Simply remove the user's account from the inactive users distribution group. The transport rule will no longer apply to them, and they will receive emails normally.




