Powershell detect whether the mailbox IP / IP was included spamhaus and other export blacklist

E-mail server or IP company exports might for some reason be included in the blacklist message, use the following command to check whether the IP is included in any blacklist

1, the mounting module

Install-Module -Name PSBlackListChecker

2, to obtain the IP status in the list of all

Search-BlackList "IP1" -ReturnAll

3, returns only blacklisted IP

$checkip ="ip1","ip2","ip3"
$allblacklist = Search-BlackList -IP $checkip | select IP,Blacklist,Islisted

Guess you like

Origin blog.51cto.com/6293080/2483548