Exchange Receive Connector
Recently I was migrating a customer of mine and found multiple receive connector in the legacy exchange system.
In an environment where we have multiple exchange servers in load balancer mode this take will take your half of the day and almost make you feel unwilling to do it. Isn’t it boring to do?
Let us make it interesting and quick.
Here is what I did for this customer to make it more interesting.
1. Extracted output of the current receive connectors by running the following command
Get-ReceiveConnector –server OldExchangeserver | select identity,bindings,auth*,remoteIP*,PermissionGroups
I got output like below
You might have many IPs in RemoteIPRanges and all might not come in the output. If this is the case then we need expand the limit. Default limit is 16. Run the below mentioned command.
Now rerun the command and you will see all IPs from RemoteIPRanges
2. Copied the output to a notepad, now we have input available to make command for output.
3. Made the following command to run in the new exchange system. Something like below:
New-ReceiveConnector -Name NameOftheConnector -AuthMechanism Authentication -RemoteIPRanges RemoteIPs -Bindings 0.0.0.0:25 -PermissionGroups AnonymousUsers -Server NewExchangesystem
I made multiple commands in another notepad.
Point to be noted values here will accept only , to add multiple values for RemoteIPRanges & AuthMechanism
4. Now I opened EMS with run as administrator and ran the commands.
5. Now same connectors I need for 10 more servers so I preferred to come back to the notepad and replace the server name
6. Now copied the commands and pasted in the EMS.
7. Repeated step 5 and 6 for remaining servers.
8. When I closely observed all receive connectors I found one of the connector had so many IPs in RemoteIPRanges which were not coming properly in the output. So we had 2 options run the command and get it in the csv or copy from ldp. Then update the command. I choose LDP.
Now you will be thinking why I didn’t write a PS1 script. The reason is you need to type so much input to the PS1 script I preferred this way which is more interesting and faster.
I hope this will help.
Microsoft MVP | Exchange Server