473,471 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Issue on SMTP virtual server configuration in IIS 6

Hi all,

During the setup process of my SMTP sink DLL, I want to configure some
properties of SMTP virtual server. I use ADSI to set them. For many
properties such as "ServerComment", "MaxOutConnections" of
directory entry "IIS://localhost/smtpsvc/1", I could set them all.
But for "IPSecurity" & "RelayIpList" properties, it's a little
different & difficult.

Currently I could set SMTP server IPSecurity/RelayIpList properties in
IIS 6 partly, but not all.

Here's my code in C#:

DirectoryEntry smtpsvc = new
DirectoryEntry("IIS://localhost/smtpsvc/1");
PropertyValueCollection RelayIpListValCollection =
smtpsvc.Properties["RelayIpList"];
IPSecurityClass RelayIpListClass = new IPSecurityClass();
RelayIpListClass.GrantByDefault = false;
RelayIpListClass.IPGrant = "192.13.32.111";
RelayIpListValCollection.Clear();
RelayIpListValCollection.Add( RelayIpListClass);

It works for RelayIpList property, and IpSecurity property. But I
don't know how to add two & more IP for this IPGrant or IPDeny list
in a batch. I could only find an example of
"192.13.32.111,255.255.255.0" for IP/mask, and I failed to replace
it with "192.13,32.111;192.14.32.111"or something like that for two
independent IPs.

Could anyone please give me any hint?

Thanks.

-Gavin

Feb 27 '06 #1
0 1236

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Von Shean | last post by:
I need to send ".mht" files to different recipients. I have saved .mht files using CDO. Now i have to send it across.. I have two options both have different types of problems Using CDO I...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.