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..

Solution


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

.Install-AntispamAgents.ps1

Restart-Service MSExchangeTransport

image2_thumb

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”}

image2

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

.uninstall-antispamAgents.ps1

image5

Conclusion


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 ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).

Related Post

How to enable permissions for in-place eDiscovery ... In order to use the in-place eDiscovery and administrator has to assign admin roles permission to an user or a group before such user/group can use th...
How to generate SMTP Address reports in your Excha... In this Tutorial we are going over two simple methods to create reports to list SMTP address. The first section will cover how to list all primary SMT...
How to remove the last Exchange Server 2013 from t... In a few situations you may want to remove the last Exchange Server 2013 and the setup process will give you a hard time for the Arbitration Mailboxes...
Managing DAG: Adding nodes and DAC mode In this Tutorial of our Managing DAG in Exchange Server 2013 series we will be adding additional nodes to our newly created DAG and also configuring i...