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

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at,, and Anderson (Portuguese).

Related Post

Creating multiple mailboxes using Exchange Managem... In Today’s Tutorial we are going over a simple task which is to create several mailboxes using Exchange Management Shell. This Tutorial may be useful ...
Rollup Update for Exchange Server 2007/2010 and Se... Exchange Team has just released Rollup Updates for Exchange Server 2007/2010 and Security Updates for Exchange Server 2013. Update Rollup 2 For Exch...
How to allow XML files in Outlook Web App In this Tutorial we will allow the XML files in an Outlook Web App session in Exchange Server 2013. By default XML files are blocked on the OWA. Solut...
IMAP inaccessible on Exchange Server 2013 If you are experiencing an issue where the IMAP clients are not able to connect on the Exchange Server 2013/2016 server, and when trying to telnet the...