Logo
How to Add Rules to a Shared Mailbox (Outlook + PowerShell)
Exchange

How to Add Rules to a Shared Mailbox (Outlook + PowerShell)

7 December 2024 By Hal Sclater

Shared mailboxes let a team manage one inbox together, but rules on a shared mailbox are not as easy to find as rules on your own mailbox. Here’s how to add, edit and delete them — in Outlook on the web, in the desktop client, and with PowerShell when you need to script it.

Before you start: permissions

To manage rules on a shared mailbox you need:

  • Full Access to the shared mailbox, so it appears in your folder list.
  • Send As (or Send on Behalf) if the rules will reply from the shared address.

Both are granted in the Exchange admin center or with PowerShell. Without Full Access the mailbox will not open at all, and without write access the Rules page will not save.

Outlook on the web is the most reliable place to manage shared mailbox rules, because the rule is stored in the shared mailbox itself and runs whether or not anyone has Outlook open.

Step 1: Open the shared mailbox

  1. Sign in at outlook.office.com with your own account.
  2. Click your profile picture or initials in the top right.
  3. Choose Open another mailbox and enter the shared mailbox address.

Step 2: Get to the rules settings

  1. With the shared mailbox open, click the settings gear in the top right.
  2. Go to MailRules.

Step 3: Create the rule

  1. Click Add new rule and give it a name, for example “Move support email”.
  2. Under Add a condition, pick the criteria — From contains, Subject includes, and so on.
  3. Under Add an action, choose what should happen, such as Move to folder.
  4. Click Save.
  5. Send a test email that matches the condition and check it is handled as expected.

To edit a rule, click it, change the condition or action and save. To delete one, click the bin icon next to it.

Rules settings for a shared mailbox in Outlook on the web

Add rules using Outlook desktop

Outlook for Windows only shows the Rules and Alerts dialog for a shared mailbox if the mailbox is added as a separate account with a cached profile — the auto-mapped version that appears in your folder list is not enough.

  1. Go to FileAccount SettingsAccount Settings.
  2. Select your account, click Change, then More SettingsAdvanced.
  3. Click Add and enter the shared mailbox address.
  4. Restart Outlook, then go to FileManage Rules & Alerts and pick the shared mailbox from the Apply changes to this folder list.

If the shared mailbox is missing from that list, fall back to Outlook on the web or PowerShell — both always work.

Add rules using Exchange Online PowerShell

For bulk rules, or rules that need to be consistent across a lot of mailboxes, use the Exchange Online PowerShell module.

Connect-ExchangeOnline

New-InboxRule `
  -Mailbox "support@contoso.com" `
  -Name "Move support email" `
  -From "customer@example.com" `
  -MoveToFolder "support@contoso.com:\Support" `
  -MarkAsRead $false

Useful commands once rules exist:

  • Get-InboxRule -Mailbox "support@contoso.com" — list the current rules.
  • Set-InboxRule -Mailbox "support@contoso.com" -Identity "Move support email" -StopProcessingRules $true — disable a rule without deleting it.
  • Remove-InboxRule -Mailbox "support@contoso.com" -Identity "Move support email" — delete a rule.

Rules that will not save or will not run

  • Rules page is missing in Outlook on the web — an OWA mailbox policy in the Exchange admin center can disable rules. Check the policy assigned to the mailbox.
  • Rule will not save — almost always a permissions problem. Confirm Full Access and that the mailbox is not read-only for you.
  • Rule does not fire — check the rule is enabled, that its conditions actually match a real message, and that an earlier rule is not stopping processing.
  • New rule has no effect on old mail — expected. Inbox rules only apply to messages that arrive after the rule is created.

Summary

Use Outlook on the web for one-off rules, add the mailbox as a separate account if you prefer the desktop client, and use New-InboxRule when you need to apply the same rule across several mailboxes or keep it under source control.

Need help with shared mailboxes or Exchange Online? Contact Cloudrun and we’ll take a look.