Quantcast
Channel: Microsoft Exchange
Viewing all articles
Browse latest Browse all 20055

Transport rule with Regular Expressions

$
0
0

Hi, I've tried setting up a transport rule

New-TransportRule -Name "Some Name" -SentTo 'something@something' -RecipientAddressMatchesPatterns '\S\*\d\d' -RejectMessageEnhancedStatusCode

"5.7.1" -RejectMessageReasonText 'Some Reason"

I'm using Regular Expressions to achieve match for any address containing letters and any number between 00-99 (ie. cobalt65@somerthing) but it doesn't seem to do the trick as no messages qualify.

I thought the less is more rule applied, if the rule is too loose it would get more false positives, but seems not a single message was affected.

Any ideas?

Viewing all articles
Browse latest Browse all 20055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>