Dela via


SmartHostType Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The SmartHostType property corresponds to the "Attempt direct delivery before sending to smart host" check box in the Advanced Delivery dialog box. If no smart host is specified in the smart host text box, SmartHostType will be set to 0. When the smart host is specified and the check box is not selected, SmartHostType will be set to 2 (always) and the smart host will be used to send mail without consulting the DNS server. When the smart host is specified and the check box is selected, SmartHostType will be set to 1 (that is, direct delivery through DNS lookup first; if DNS fails to look up the domains of the recipients, the smart host entry of the SMTP virtual server is used).

Attribute Name Attribute Value

XML Data Type

DWORD

WMI Data Type

SINT32

ADSI Data Type

DWORD

ABO Data Type

DWORD

ABO Metabase Identifier

No friendly name is defined for this identifier in iiscnfg.h. Search the systemroot\System32\Inetsrv\MBSchema.xml file for this property and use the integer from its ID attribute.

Attributes

INHERIT

Default Value

0

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

36905

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path IIS Admin Object Type

/LM/SMTPSVC

IIsSmtpService

/LM/SMTPSVC/n

IIsSmtpServer

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.