Using Exchange Server 2010 Antispam Tools (part 1) - Enabling Antispam Agents for Hub Transport Servers , Enabling Automatic Updates for the Antispam Signatures
Microsoft has continued to improve the antispam capabilities of Exchange over the past few years. This evolution has continued through Exchange Server 2007 and to Exchange Server 2010. Out of the box, many of the antispam agents are enabled and configured; the configuration is usually targeted toward a typical organization. You can make some tweaks to ensure that your organization is effectively filtering spam. You can find the anti-spam features of the Edge Transport server on the Anti-spam tab, as shown in Figure 1.
Figure 1. Customizing anti-spam features of an Edge Transport server
You can see the different antispam configuration options you can configure for the Exchange 2010 Edge Transport server.
1. Enabling Antispam Agents for Hub Transport Servers
Out of the box, the Exchange 2010 Edge Transport server has several useful features that can help you dramatically reduce the amount of spam that you are receiving. If you do not deploy the Edge Transport server role and only use Hub Transport servers, these antispam transport agents can be installed on your Hub Transport servers as well.
You will find two PowerShell scripts (Install-AntispamAgents.ps1 and Uninstall-AntispamAgents.ps1) in the folder C:\Program Files\Microsoft\Exchange Server\v14\scripts.
On each of your Hub Transport servers on which you will be using the antispam agents, you will need to run the Install-AntispamAgents.ps1 script. This script only needs to be run on the Hub Transport servers that will receive inbound email from outside your organization.
To run the installation script, open the EMS, change to the scripts folder listed earlier, and then type this command:
.\Install-AntispamAgents.ps1
After you run this command, you will need to restart the Microsoft Exchange Transport service, then close and reopen any instances of the EMS and EMC.
2. Enabling Automatic Updates for the Antispam Signatures
If you want to receive antispam signature updates and IP reputation service updates, you will need to enable antispam updates. You would need to do this on all Hub Transports that receive email from the Internet and Edge Transport servers. To enable all updates to be automatically processed, here is the command we recommend running:
Enable-AntispamUpdates -IPReputationUpdatesEnabled $True
-SpamSignatureUpdatesEnabled $True -UpdateMode Automatic
-MicrosoftUpdate RequestScheduled
Once you run this command, you should stop and restart the Windows Update service. Note that automatic anti-spam updates depend on the Microsoft Update service function. You can verify the version of the updates that are being downloaded by using the Get-AntispamUpdates cmdlet, such in this example:
Get-AntispamUpdates
RunspaceId : 8752c366-c8c7-4304-bf2d-eb0de9cc2808
UpdateMode : Automatic
LatestContentFilterVersion : 3.3.4604.600
SpamSignatureUpdatesEnabled : True
LatestSpamSignatureVersion : 3.3.4604.600
IPReputationUpdatesEnabled : True
LatestIPReputationVersion : 3.3.4604.001
MicrosoftUpdate : RequestScheduled
