all groups > iis smtp nntp > september 2005 >
You're in the

iis smtp nntp

group:

Configuration via Script of IIS SMTP Server



Configuration via Script of IIS SMTP Server Al Mulnick
9/12/2005 9:08:31 PM
iis smtp nntp: Is it possible to configure the entire IIS SMTP server via script? =20

I know there are sample scripts out there for IIS at script center. =
Those are nice to read things, but I'm having trouble finding some =
specific keys/values in the metabase. =20

Here's what I'm trying to do:

With w2k3 server IIS SMTP, I want to programmatically configure the =
hosts listed in /virtual server/access/Relay Restrictions, computers. I =
suspect that the information I want to manipulate is in binary format in =
the RelayIpList key, but I'm looking for a) confirmation that's the =
correct key in the metabase and b) a way to programmatically manipulate =
that key so as to import some domains.=20

Can anyone help with that? Or point me to some resources that can?=20

Any help greatly appreciated.=20

Re: Configuration via Script of IIS SMTP Server Chris Crowe [MVP]
9/13/2005 12:00:00 AM
I am not sure how to interept the settings but here are some details that
may help.

The RelayIpList property is an octet string containing a list of IPs allowed
or denied for relay listed in the Relay Restrictions dialog box.

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/13ca169c-c1ec-4056-b75e-8c62866b8e91.mspx

Octet String (SID) Property Type
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/octet_string__sid__property_type.asp

Demo showing properties of SMTP including ReplyIpList
http://www.cruto.com/resources/VBScript/VBScript-Examples/iis/iis6/smtp/_List-SMTP-Service-Setting-Information.asp

--
Cheers

Chris

Chris Crowe [IIS MVP]
http://blog.crowe.co.nz


[quoted text, click to view]
Is it possible to configure the entire IIS SMTP server via script?

I know there are sample scripts out there for IIS at script center. Those
are nice to read things, but I'm having trouble finding some specific
keys/values in the metabase.

Here's what I'm trying to do:

With w2k3 server IIS SMTP, I want to programmatically configure the hosts
listed in /virtual server/access/Relay Restrictions, computers. I suspect
that the information I want to manipulate is in binary format in the
RelayIpList key, but I'm looking for a) confirmation that's the correct key
in the metabase and b) a way to programmatically manipulate that key so as
to import some domains.

Can anyone help with that? Or point me to some resources that can?

Any help greatly appreciated.

Al

Re: Configuration via Script of IIS SMTP Server Al Mulnick
9/14/2005 6:49:53 PM
Thanks Chris. That shows me a lot of information and I had seen a similar
script on scriptcenter. Unfortunately, it isn't quite what I'm looking for.
The information I want is by domain name (text) vs. ip address. I suspect
that's the same area that the information is collected in, but it's only
given back out as text when I export it using metabase explorer.
Unfortunately, I can't otherwise find the data.

Any other ideas?

Al
[quoted text, click to view]

Re: Configuration via Script of IIS SMTP Server Chris Crowe [MVP]
9/16/2005 12:00:00 AM
The property you want is the RelayIPList but that script I suggested does
not seem to get the value. Maybe because it is looking i nthe wrong place.

I did some playing around with the IIS Metabase Explorer and found that the
RelayIPList was being updated when I was changing the relay domain.

Note: It does not refresh properly so you need to exit and reload the
Metabase Explorer to see the changes.

Maybe using ADSI instead of WMI would work. I am not very good with WMI. At
least with ADSI you can use the same path as you can see in the Metabase
explorer.


--
Cheers

Chris

Chris Crowe [IIS MVP]
http://blog.crowe.co.nz


[quoted text, click to view]

AddThis Social Bookmark Button