Create a Server-Side Rule for a Shared Microsoft 365 Mailbox
Question details
Create a rule that moves messages from multiple senders at the same domain into a shared mailbox subfolder.

- Product
- Microsoft 365 shared mailbox and Outlook on the web
- Device & OS
- not provided
- Scenario
- A team wants to organize incoming shared mailbox messages by sender domain.
- Observed behavior
- Messages whose sender addresses contain the specified domain are automatically moved from the shared mailbox inbox to the chosen subfolder.
Make sure you have Full Access permission to the shared mailbox and that the destination subfolder exists in that mailbox. Have the sender domain ready, such as @xxx.dk.
Create a domain-based inbox rule in Outlook on the web
Use a rule in the shared mailbox to move messages from multiple senders whose addresses contain the same domain.
Sign in to Outlook on the web, select your profile picture, and choose Open another mailbox. Enter the shared mailbox address and select Open.
In the shared mailbox window, select Settings, then go to Mail > Rules. Select Add new rule.
Name the rule, choose the condition Sender address includes, and enter the domain text, such as @xxx.dk. The label may vary slightly by Outlook version.
Under Add an action, select Move to and choose the designated subfolder in the shared mailbox. Select Save.
Send a new test message from an address at the specified domain to the shared mailbox, then check the destination subfolder. Review the rule under Settings > Mail > Rules if the message is not moved.

Work with Office files in WPS Office
A shared Microsoft 365 mailbox rule must be managed in Outlook; WPS Office does not configure it. For document work, WPS Office is a free, lightweight alternative with a familiar interface and Office format compatibility for easier migration.

Frequently Asked Questions
Will the rule work when Outlook is closed?
A server-side inbox rule is processed by Microsoft 365 without Outlook remaining open. Create it in the shared mailbox using Settings > Mail > Rules and test it with a new message.
Where should I create the rule for a shared mailbox?
Open the shared mailbox in Outlook on the web using your profile picture > Open another mailbox, then create the rule under Settings > Mail > Rules. A rule created in your personal mailbox does not manage the shared mailbox inbox.
Can one rule cover several senders at the same domain?
Yes. In the shared mailbox rule, choose Sender address includes and enter text such as @xxx.dk. This is a text match, so check for possible matches in longer domains as well.
Why can't I open the shared mailbox?
Confirm that you are signed in to the correct Microsoft 365 account and ask your administrator to check that you have Full Access permission to the shared mailbox.




