If this is your case, here’s how you can easily remove (or add) IPs from a receive connector across all your HUB servers:
# Get Receive Connectors to update
$recCons = Get-ReceiveConnector | Where {$_.Name -match "Unauthenticated SMTP"}
ForEach ($recCon in $recCons)
{
Write-Host "Updating", $recCon.Identity
$recCon.RemoteIPRanges -= "10.101.74.10"
$recCon.RemoteIPRanges -= "10.102.34.12"
Set-ReceiveConnector $recCon -RemoteIPRanges $recCon.RemoteIPRanges
}
Hope this helps!
No comments:
Post a Comment