I have a long list of IP addresses I need to add as allowed relays to the built-in SMTP service on Windows Server 2008 R2 (IIS 7.5, but SMTP uses the old IIS 6.0 manager)
I know how to add allowed relays manually, but there is quite a long list so I'm looking to automate it.
Is there any way to do this from the command line, a script or some other automation?
The IIS 6 SMTP server? The config for this is in the IIS metabase XML file at
systemroot\system32\inetserv\metabase.xml
Line: RelayIpListVBS to set relay IPs:
Credits:
From: http://blogs.msdn.com/b/vijaysk/archive/2009/05/07/setting-smtp-relayiplist-from-a-script.aspx
Untested by me (BlueCompute)