Receive Connector IP Range Manager – Beta 1.0

So I have this project… :)

I thought it was time to release a script, or more an application since it got forms, that I have been working on. I bet many of you need to add and remove IP-addresses and ranges from the relay receive connectors in your environment to maintain some sort of security? Well there are scripts out there that one can use but they can be a bit tricky. So a while ago I decided to create a forms based one and make it easier.

More information and a download link can be found here, but I suggest that you read the entire post before running it.

It now supports both Exchange Server 2010 and 2013!

The Tool

So what can you do with this tool? In short, you can edit all of your receive connectors at the same time either manually or using one of the receive connectors as a template.

This is just a normal PS1 file and you start it as a usual PowerShell script: .\RCIPRManager.ps1.
When the tool starts it gathers information on receive connectors and the ip range lists, no editing is done so there is no harm in starting the tool and checking it out. Its not until you click Save that any editing is done. When open, you can choose which receive connector to load ip ranges from, then add and remove rows as you wish. When done multiple target receive connectors can be selected and when you click Save the ip ranges listed will be written to the target receive connectors.


This is a beta, not everything will be working as intended even tough I have tested the tool quite thoroughly in a number of different environments. As usual the script is provided “AS IS” with no guarantees, no warranties, and they confer no rights.

Final notes

Feel free to use the tool, share it and alter it. But please do not claim it as your own, be sure to include a reference to this blog and if you make any changes or fix any errors I would be very happy if you post them as a comment so that all of us can benefit from your findings and knowledge. Thanks in advance!

If you need any assistance just let me know and I will be happy to help!

Change Receive and Send Connector Ports in Exchange 2007 and 2010

Receive Connectors

To list all Receive Connectors use the following syntax:

Get-ReceiveConnector | fl

First we need to add all the bindings we want into a variable. And to do that we need to know how bindings work. Bindings are built up in the following way:

<IP address>:<port number>

In this example, I will add and ::::26. means that the server will listen on port 26 for all IPv4 addresses. If I want to add a specific address I will enter that address instead of just zeros. This can be useful if the server has multiple NICs but you only want it to accept connections on one of them. For example, if the IP-address is, the binding would have been

The same goes for goes for IPv6, :::26 tells the server to listen on port 26 for all IPv6 addresses. You can of course specify a IPv6 address as well.

So, to add the bindings to a variable use the following syntax:

$bindings = ‘<IPv6 address>’, ‘<IPv4 address>’

Then we can move on and add it to a specific Receive Connector by using the following syntax:

Set-ReceiveConnector -identity "<receive connector identity>" -Bindings $bindings

Example of final syntax:

$bindings = ‘:::26’, ‘’
Set-ReceiveConnector -identity "EXLABB03\Default EXLABB03" -Bindings $bindings


Send Connectors

This is easier since we don’t have to specify bindings. We can just add a port with the –port parameter.

To list all Send Connectors use the following syntax:

Get-SendConnector | fl

To change the port parameter for a specific Send Connector use this syntax:

Set-SendConnector -Identity "<send connector identity>" -port 26


Set-SendConnector -Identity "Default Send Connector" -Port 26


Hope this works well for you, if you have any questions don’t hesitate to drop a comment here or contact me.