Portal Home > Knowledgebase > Email > White-listing Spam Experts Exchange 2007 to 2016

White-listing Spam Experts Exchange 2007 to 2016

Exchange 2007-2016

Hosted Cloud

Microsoft has removed support for whitelisting based on reverse DNS/hostname. You can however use the following Powershell script:

Add-PSSnapin Microsoft.Exchange*
#Start
$ErrorActionPreference = "Stop"
$ips = [System.Net.Dns]::GetHostAddresses("delivery.antispamcloud.com") | select IPAddressToString
$ips = $ips | foreach-object {$_.IPAddressToString}
Set-ReceiveConnector -Identity "Default SERVERNAME" -RemoteIPRanges $ips
#End

Please note that this script is intended for Exchange 2010 on Windows 2008 Small Business but may also apply to Exchange 2007 on other versions of Windows. Replace the “SERVERNAME” part of the script with your receiving connector’s name that you want this script to modify.

You can retrieve this name through Exchange Management Console -> Server Name -> Server Configuration - > Hub Transport.

This script retrieves all IP addresses listed in ”delivery.antispamcloud.com” and whitelists them in the Receive Connector to allow connections from our servers.

You can use the task scheduler to create a planned task and ensure the IP addresses are updated frequently (hourly or at least once a day). This can be done by creating a task with the following command:

powershell -command "& 'C:\psscripts\exchangereceiveconnector.ps1' "


 

Also Read

Powered by WHMCompleteSolution