Others

Create a Microsoft 365 Transport Rule for a Specific Recipient Address

Elise WilliamsElise Williams Nov 25, 2026 868 views

Question details

Configure a transport rule to redirect messages addressed to one specific local address without redirecting all messages sent to the associated user.

Create a Microsoft 365 Transport Rule for a Specific Recipient Address
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.
Before you start

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.

Solution 1Recommended

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.

1
Open mail flow rules

In the Exchange admin center, go to Mail flow > Rules. Open the existing rule or select Add a rule > Create a new rule.

2
Set the header condition

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.

3
Use a specific address pattern

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.

4
Set the redirect action

Under Do the following, select Redirect the message to and choose the intended destination. Review any other conditions and exceptions, then save the rule.

5
Test 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.

Match the Specific Address in the To Header
Check the rule configuration: If the condition still does not match, review the saved rule and a sample message's To header. When asking for help, share a screenshot of the rule settings with sensitive addresses removed.
Free Microsoft Office alternative

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.

Create and review documents used to record mail flow rule settingsOpen and edit Microsoft Word, Excel, and PowerPoint formatsWork in a familiar, easy-to-use office interfaceUse a free, lightweight office suite
microsoft office alternative - wps office

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.