Exchange IMF and Custom Weight Lists

by Mark Berry 8/9/2007 7:36:00 PM

One of the features built in to Exchange 2003 SP2 is Intelligent Message Filtering. While this is a major step forward in blocking incoming spam, IMF does have its limitations. The limitation that I have encountered most frequently is the misclassification of some email as spam, and the inability to "whitelist" certain senders without implementing third-party workarounds.

Recently, a contributor to a Yahoo group suggested that it might be possible to use IMF's built-in Custom Weight List (CWL) functionality to whitelist senders. The theory was that if the CWL's BODY element has access to the entire email message, including headers, it could be used to allow emails that contain a certain "From:" string.

Today I was able to test this idea. 

Sending Spam to Myself

A few days ago, I made an airline reservation with Express Jet, but never got the confirmation email.  Even when I went back to their web site and asked it to send me the itinerary by email, it never arrived.

It turns out that IMF consistently flags Express Jet reservation mails with a very high SCL rating (8 - 81.8%).  So using the Express Jet reservation site gave me an easy way to send myself an email from an external source that IMF was treating as spam.

Test the CWL with BODY 

I implemented a CWL with

<CustomWeightEntry Type="BODY" Change="MIN" Text="From: reservations@expressjet.com"/>

but still IMF flagged the email as spam.

Test the CWL with SUBJECT 

Well, is the CWL working at all? The blocked emails always have the same subject ("Booking confirmation from ExpressJet").  So I changed the CWL to include

<CustomWeightEntry Type="SUBJECT" Change="MIN" Text="ExpressJet"/>

and the mail was no longer classified as spam.

Conclusion

Apparently, the BODY element of the CWL does not have access to the email headers. Too bad--that means there is still no good way to whitelist by sender.

Another "Gotcha" 

Another "gotcha" I discovered along the way is that the CWL file (MSExchange.UceContentFilter.xml) must be re-copied to the latest IMF subfolder every time IMF updates itself, then the SMTP service must be restarted.  In other words, it is not good enough to put the .xml file in

C:\Program Files\Exchsrvr\bin\MSCFV2

it (currently) has to go into

C:\Program Files\Exchsrvr\bin\MSCFV2\6.5.7942.0

This is correctly explained at the end of this TechNet article:

http://www.microsoft.com/technet/technetmag/issues/2006/10/WeightLists/

but is incorrect in this KB article:

http://support.microsoft.com/kb/907974/en-us

This is another area where Microsoft could improve IMF:  always read the CWL file from the same location. Automatic updates to a product should not break the product's functionality. In the meantime, remember to re-copy the CWL file every time IMF updates itself!

Related posts

Comments

11/14/2007 11:23:13 AM

Brunner

This is the best white-list for exchange!
Thanks.

Brunner br

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

11/19/2008 4:18:48 PM

Powered by BlogEngine.NET 1.3.1.0
Theme by Mads Kristensen. Customized by Mark Berry.

About the author

Mark Berry Mark Berry owns MCB Systems, a firm active in both IT administration and .NET software development.

E-mail me Send mail
`

Disclaimer

The opinions expressed herein are my own personal opinions and absolutely represent my employer's views. I'm self-employed! Please keep in mind that what worked for me or someone else may not apply to your situation. Always have a good backup, and use any information here at your own risk!

Entire contents copyright © 2008 by MCB Systems. Sign in