Ask the Expert

Enabling Custom Weight List functionality after Exchange 2003 SP2 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?

    Requires Free Membership to View


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="">
<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

  • 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
  • This was first published in March 2006

    There are Comments. Add yours.

    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to: