FlipsideReality Once upon a time, in a land far far away…

21Jan/100

Getting exchange & outlook to listen to X-Spam headers

From this article on exchangepedia.com

Getting spamassasin's rankings through to outlook so users can look in their own spam bin has been on my wishlist for ages. It turns out that since exchange 2003SP2 the CFA (content filter agent) has been installed by default. This is how you get it to do the magic:

1. Fire up EMC -> Organization Config -> Hub Transport -> Transport Rules tab
2. Click on New Transport Rule in the Action pane
3. Give the new rule a name, like X-Spam-Status
4. In the Conditions page, select the condition when a message header contains specific words
5. In the Step 2 edit box, click on the message header link
6. Type X-Spam-Status & click OK
7. In the edit box, click on the specific words link
8. Type yes -> click OK -> click Next
9. In the Actions page, select the action set the spam confidence level to value
10. In the rule description, click on the 0 link and add a value that's above your SCLJunkThreshold -> click Next
11. On the Exceptions page, click Next if you do not want any exceptions to this rule
12. Click New -> click Finish to close the wizard

aparently the following commands work too:

$condition = Get-TransportRulePredicate HeaderContains
$condition.MessageHeader = "X-Spam-Status"
$condition.words = @("yes")
$action = Get-TransportRuleAction SetSCL
$action.SCLValue = 5
new-TransportRule "Stamp SCL" -condition @($condition) -action @($action)

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.