Programmatically add IP(s) or domain(s) to Relay Restrictions in SMTP Virtual Server on IIS 6

Posted by RJ on Stack Overflow See other posts from Stack Overflow or by RJ
Published on 2009-12-21T19:27:12Z Indexed on 2010/05/11 11:54 UTC
Read the original article Hit count: 315

Filed under:
|
|

I have been given a task to create an admin page to programmatically add IPs or domains to a SMTP Relay Restrictions using C#. I spent some time researching this since yesterday and finally traced this down to a few posts on several website that use the System.DirectoryServices.DirectoryEntr class. Using the examples I found, I can add or deny IPs or domains under Connection control but not Relay Restrictions. What would be the commands in C# to add IPs to the Relay Restrictions? Below is a pic of the GUI in IIS for reference.-

alt text

© Stack Overflow or respective owner

Related posts about c#

Related posts about smtp