How to Specify Recipient and Sender Exceptions for Content Filtering
Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007
Topic Last Modified: 2009-04-01
This topic explains how to use the Exchange Management Console or the Exchange Management Shell to specify exceptions to content filtering. You can use the Exchange Management Console or the Exchange Management Shell to configure the Content Filter agent to bypass filtering of messages that are sent to specific recipients. You can use the Exchange Management Shell to configure the Content Filter agent to bypass messages from specific senders and sender domains. If your organization frequently exchanges messages with specific external entities, you will find exceptions to content filtering for specific senders and sender domain messages helpful.
|Use caution when you specify large domain namespaces or senders and domains that are frequently spoofed by spammers.|
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:
In the Exchange Management Console, 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 Exceptions tab.
In the Do not filter content in messages addressed to the following recipients text box, type the Simple Mail Transfer Protocol (SMTP) address.
Click Add to add the address to the exceptions list.
Click OK to save your changes and close the dialog box, or click Apply to save your changes without closing the dialog box.
Run the following command:
Set-ContentFilterConfig -BypassedRecipients <SmtpAddress>
For example, to bypass content filtering of messages that are sent to firstname.lastname@example.org, run the following command:
Set-ContentFilterConfig -BypassedRecipients email@example.com
Note: To enter multiple SMTP addresses, separate the addresses by using a comma as follows, for example: firstname.lastname@example.org, email@example.com. The maximum number of recipients you can input is 800.
For detailed syntax and parameter information, see Set-ContentFilterConfig.
To bypass content filtering of messages that are sent by specific senders, run the following command:
Set-ContentFilterConfig -BypassedSenders <SmtpAddress>
For example, to bypass content filtering of messages that are sent by firstname.lastname@example.org, run the following command:
Set-ContentFilterConfig -BypassedSenders email@example.com
To bypass content filtering of messages from specific domains, run the following command:
Set-ContentFilterConfig -BypassedSenderDomains <SmtpDomainWithSubdomains>
For example, to bypass content filtering of messages from example.com, run the following command:
Set-ContentFilterConfig -BypassedSenderDomains example.com
To bypass content filtering of messages from specific domains and their subdomains, a wildcard character (*) can be used as shown in the following example:
Set-ContentFilterConfig -BypassedSenderDomains *.example.com
Note: To enter multiple SMTP addresses or domains, separate the addresses or domains by using a comma as follows, for example: firstname.lastname@example.org, email@example.com. The maximum number of recipients you can input is 800.
When you add new senders or recipients to an existing content filter configuration by using the procedures in this topic, existing senders or recipients in the content filter configuration are replaced with the new data.
To append senders or recipients to an existing configuration, you can create a variable in which to store the existing data. After you create the variable, you can then add data to the configuration. In the following example, the variable is $list.
This example shows how to add a sender to the BypassedSender property of the content filter configuration. You can replace the BypassedSender parameter in this example with the BypassedSenderDomain parameter or BypassedRecipients parameter to add data to other existing properties on the content filter configuration.
To create a variable to hold the BypassedSenders list, run the following command:
$list = (Get-ContentFilterConfig).BypassedSenders
To verify that the $list variable contains data, run the following command:
The Exchange Management Shell will return a formatted list of sender SMTP addresses.
To add entries to the $list variable, run the following command:
For more information about how to configure content filtering, see the following topics:
- Configuring Content Filtering
- How to Enable or Disable Content Filtering
- How to Specify a Spam Quarantine Mailbox
- How to Enable and Configure the Spam Confidence Level Thresholds
- How to Enable or Disable Outlook E-Mail Postmark Validation
- How to Configure Allow or Block Phrases for Content Filtering
- How to Configure the Rejection Response for Content Filtering