Update IPs on Receive Connectors

If you have multiple HUB servers and ever had to update one or more IP addresses from a custom Receive Connector, you know how much work it is involved. Especially if you have to do this often.

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 ($recConin$recCons)

{

      Write-Host“Updating”, $recCon.Identity

       $recCon.RemoteIPRanges -=“10.101.74.10”

      $recCon.RemoteIPRanges -=“10.102.34.12”

       Set-ReceiveConnector $recCon -RemoteIPRanges $recCon.RemoteIPRanges

}

Leave a Comment

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top