Exchange Server

Install / Uninstall Anti-Spam in Exchange 2007

In Exchange 2003 the Anti-Spam system is part of the exchange installation and can be enabled or disabled by marking the relevant component on the SMTP Virtual Server: https://petri.com/block_spam_with_exchange_2003.htm

Exchange 2007 is built differently and a new element called Edge was added in order to handle Spam and Viruses, and because of this the traditional Anti-spam system is not installed as a default during the Exchange 2007 installation.

When you are not installing the Edge server role as a mailrelay, but you still want to use the Anti-Spam system that that is part of Exchange 2007, you need to install it from a PowerShell script that was installed during the Exchange 2007 installation on the Hub transport role. To do this, follow the instructions listed below.

Sponsored Content

What is “Inside Microsoft Teams”?

“Inside Microsoft Teams” is a webcast series, now in Season 4 for IT pros hosted by Microsoft Product Manager, Stephen Rose. Stephen & his guests comprised of customers, partners, and real-world experts share best practices of planning, deploying, adopting, managing, and securing Teams. You can watch any episode at your convenience, find resources, blogs, reviews of accessories certified for Teams, bonus clips, and information regarding upcoming live broadcasts. Our next episode, “Polaris Inc., and Microsoft Teams- Reinventing how we work and play” will be airing on Oct. 28th from 10-11am PST.

Installing Exchange 2007 Anti-spam system

  1. Close the EMC (Exchange Management Console).
  2. Open the PowerShell and navigate using the following path: “Program Files\Microsoft\Exchange Server\Scripts“.
  3. Run the “install-AntispamAgents.ps1” script as shown in window (with ./ before the script name) below:
  4. Restart the “Microsoft Exchange Transport” service in order to apply configuration changes.
  5. Open the Exchange Management Console, and on the Organization configuration list, select Hub Transport. The “Anti-Spam” tab has been added to the Hub Transport properties.

Uninstalling Exchange 2007 Anti-spam system

If from some reason, you would like to uninstall the Anti-Spam system from the Hub Transport role, follow the next steps:

  1. Close the EMC (Exchange Management Console).
  2. Open the PowerShell and navigate using the following path: “Program Files\Microsoft\Exchange Server\Scripts“.
  3. Run the “uninstall-AntispamAgents.ps1” script as shown in window (with ./ before the script name) below: Note: You will be prompt to disable and then uninstall each agent of the Anti-spam system like the Connection filtering, content filter, Sender filtering etc.
  4. Restart the “Microsoft Exchange Transport” service in order to apply configuration changes.
  5. Open the Exchange Management Console, and on the Organization configuration list, select Hub Transport. You will see that the “Anti-Spam” tab has been removed from the Hub Transport properties.

Related Topics:

External Sharing and Guest User Access in Microsoft 365 and Teams

This eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

You will learn:

  • Who should be allowed to be invited as a guest?
  • What type of guests should be able to access files in SharePoint and OneDrive?
  • How should guests be offboarded?
  • How should you determine who has access to sensitive information in your environment?

Sponsored by:

 
Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: