Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Transport Rules

This page lists the mail flow rules (transport rules) configured in Exchange Online for the selected tenant. You can build a rule from scratch, edit an existing one, enable or disable rules, save a rule as a reusable template, and deploy templates out to other tenants. Viewing the list requires the Exchange.TransportRule.Read permission, and the action buttons and row actions require Exchange.TransportRule.ReadWrite.

Selecting All Tenants starts a background collection across every tenant. While it runs, the page shows a message asking you to check back in a few minutes rather than the rule list.

Action Buttons

Deploy Template

Opens a drawer that deploys a transport rule to one or more tenants. Select the target tenants, then either pick a saved template to fill in the New-TransportRule parameters (JSON) box or type the JSON in yourself, and click Deploy Transport Rule. If a rule of the same name already exists in a target tenant, that rule is updated to match the template instead of a second copy being added.

New Transport Rule

Opens a guided editor that builds a rule in the selected tenant without you writing any JSON. Basic Information covers the rule name, priority, comments, rule mode (Enforce, Test with Policy Tips, or Test without Policy Tips), audit severity, and whether the rule is enabled. You then choose conditions under Apply this rule if... (or switch on Apply to all messages), one or more actions under Do the following..., and optional exceptions under Except if.... Advanced Settings covers where the sender address is matched, whether rule processing stops after this rule, and optional activation and expiry dates. Most condition, action, and exception types reveal further fields once you select them. Priority is pre-filled with the next free value for the tenant, and the rule is created when you click Create Rule.

Filters

Preset filters are available from the Filters button for Enabled Rules and Disabled Rules rows.

Table Details

The properties returned are for the Exchange Online PowerShell command Get-TransportRule. For more information on the command please see the Microsoft documentation.

Table Actions

Action
Description
Bulk Action Available

Create template based on rule

Saves the selected rule as a transport rule template on the Transport Templates page, so it can be redeployed to other tenants. Offered one rule at a time, because a bulk selection does not carry each rule's settings through to the template.

Enable Rule

Sets the rule's State to Enabled so it starts acting on mail. Greyed out for a rule that is already enabled, and for a bulk selection unless every selected rule is disabled.

Edit Rule

Opens the same guided editor as New Transport Rule, pre-filled with the selected rule's conditions, actions, exceptions, and advanced settings. Save your changes with Update Rule.

Disable Rule

Sets the rule's State to Disabled, which leaves the rule in place but stops it acting on mail. Greyed out for a rule that is already disabled, and for a bulk selection unless every selected rule is enabled.

Delete Rule

Permanently removes the rule from the tenant. Consider using Create template based on rule first if you might need to recreate it.

More Info

Opens the Extended Info flyout with the full details for the selected row.


Feature Requests / Ideas

We value your feedback and ideas. Please raise any feature requests on GitHub.

Last updated

Was this helpful?