| Exchange 2007/2010 Transport Rules using Message Header Values |
|
|
| Written by Praveen |
| Tuesday, 17 January 2012 12:24 |
|
Mostly we create Exchange Transport Rules Condition using the criteria’s like “when FROM address ...”, When recipient ...” “When user from inside/outside organization” etc. Recently I have come across to create a rule for filtering the emails from internet groups, and the from address will always shown as the primary email address of the sender which could be always well known internet domains like gmail.com, yahoo.com etc, not the news group domain name. Most of the company wanted the email traffic from those public domains, by restricting the email traffic which are send to common groups (news group, community groups and other non-business groups). Note – I have taken the group emailing as an example, this can be applied to various requirement where you can find some common criteria on the email header of such emails.
To work with such request in transport rule, you can use the condition “When the message header matches text patterns”. Before we create any rule, let’s look at the header of one such email and decide on the parameter which can be used for filtering such emails (common criteria for all such emails). Look at the part of a header; I have selected the “Reply-To” field to create the condition for the transport rule. You can see that the from address will be always(mostly) the sender address, hence the filteration is not that easy using the common conditions, as that can cause stopping the entire email from the common public email domain. //.........................
Message-ID: <CAHHugabHN8Q=_7NW3EksKP3XPXPyhAZYuzVFBVr43yPqgBtT
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
m>
Subject: =?windows-1256?B?zNHmyCDF7eHH3SDb0cfGyCDjyuTm2skgLSA4Ng==?=
From: =?windows-1256?B?0ebj5NPtySDd5t4gx+He4+U=?= <
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
>
To: YourGroups <
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
>
Reply-To: <YourGroups+
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
>
Precedence: list
Mailing-list: list YourGroups@ internetgroups.com; contact YourGroups+
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
……………………………………………….//
Create new transport rule and give a meaningful rule name and click on next.
Select the “When the message header matches text patterns” from the condition list(Step 2). Click on message header and enter the value ‘Mail-To’ and then click on the text patterns and enter ‘@internetgroups.com’, it will look like below after you enter these values (Use the required text pattern according to your need). Now proceed to the next step, and select the desired action that you would like to apply and finish the wizard. You can use the message header option to implement very specific filtering criteria. -Praveen |
| Last Updated on Tuesday, 17 January 2012 12:50 |
Read In
Popular
ARCHIVES
- ► 2013 (6)
- ► 2012 (46)
- ► 2011 (24)
- ► 2010 (31)
VISITORS






Your IP: 23.22.212.158
,
Follow Us






Comments
RSS feed for comments to this post