Exchange mail flow rule for plus addressing

JayCarper-5747 331 Reputation points
2025-01-21T17:19:08.46+00:00

I'm having trouble creating a rule that will catch all incoming + addressed messages.

Here's what I have so far:

  • Sender is NotInOrganization
  • Recipient address matches any of these text patterns:
    • username\+.*@domain\.com
    • ^username\+.*@domain\.com$

This does not catch email sent to username+123@domain.com (or any other + label). What am I getting wrong in the regex?

Exchange also won't let me begin the string with a wildcard, so I can't use .*\+.*@domain\.com or \+.*@domain\.com catch all + addresses. This restriction doesn't make any sense at all. What's the point of a mail flow rule that requires you to predict the initial character of every email address? Surely, I'm missing something here.

Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,702 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. JayCarper-5747 331 Reputation points
    2025-01-21T17:52:36.9366667+00:00

    I have also tried

    • Sender is NotInOrganization
    • Recipient address contains any of these words: '+'

    This doesn't appear to do anything either.

    0 comments No comments

  2. Andy David - MVP 151.6K Reputation points MVP
    2025-01-21T18:20:03.2566667+00:00

    Check the header with a transport rule and see if that works.

    Specifically the TO: field


  3. Xintao Qiao-MSFT 6,030 Reputation points Microsoft Vendor
    2025-01-22T08:06:37.3+00:00

    Hi, @JayCarper-5747

    After my testing, Exchange does have certain limitations, and it may not support all of the regex features you'd normally find in more flexible regex implementations.

    For some specific routing scenarios, you can follow this document to verify the availability of the plus address. Regular expressions in mail flow rules | Microsoft Learn

    Plus addresses are not aliases configured on the mailbox, so they don't resolve to usernames in Outlook. This limitation causes the plus address to be not easily identified in the To or CC field of the message.

    To automatically identify and filter messages sent to plus addresses, it is recommended that you use inbox rules to take action on those messages.

    Here is a PowerShell script to check the plus address for your reference. https://github.com/BohrenAn/GitHub_PowerShellScripts/blob/main/ExchangeOnline/CheckPlusEmailAddresses.ps1


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.