Create a Microsoft 365 Transport Rule for a Specific Recipient Address
Question details
Configure a transport rule to redirect messages addressed to one specific local address without redirecting all messages sent to the associated user.

- Product
- Microsoft 365 Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator wants to redirect messages only when a particular local address appears in the message's To header.
- Observed behavior
- The recipient-address condition does not appear to match the local address as intended.
Have the exact local address and the intended redirect destination ready, and sign in to the Exchange admin center with permission to manage mail flow rules. Check a sample message's To header to see how the address appears.
Match the Specific Address in the To Header
Use a header condition when the rule should redirect only messages that explicitly contain the address in the To field.
A recipient-based condition can match the associated mailbox rather than distinguish the address used. Matching the To header instead targets the address visible in that header, but does not cover addresses that appear only in Cc or Bcc.
In the Exchange admin center, go to Mail flow > Rules. Open the existing rule or select Add a rule > Create a new rule.
Under Apply this rule if, choose the condition for a message header matching text patterns. Set the header name to To and enter a pattern for the full address.
For example, for alias@example.com, enter (^|[^A-Za-z0-9._%+-])alias@example\.com([^A-Za-z0-9.-]|$). Replace the address with the one you need and escape periods in the address with a backslash.
Under Do the following, select Redirect the message to and choose the intended destination. Review any other conditions and exceptions, then save the rule.
Send test messages to the specific address and to another address for the same user. Check the To headers and delivery results to confirm that only the intended message is redirected.

Use WPS Office for Documents Alongside Microsoft 365
Exchange Online transport rules must be managed in Microsoft 365. For document work, WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility to support an easy transition.

Frequently Asked Questions
Why can a recipient condition redirect messages sent to another address for the same user?
A recipient condition may match the associated mailbox rather than distinguish which address was used. To target the visible address, use a message-header condition for the To header and test it with both addresses.
Will a To header condition match an address in Cc or Bcc?
No. A condition that checks the To header does not match an address appearing only in Cc or Bcc. Decide whether those cases need separate handling before enabling the rule.
What should I check if the address pattern does not match?
Open Mail flow > Rules in the Exchange admin center and review the header name and pattern. Compare them with the To header of a test message, including the full address and any escaped periods.
How can I confirm that the rule redirects only the intended messages?
Send one test message to the target address and another to a different address for the same user. Check the messages' To headers and delivery results, and review the rule's other conditions and exceptions if the results differ from what you expect.




