Configure Separate Outbound Mail Routes for Staff and Students in Microsoft 365
Question details
Configure different outbound mail routes for staff and students in a hybrid Exchange and Microsoft 365 environment.

- Product
- Microsoft 365 Exchange Online and Exchange Online Protection
- Device & OS
- not provided
- Scenario
- Staff and students use separate domains, and external staff mail must pass through a third-party security and policy service.
- Observed behavior
- Student mail should continue through the normal Exchange Online Protection route, while external staff mail should use the security service.
Obtain the security provider's outbound smart host address and TLS requirements, and confirm the staff sending domain. Sign in to the Exchange admin center with an account permitted to manage connectors and mail-flow rules.
Route External Staff Mail Through a Rule-Scoped Outbound Connector
Use a connector selected by a mail-flow rule so staff messages go to the security service without applying the same route to student messages.
Configure the connector to be used only when a transport rule directs messages to it. The rule then selects external messages from the staff domain; student messages remain on their normal route unless another rule or connector applies.
In the Exchange admin center, go to Mail flow > Connectors and select Add a connector. Choose Microsoft 365 as the connection source and Partner organization as the destination, then name the connector.
When asked when to use the connector, select the option to use it only when a transport rule redirects messages to it.
Choose routing through smart hosts and enter the address supplied by the security provider. Configure the TLS and certificate settings according to the provider's instructions, then save and validate the connector as prompted.
Go to Mail flow > Rules and select Add a rule > Create a new rule. Add conditions for the sender's domain to match the staff domain and for the recipient to be outside the organization.
Under the rule's actions, choose the option to route the message using a connector and select the new connector. Save and enable the rule, then send test messages to an external recipient from both staff and student accounts and check Mail flow > Message trace.

Document Your Mail-Routing Plan with WPS Office
WPS Office is a free, lightweight alternative for preparing routing plans and test records in a familiar interface. It supports common Microsoft Office formats for easy migration, but it does not configure Exchange Online mail flow.

Frequently Asked Questions
How can I keep student mail off the security-service connector?
Set the connector to be used only by a transport rule, and configure the rule under Mail flow > Rules to match the staff sender domain. Check other rules and connectors for settings that might also affect student mail.
Will the staff rule affect internal messages?
Add a condition in Mail flow > Rules requiring the recipient to be outside the organization. The rule will then target external staff messages rather than internal-only messages.
What address should I enter as the smart host?
Use the outbound smart host address supplied by the third-party security provider. Enter it in the connector's routing settings under Mail flow > Connectors, and apply the provider's TLS requirements.
How do I verify which route a message took?
Send test messages from staff and student accounts to an external recipient, then check Mail flow > Message trace in the Exchange admin center. Also check the security provider's logs for the staff test message.




