Managing anti-spam on Exchange Server 2013 Mailbox role

Share this:

In this Tutorial we will be demonstrating the steps required to install and remove the anti-spam agents on a Mailbox Server. The anti-spam agents are available only on Mailbox and Edge (after Service Pack 1) roles however on Mailbox role they are not installed by default..


Starting with Exchange Server 2013 Service Pack 1 the Edge role is available and this role has all anti-spam agents that we exchange administrators were used to in previous versions. The mailbox role has four agents available, which are: Content Filter, Sender ID, Sender Filter and Sender Reputation.

When the topic is anti-spam on Mailbox Server role I would like to list a few key points to help you to decide when to use it, as follows:

  • It is not recommended to enable anti-spam agents when you are using Edge role on your environment
  • It is also not recommended to enable the anti-spam agents when using Exchange Online Protection (EOP)
  • If you are undecided among anti-spam agents, EOP and Edge. My favourite (if that helps) is EOP
  • There is always third-party vendors that offer similar anti-spam capabilities using either software or hardware (appliance) solutions
  • Mailbox Anti-spam agents do not have attachment filtering
  • You cannot enable anti-spam agents on the Client Access Server (CAS) role
  • If you have a small environment and your server is being published to the Internet, I strongly recommend you to install the anti-spam on your environment

Enabling the anti-spam agents…

The process is straight forward, logged on the Mailbox Server, open Exchange Management Shell and type the cmdlets listed below and the result will be similar to the figure depicted below.

cd $EXScripts


Restart-Service MSExchangeTransport


After installing the anti-spam agents we must add at least one IP on the SMTP internal list property. If you don’t have any other SMTP Server to add you can add the server’s IP, as follows:

Set-TransportConfig –InternalSMTPServers @{Add=”xx.xx.xx.xx”}


Removing the anti-spam agents

The process to remove the anti-spam agents is similar to the installation. The entire process and its result is shown in the cmdlet and figure below.

cd $EXScripts




In this Tutorial we went over the process to enable and remove the anti-spam agents on a Mailbox Server running Exchange Server 2013 SP1.

Written by Anderson Patricio

Anderson Patricio is a Canadian Exchange Server MVP and MCSM (Solutions Master) and he contributes to the Microsoft Community with articles, tutorials, blog posts, forums and book reviews. He is a regular contributor at, and (Portuguese).