Route Exchange Online Internal Mail Through Transport Rules
Question details
The user needs on-premises transport rule behavior to apply to messages sent between Exchange Online mailboxes in a hybrid deployment.

- Product
- Exchange Online and on-premises Microsoft Exchange Server
- Device & OS
- not provided
- Scenario
- A hybrid Exchange deployment uses centralized mail transport, and the administrator wants to process cloud-to-cloud internal messages with existing on-premises transport rules.
- Observed behavior
- Messages between two Exchange Online mailboxes normally remain in Exchange Online, so on-premises transport rules do not process them.
Sign in with an account that can manage mail flow rules in Exchange Online. Review the conditions, actions, exceptions, and priority of the on-premises rules you want to reproduce.
Recreate the transport rules in Exchange Online
Use Exchange Online mail flow rules to apply equivalent processing to messages that stay in the cloud.
Centralized mail transport does not provide a supported configuration to force messages between two Exchange Online mailboxes through on-premises Exchange. On-premises rules cannot be directly imported into Exchange Online, so recreate them manually or evaluate a suitable third-party migration tool.
In the on-premises Exchange admin center, open Mail flow > Rules and document each relevant rule's conditions, actions, exceptions, and priority.
Open the Exchange admin center at admin.exchange.microsoft.com, go to Mail flow > Rules, and select Add a rule > Create a new rule.
Name the rule and configure the available conditions, actions, and exceptions to match the on-premises rule. Check that the conditions cover the intended internal senders and recipients.
Save the rule, review its priority in Mail flow > Rules, and use an available test mode before enforcing it. Send test messages between Exchange Online mailboxes and verify the results.
After testing, open the rule's settings, switch it to enforce mode, and enable it. Repeat the process for each rule that needs a cloud equivalent.

Document Exchange Mail Flow Rules with WPS Office
WPS Office is a free, lightweight alternative for documenting and reviewing mail flow rules. Its familiar interface and Microsoft Office format support make it easy to move existing documents and spreadsheets into WPS. It does not manage Exchange transport or replace Exchange Online.

Frequently Asked Questions
Can centralized mail transport route cloud-to-cloud messages through on-premises Exchange?
No. Centralized mail transport does not provide a supported configuration to force messages between two Exchange Online mailboxes through on-premises Exchange. Create equivalent mail flow rules in Exchange Online instead.
Can I import on-premises transport rules directly into Exchange Online?
No. On-premises rules can be exported for use with another on-premises Exchange server, but they cannot be directly imported into Exchange Online. Recreate them manually or evaluate a suitable third-party migration tool.
Where do I create an Exchange Online transport rule?
In the Exchange admin center at admin.exchange.microsoft.com, go to Mail flow > Rules, then select Add a rule > Create a new rule.
How can I check whether the new rule works?
Use an available test mode in the rule settings, then send test messages between Exchange Online mailboxes. Review the results and rule priority before switching the rule to enforce mode.




