If you’re using Exchange Server 2007 in a topology with an Edge Transport server, the anti-spam agents – Connection Filtering, Content FilterSender ID, Sender Filter, Recipient Filter, and Protocol Analysis – are installed on the Edge Transport server. You don’t need these agents installed on the Hub server(s).
In environments without an Edge Transport server, you can install antispam agents manually on Hub Transport servers.
To install antispam agents on a Hub Transport server:
- Start the Exchange Management Shell (EMS)
- Navigate to the “\Exchange Server\Scripts” folder (by default C:\Program Files\Microsoft\Exchange Server\Scripts)
- Run the Install-AntispamAgents script:
Once installed successfully, the command output will list each agent installed, whether it’s enabled or not, and its priority [see screenshot].
After the antispam agents are installed, you can see the Anti-spam tab in Organization Configuration | Hub Transport node in EMC.
If your console was open during installation, you will need to restart it.
Routing Internet mail to the Hub Transport server
In deployments without an Edge Transport server, you can either route inbound mail through your service provider, or configure Hub Transport servers to receive inbound email directly. See previous post “Exchange Server 2007: Internet email without Edge servers“.
Disable or Uninstall antispam agents
You can disable each antispam agent by using the corresponding Set command. For example, to disable the Content Filter agent, use Set-ContentFilterConfig -Enabled $false. You may need to do thist temporarily when you’re troubleshooting an antispam issue.
How do you remove the antispam agents completely? You guessed it – there’s an Uninstall-AntispamAgents.ps1 script in the \Scripts directory.
– Exchange Server 2007: Internet email without Edge servers
– Exchange Server 2007: Managing And Filtering Anti-Spam Agent Logs
– Exchange 2007 Content FIlter: The Whitelist Is Here!
– Exchange 2007 Content Filter: How to move messages to Junk Mail folder
– Exchange Server 2007: How are RBLs performing?