Problem solve Get help with specific problems with your technologies, process and projects.

Enabling Custom Weight List functionality after Exchange 2003 SP2 upgrade

Learn how to enable Custom Weight List -- the .XML file used for the Intelligent Message Filter's 'Bad Word List." -- after an Exchange 2003 Service Pack 2 upgrade.

I recently upgraded our Exchange 2003 SP1 mail server to Exchange 2003 SP2. The install went perfectly. How do I create the .XML file used for the Bad Word List? I have not found any documentation on this subject on Microsoft's Web site. If you know of any documentation, could you kindly forward it along?

You are referring to the Custom Weight List file -- a .XML file that should be created and saved in Unicode format in the same directory where the MSExchange.UceContentFilter.dll and .dat files reside -- exchsrvrbinMSCFV2 by default.

It should be called MSExchange.UceContentFilter.xml. By default, Windows Notepad saves in ANSI format. Make sure you change that from the Encoding drop-down to Unicode in the Save/Save As dialog box).

The format (reproduced here) is documented in Exchange Server 2003 Service Pack 2 Release Notes and is fairly easy to understand. The value of TYPE field can be BODY, SUBJECT, or BOTH.

The CHANGE field defines the action to be taken on the spam confidence level (SCL) field -- increase/decrease it by a certain number, or make it MIN (minimum) or MAX (maximum).

The TEXT field should include the string/key word or phrase you're looking for in a message and can be up to 1,000 characters.

Note: You will need to restart the SMTP service to load/reload this file, and it should be copied or moved to the new folder created by Intelligent Message Filter updates as described in Microsoft KB article 907747.


I appreciated your help on this topic, but I couldn't get it to work for myself. Beyond just the format, would it be possible to give me the actual code used to create this .xml file? My Spam Confidence Level is 6.
—Kalyan C.


Here is the full code of the MSExchange.UceContentFilter.xml file, as shown in Exchange Server 2003 SP2 Release Notes:

<?xml version="1.0" encoding="UTF-16"?>
<CustomWeightEntries xmlns="http://schemas.microsoft.com/2005/CustomWeight">
<CustomWeightEntry Type="BODY" Change="1" Text="foo1"/>
<CustomWeightEntry Type="BODY" Change="-1" Text="foo2"/>
<CustomWeightEntry Type="BODY" Change="5" Text="Special offer"/>
<CustomWeightEntry Type="BODY" Change="-9" Text="VerlÄngertes Angebot"/>
<CustomWeightEntry Type="SUBJECT" Change="MIN" Text="特別提供"/>
<CustomWeightEntry Type="BOTH" Change="MAX" Text="Offre spÉciale"/>

Also, be sure to take a look at my post Troubleshooting IMF: Important performance counter to avoid a common mistake with the Custom Weighting file.
—Bharat Suneja, Exchange Server Administration expert

Do you have comments on this Ask the Expert Q&A? Let us know.

Related information from SearchExchange.com:

  • Checklist: Top 10 best practices for securing e-mail clients
  • Tip: Freeware tool fine tunes Exchange's built-in spam filter
  • Learning Guide: How to fight spam on Exchange Server
  • Article: Exchange spam filter gets bigger vocabulary
  • Reference Center: Spam prevention and management resources
  • Reference Center: Exchange 2003 tips and resources
  • Dig Deeper on Exchange Server setup and troubleshooting

    Have a question for an expert?

    Please add a title for your question

    Get answers from a TechTarget expert on whatever's puzzling you.

    You will be able to add details on the next page.

    Start the conversation

    Send me notifications when other members comment.

    Please create a username to comment.