Configuration via Script of IIS SMTP Server
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS and SMTP > Configuration via Script of IIS SMTP Server




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Configuration via Script of IIS SMTP Server  
Al Mulnick


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-13-05 01:50 AM

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 a
re nice to read things, but I'm having trouble finding some specific keys/va
lues in the metabase.  

Here's what I'm trying to do:

With w2k3 server IIS SMTP, I want to programmatically configure the hosts li
sted in /virtual server/access/Relay Restrictions, computers.  I suspect tha
t the information I want to manipulate is in binary format in the RelayIpLis
t key, but I'm looking for a) confirmation that's the correct key in the met
abase and b) a way to programmatically manipulate that key so as to import s
ome domains. 

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

Any help greatly appreciated. 

Al





[ Post a follow-up to this message ]



    Re: Configuration via Script of IIS SMTP Server  
Chris Crowe [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-13-05 11: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







[ Post a follow-up to this message ]



    Re: Configuration via Script of IIS SMTP Server  
Al Mulnick


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-14-05 10: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
>







[ Post a follow-up to this message ]



    Re: Configuration via Script of IIS SMTP Server  
Chris Crowe [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-16-05 12:48 PM

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... 
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:32 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register