Tag Archives: Exchange 2003 relay export

How to export the relay list from an Exchange 2003 server

It’s always a good idea to export your relay list regularly in case of server crash or failures. Yes there’s other ways to restore this but if you have a txt document then it’s a lot quicker to import the list to a rebuilt or new server.

In order to do this download IPsec.vbs from here.

After you have downloaded the package unzip it and then register the exipsec.dll by opening the command prompt and using the syntax “regsvr32 pathtoexipsecurity\exipsec.dll” and pressing enter.

After registering the dll open the command prompt again and change to the ExIpSecurity folder. Then type “cscript ipsec.vbs -s (servername) -i (instance id like 1 or 2 or 3) -o e -d (domaincontroller name) -r relay >c:\relaytable.txt

After running the script you should see a text document in c:\ named relaytable.txt which will contain all the allowed IP’s in the relay list.

For more information on ipsec.vbs just run cscript ipsec.vbs to get all the switches that are available for you to use. You are also able to import the list to a new server etc.