Share via


How to Enable or Disable 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 enable or disable content filtering functionality. By default, in Microsoft Exchange Server 2007, content filtering is enabled on the Edge Transport server only for inbound, unauthenticated messages from the Internet. These messages are handled as external messages. You can disable content filtering functionality in individual computer configurations by using the Exchange Management Console or the Exchange Management Shell.

In addition, you can enable or disable filtering of internal messages and external messages by using the Exchange Management Shell. You cannot use the Exchange Management Console. However, as a best practice, you should not filter messages from trusted partners or from inside your organization. When you run anti-spam filters, there is always a chance that the filters will detect false positives. To reduce the chance that filters will mishandle legitimate e-mail messages, you should enable anti-spam agents to run only on messages from potentially untrusted and unknown sources.

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:

Enabling or Disabling Content Filtering Functionality

As described earlier in this topic, content filtering functionality is enabled for external messages. The following procedures demonstrate how to enable or disable content filtering functionality by using the Exchange Management Console or the Exchange Management Shell.

The Content Filter agent is the underlying agent for content filtering functionality. It's important to understand that when you perform the following procedures, the content filtering functionality is enabled or disabled, but the underlying Content Filter agent is still enabled. To disable the underlying Content Filter agent, run the Disable-TransportAgent cmdlet.

To use the Exchange Management Console to enable or disable content filtering functionality

  1. Open the Exchange Management Console on the Edge Transport server.

  2. In the console tree, click Edge Transport.

  3. In the work pane, click the Anti-spam tab, and then select Content Filtering.

  4. In the action pane, click Enable or Disable as appropriate.

To use the Exchange Management Shell to enable or disable content filtering functionality

  • To enable the Content Filter agent, run the following command:

    Set-ContentFilterConfig -Enabled $true
    
  • To disable the Content Filter agent, run the following command:

    Set-ContentFilterConfig -Enabled $false
    

Enabling or Disabling Content Filtering for Internal and External Messages

By default, content filtering functionality is enabled for external messages. The following procedures demonstrate how to enable or disable content filtering for internal and external messages by using the Exchange Management Shell. You cannot use the Exchange Management Console to enable or disable content filtering for internal or external messages.

To use the Exchange Management Shell to enable or disable content filtering functionality for external messages

  • To enable content filtering functionality for external messages, run the following command:

    Set-ContentFilterConfig -ExternalMailEnabled $true
    
  • To disable content filtering functionality for external messages, run the following command:

    Set-ContentFilterConfig -ExternalMailEnabled $false
    

To use the Exchange Management Shell to enable or disable content filtering functionality for internal messages

  • To enable content filtering functionality for internal messages, run the following command:

    Set-ContentFilterConfig -InternalMailEnabled $true
    
  • To disable content filtering functionality for internal messages, run the following command:

    Set-ContentFilterConfig -InternalMailEnabled $false
    

For detailed syntax and parameter information, see Set-ContentFilterConfig.

For More Information

For more information about how to configure content filtering, see the following topics: