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

Error creating a DAG without AAP in Exchange Serve... In this post we are going over the error “Some or all identity references could not be translated” or “A server-side administrative operation has fail...
Troubleshooting Event ID 15021 in Exchange Server ... In this Tutorial we are going to analyze the Event ID 15021 on Exchange Server 2013 which may be caused by a certificate issue. If you are experiencin...
Error MigrationPermanentException directory proper... In this Tutorial we are going over a common error when migrating mailboxes where the following message is displayed:Error: MigrationPermanentException...
How to Export Recoverable Deleted Items and Purges... Hi there folks! In some situation during regular operations an user deletes something and the Operations/Exchange Admin has to work on the issue to r...