Is there a way to export all SMTP Relay IPs

All,

Is there a script or something that can be run to export all the IPs listed within Relay Restrictions?
Default SMTP Virtual Server -> Access -> Relay

I need to gather the listed IPs from many Exchange servers to capture this information so we can migrate these applications/servers requiring SMTP Relay capabilities to a new environment.  

Thanks
Admin_StoogeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BrassMonkey26Commented:
0
Hilal1924Commented:
Here you go:

For Exchange 2003: http://support.microsoft.com/kb/935635
For Exchange 2007: Get-IPBlockListEntry

Regards,
Hilal
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Admin_StoogeAuthor Commented:
So it seems using IPSec that it must be installed on each Exchange 03 server locally.  It there way to run the cmd remotely?
0
Redefining Cyber Security w/ AI & Machine Learning

The implications of AI and machine learning in cyber security are massive and constantly growing, creating both efficiencies and new challenges across the board. Join our webinar on Sept. 21st to learn more about leveraging AI and machine learning to protect your business.

Hilal1924Commented:
It is script, so does not need to be installed. You could run it remotely but the script has to reside somewhere on the exchange server.  YOu can Use SystInternals PSExec to execute the script remotely.

Regards,
Hilal
0
Hilal1924Commented:
Yes the DLL needs to be registered but that can also be done remotely :)
0
Admin_StoogeAuthor Commented:
regsvr 32 c:\ExIpSecurity\exipsec.dll

I know this is a stupid question but why when I enter this on within the run field I receive "Windows cannot find 'regsvr'
0
Admin_StoogeAuthor Commented:
bahahahhaha....there is no space
regsvr32 c:\ExIpSecurity\exipsec.dll

Thanks Everyone
0
Hilal1924Commented:
Real Funny :)
0
Admin_StoogeAuthor Commented:
When running the cmd and open the txt file I receive the following:

Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Quitting: Syntax incorrect. Type 'ipsec.vbs' for usage.
0
Hilal1924Commented:
Probably the argument you supplied was not correct. Please follow the Microsoft article and verify the arguments.
0
Admin_StoogeAuthor Commented:
C:\ExIpSecurity>cscript.exe ipsec.vbs -s "Exchange Server" -o e -r relay-d "DC" >C:\exipsecurity\exportrelaylist.txt
0
Admin_StoogeAuthor Commented:
Taken from ipsec.vbs


REM parameter validation
if WScript.Arguments.Count = 0 then
      Usage
      WScript.Quit 1
end if

if NOT ParseCommandLine ( g_dictParms, WScript.Arguments ) then
      Quit "Syntax incorrect. Type 'ipsec.vbs' for usage."
0
Admin_StoogeAuthor Commented:
Fixed it.
Do not copy & Paste the cmd from the MS article.
When I manually typed it out I was able to produce a test list of IPs.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Protocols

From novice to tech pro — start learning today.