How to Configure Allow or Block Phrases for Content Filtering
Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.
Applies to: Exchange Server 2007, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3
This topic explains how to use the Exchange Management Console or the Exchange Management Shell to add Allow phrases or Block phrases to the Content Filter agent. You can configure the Content Filter agent to recognize and filter certain phrases. You must specify words or phrases for the Content Filter agent to act on. When you specify a word or phrase, you must specify whether it is an Allow phrase or a Block phrase. When the Content Filter agent encounters an Allow phrase in a message, the spam confidence level (SCL) is set to 0. When the Content Filter agent encounters a Block phrase in a message, the SCL is set to 9.
Important
Do not use common words or phrases as your Allow words or phrases because spammers can easily guess common words or phrases and can bypass filtering. Also, be aware that custom phrases must be less than 257 characters long.
Before You Begin
To perform the following procedures on a computer that has the Edge Transport server role installed, you must log on by using an account that is a member of the local Administrators group on that computer.
Also, before you perform these procedures, confirm the following:
You have reviewed Anti-Spam and Antivirus Functionality to understand the general strategy required to configure all anti-spam agents so that they work together efficiently for your organization.
You have read Configuring Content Filtering.
Procedure
To use the Exchange Management Console to specify Allow phrases and Block phrases
Open the Exchange Management Console on the Edge Transport server.
In the console tree, click Edge Transport.
In the work pane, click the Anti-spam tab, and then select Content Filtering.
In the action pane, click Properties.
Click the Custom Words tab.
To specify an Allow word or phrase, in the Messages containing these words or phrases will not be blocked text box, type the word or phrase and then click Add.
To specify a Block word or phrase, in the Messages containing these words or phrases will be blocked, unless the message contains a word or phrase from the list above text box, type the word or phrase and then click Add.
Click OK to save your changes and close the dialog box, or click Apply to save your changes without closing the dialog box.
To use the Exchange Management Shell to specify Allow phrases and Block phrases
Run the following command:
Add-ContentFilterPhrase -Phrase <String> -Influence <GoodWord | BadWord>
For example, if you want to block the phrase "stock tip," run the following command:
Add-ContentFilterPhrase -Phrase "stock tip" -Influence BadWord
Note
You must enclose the Phrase string in quotation marks if the phrase contains spaces.
For detailed syntax and parameter information, see the following topics:
For More Information
For more information about how to configure content filtering, see the following topics: