I’ve been doing a number of Exchange 2007 to 2010 migrations lately. Most of these customers have internal relay Receive Connectors that allow internal application servers to relay SMTP email through Exchange to internal and/or external recipients. The connectors are configured to allow only certain IP addresses to use them, and often it’s a pretty extensive list. This article explains how to copy, or “clone”, these remote IP addresses from one connector to another.
For example, here’s an Exchange 2007 connector with over 25 remote IP addresses that are allowed to use this connector:
Typing in these IP addresses into a new Exchange 2010 Receive Connector is not only laborious, it can lead to errors that may take quite a bit of time to troubleshoot.
Using Powershell we can easily clone this set of IP addresses from an existing connector, named Anonymous Relay on EX2007HT, to another connector with the same name on an Exchange 2010 Hub Transport server, EX2010HT.
Begin by creating a Receive Connector on the target server, EX2010HT with the name Anonymous Relay and configure it with the appropriate permissions. Then run the following cmdlets to clone the RemoteIPRanges attribute:
$connector = Get-ReceiveConnector “EX2007HT\Anonymous Relay”
Set-ReceiveConnector “EX2010HT\Anonymous Relay” -RemoteIPRanges $connector.RemoteIPRanges
You can use this method to copy any remote IP range from one connector to another. Simply replace the server\connector names.