References: Exchange Anti-Spam

# Install anti-spam agents and restart transport service

& $env:ExchangeInstallPath\Scripts\Install-AntiSpamAgents.ps1
Restart-Service -ServiceName 'Microsoft Exchange Transport'

 

# Check SCL levels

Get-OrganizationConfig | fl *scl*
Get-ContentFilterConfig | fl *scl*

 

# Specify internal maillbox servers to be ignored by ‘Sender ID’ agent

Set-TransportConfig -InternalSMTPServers @{Add="<IP_ADDRESS1>","<IP_ADDRESS2>"}
Get-TransportConfig | fl InternalSMTPServers

 

# Set two IP block list provider and rejection message

Add-IPBlockListProvider -Name "SpamHaus IPBlockListProvider" -LookupDomain "zen.spamhaus.org" -AnyMatch $True -RejectionResponse "Your message was rejected because the IP address of the server sending your message is in the block list."
Add-IPBlockListProvider -Name "SpamCop IPBlockListProvider" -LookupDomain "bl.spamcop.net" -AnyMatch $True -RejectionResponse "Your message was rejected because the IP address of the server sending your message is in the block list."

 

Reference(s):

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s