question

QasimSheikhM-1956 avatar image
0 Votes"
QasimSheikhM-1956 asked YukiSun-MSFT commented

Exchange Rule - Mailbox doesn't exist

How can I add a rule in MS Exchange Online, that, if the mailbox or email address does not exist, instead of bouncing back, it should just go to a particular user/mailbox?

GSuite has this feature, is there a way to implement this on M365? Also, some users have been deleted as they do not exist, but emails are coming to them.

office-exchange-server-administrationoffice-exchange-server-mailflow
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @QasimSheikhM-1956

I am writing to see how everything is going on with this thread. Have you had a chance to check the replies provided earlier? If you still have further concern on this, please feel free to let us know.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 Votes 0 ·
michev avatar image
0 Votes"
michev answered

If that's for specific (previously existing) email addresses, simply add those as aliases to some shared mailbox or a DG. If you are talking about a general "catch all" type of solution, read here: https://www.undocumented-features.com/2021/02/10/create-a-catch-all-mailbox-in-office-365/

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YukiSun-MSFT avatar image
0 Votes"
YukiSun-MSFT answered YukiSun-MSFT edited

Hi @QasimSheikhM-1956

How can I add a rule in MS Exchange Online, that, if the mailbox or email address does not exist, instead of bouncing back, it should just go to a particular user/mailbox?

For Exchange Online environment, Directory-Based Edge Blocking (DBEB) is by default in effect, so messages for invalid recipients will be automatically rejected at the service network perimeter and won't be able to go through the rest of the service filtering layers: anti-malware, anti-spam, and mail flow rules. Therefore, in order to catch mails sent to nonexsiting mailboxes, first we would need to disable DBEB by changing the domain from Authoritative to Internal relay, then try to create a transport rule to redirect the messages.

Below are the steps for your reference:
1.Login to Exchange Admin Center, go to Mail Flow > Accepted domains, choose the domain, change it from Authoritative to Internal Relay:
130919-1.png
For more details about the difference between the authoritative domain and internal relay, you may refer to Manage accepted domains in Exchange Online.

2.Go to Recipients > Groups, create a group which includes all the valid internal recipients. For instance, you can create a dynamic distribution group and set the rule as all recipient types so that all valid recipients will be included.

3.Go to Mail Flow > Rule, create a rule similar to below:
130985-2.png

Then regarding the other issue you mentioned (some users have been deleted as they do not exist, but emails are coming to them), since it's different from the initial question as indicated in the thread title, it would be best if you try to open up a new thread for it. In this way, it will make information searching in the forum easier and be beneficial to other community members as well. Thanks for your understanding.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1.png (67.9 KiB)
2.png (32.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.