Solved

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

Posted on 2014-01-21
4
1,454 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 200 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Outlook 2010 locking up for periods of time 5 50
CAL for Disabled accounts 4 56
NLB +DAG 8 52
Move a Database to a different server 4 59
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
how to add IIS SMTP to handle application/Scanner relays into office 365.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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