|
Home > Archive > IIS and SMTP > September 2005 > Configuration via Script of IIS SMTP Server
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Configuration via Script of IIS SMTP Server
|
|
| Al Mulnick 2005-09-12, 8:50 pm |
| 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
| |
| Chris Crowe [MVP] 2005-09-13, 6:02 pm |
| 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/pr...62866b8e91.mspx
Octet String (SID) Property Type
http://msdn.microsoft.com/library/d...operty_type.asp
Demo showing properties of SMTP including ReplyIpList
http://www.cruto.com/resources/VBSc...Information.asp
--
Cheers
Chris
Chris Crowe [IIS MVP]
http://blog.crowe.co.nz
"Al Mulnick" <amulnick_No_SPAM@ncDOTrr.com> wrote in message
news:%23Ro7n%23$tFHA.1472@TK2MSFTNGP15.phx.gbl...
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
| |
| Al Mulnick 2005-09-14, 5:54 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
"Chris Crowe [MVP]" <IISMVP2005@iisfaq.homeip.net> wrote in message
news:%23OldMPJuFHA.3720@TK2MSFTNGP14.phx.gbl...
>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/pr...62866b8e91.mspx
>
> Octet String (SID) Property Type
> http://msdn.microsoft.com/library/d...operty_type.asp
>
> Demo showing properties of SMTP including ReplyIpList
> http://www.cruto.com/resources/VBSc...Information.asp
>
> --
> Cheers
>
> Chris
>
> Chris Crowe [IIS MVP]
> http://blog.crowe.co.nz
>
>
> "Al Mulnick" <amulnick_No_SPAM@ncDOTrr.com> wrote in message
> news:%23Ro7n%23$tFHA.1472@TK2MSFTNGP15.phx.gbl...
> 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
>
| |
| Chris Crowe [MVP] 2005-09-16, 7:48 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
"Al Mulnick" <amulnick_No_SPAM@ncDOTrr.com> wrote in message
news:e8%23Yd6XuFHA.1252@TK2MSFTNGP09.phx.gbl...
> 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
> "Chris Crowe [MVP]" <IISMVP2005@iisfaq.homeip.net> wrote in message
> news:%23OldMPJuFHA.3720@TK2MSFTNGP14.phx.gbl...
>
>
|
|
|
|
|