Exchange-HUB-AntiSpam-commands.txt



#Check the installed and enabled AntiSpam agents on this server
Get-TransportAgent

#When the AntiSpam agents are not installed (by default) you get:
#Identity                                           Enabled         Priority
#--------                                           -------         --------
#Transport Rule Agent                               True            1
#Text Messaging Routing Agent                       True            2
#Text Messaging Delivery Agent                      True            3


#Install and enable AntiSpam agents on Exchange HUB Transport Server
& "C:\Program Files\Microsoft\Exchange Server\V14\Scripts\install-AntispamAgents.ps1"

#You must restart MSExchangeTransport service, and close EMS and EMC to apply changes

#Check AntiSpam updates configuration
Get-AntispamUpdates

#Set zen.spamhaus.org as DNSBL (DNS-based Blackhole List) provider
#ZEN combines SBL, SBLCSS, XBL and PBL into one single powerful blocklist

#List DNSBL providers
Get-IPBlockListProvider

#Test DNSBL providers
Test-IPBlockListProvider -Identity SpamHAUS -IPAddress <test IP>

#Test ZEN list configuration with an e-mail

#Additional Block Lists
dnsbl.sorbs.net
bl.spamcop.net
dnsbl-1.uceprotect.net

#Agent Logs
C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\Logs\AgentLog

#Get Filtered results from Agent Log
Get-AgentLog -StartDate "4/23/2010 12:43 PM" -EndDate "4/23/2010 12:45 PM"

Post a Comment

1 Comments

  1. You must restart how to stop spam MSExchangeTransport service, and close EMS and EMC to apply changes.

    ReplyDelete