Send & Receive Issues

How to Disable a Mailbox and Send a Custom Error to Senders in Exchange

Muhammad TalhaMuhammad Talha Oct 28, 2026 868 views

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.

How to Disable a Mailbox and Send Custom Errors to Senders
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.
Before you start

Ensure you have administrator access to the Exchange Admin Center (EAC) to create distribution groups and configure mail flow transport rules.

Solution 1Recommended

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.

1
Create an inactive users group

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.

2
Create a new transport rule

Go to 'Mail flow' > 'Rules' and click the '+' icon to create a new rule. Name it appropriately, such as 'Inactive Mailbox NDR'.

3
Set the sender and recipient conditions

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.

4
Configure the rejection message

Under 'Do the following', select 'Reject the message with the explanation'. Enter your customized text indicating the user is no longer active.

5
Save and enable

Save the transport rule and ensure it is checked and enabled in your rules list.

Configure an Exchange Transport Rule for External Senders
Managing Returning Users: If an employee returns to the organization, simply remove their account from the inactive users distribution group to allow them to receive emails again.
Free Microsoft Office alternative

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. 1. Download the software: Visit the official WPS Office website to download the free installation package.
  2. 2. Install WPS Office: Run the installer and follow the on-screen instructions to set up the lightweight application on your device.
  3. 3. Open your files: Launch WPS Office and open your existing Microsoft Office documents, spreadsheets, and presentations with full format compatibility.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight design that runs smoothly on Windows, Mac, Linux, iOS, and Android.Familiar user interface for a seamless migration from Microsoft Office.Built-in PDF editing tools for managing professional documents effortlessly.
microsoft office alternative - wps office

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.