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.

About Tiens van Zyl

I am a Microsoft Exchange Engineer for a local IT Outsource company assisting with 3rd line support to our Enterprise clients and Hosted Exchange Service. I'm a passionate gamer and also a very active musician. View all posts by Tiens van Zyl

One response to “How to export the relay list from an Exchange 2003 server

  • Era Tesla

    Thanks for the valuable article. No doubt, Exchnage users should be ready for any kind of accideatal loss in Exchange by exporting the essentials on time lines basis. So that sudden Exchnage crash would not take your life.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: