Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need Exchange 2010 transport rule that will block spam from 'The IT Brief'

Posted on 2014-01-21
4
Medium Priority
?
1,587 Views
Last Modified: 2014-10-31
I cannot create a working transport rule to block email coming from 'The IT Brief'.  The sending email address is info@techwhitepaperemail11.com but they have so many servers that the '11' on the end could be any number.  I have tried creating transport rules that look for text patterns matching 'techwhitepaperemail' in the From field with no luck.  I also tried some other variations of transport rules and the mails still get through.  Hopefully someone can point me in the right direction in terms of creating a working transport rule.
0
Comment
Question by:raduk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 800 total points
ID: 39798007
You probably want to do this using a regular expression. If the numbers at the end are the only thing that is changing i think you could probbaly use something like.

techwhitepaperemail\d\d

Im not too great with regular expressions so you may need to play around with it a bit.

http://technet.microsoft.com/en-us/library/aa997187%28v=exchg.141%29.aspx
0
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 39798010
I just tested this using regexpal and it looks like it may work.

http://regexpal.com/

techwhitepaperemail\d\d.com
0
 
LVL 1

Author Comment

by:raduk
ID: 39801540
Joe,

Can I use regular expressions in EMC or do i need to use powershell?



I have already created the following 2 transport rules to test(one using from address containing words and one using text pattern matching).

Apply rule to messages
from users that are 'outside the organization'
 and when the From address matches 'info@techwhitepaperemail\d\d.com' or
 'info@techwhitepaperemail\d.com'
redirect the message to 'me@mydomain.com'

Apply to messages
from users that are 'outside the organization'
 and when the From address contains 'info@techwhitepaperemail\d\d.com' or
 'info@techwhitepaperemail\d.com'
redirect the message to 'me@mydomain.com'
0
 
LVL 1

Author Comment

by:raduk
ID: 39801776
OK I think I found the answer to that last question

For Exchange 2007:
In the Exchange Management Console, you can use regular expressions with any condition or exception that contains the words "text patterns." For example, you can use regular expressions with the following condition:
"when the From address contains text patterns"


Note The "Patterns" predicate accepts a regular expression that can be used to match text that follows an identifiable pattern. You must enclose the expression in quotation marks (")

https://support.microsoft.com/kb/2673160



Regular Expressions in Exchange 2010:
In the Exchange Management Shell, you can use regular expressions in any predicate that accepts the Patterns predicate property. In the Exchange Management Console, you can use regular expressions with any condition or exception that contains the words with text patterns. For more information about predicates, see Transport Rule Predicates.t.


I'm unsure if 2010 requires the (") around the expressions so I will likely create rules using both.
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question