Understanding and Managing SMTP Virtual Servers

An Overview on the Simple Mail Transfer Protocol (SMTP) Service

The Simple Mail Transfer Protocol (SMTP) service, a primary service included as part of IIS, performs the key functions, and has the characteristics listed below:

The message store of the SMTP service is created when you install the service on IIS. SMTP utilizes this directory structure to process mail. The folders created in the \Inetpub\Mailroot directory structure (message store) are listed below:

The events that occur when SMTP processes mail are listed below:

  1. The SMTP service, smtpsvc.dll, runs in-process in the Inetinfo.exe IIS process.
  2. Smtpsvc.dll monitors TCP port 25 for any incoming messages.
  3. It monitors the Pickup folder for all outgoing messages.
  4. SMTP places messages for users that are members of the local domain it manages in the Drop folder for delivery.
  5. If a message has to be sent to a user that is a member of a different or remote domain, an ASP application has to create and place the outgoing message in the Pickup folder. This is done through the ASP application using CDOSYS.
  6. The SMTP service then performs a DNS lookup on the name server so that it can find the SMTP host that manages the remote domain. The port used for this process is port 53. The SMTP service checks for the MX record for the remote domain.
  7. After the fully qualified domain name (FQDN) of the remote SMTP host is determined, the SMTP service attempts to create a connection with the remote SMTP host to transfer the message for the recipient to it. Port 25 is utilized for the message transfer.
  8. If a connection cannot be established with the remote SMTP host, the SMTP service places the message in the Queue folder.
  9. If a connection can be established with the remote SMTP host but the connection is rejected by the remote SMTP host, the SMTP service forwards the sender of the message a non-delivery report (NDR), and returns the message as well. The message is placed in the Badmail folder if it cannot be returned to the sender.
  10. If a connection can be established with the remote SMTP host and the remote SMTP host accepts the connection, the SMTP service transfers the message to the remote SMTP host.
  11. After the message is received by the remote SMTP host it is sent to the POP3 or IMAP mail server which contains the mailbox of the intended recipient.
  12. The message is downloaded when the client connects to the POP3 or IMAP mail server.

How to install the SMTP service as an IIS component

As mentioned previously, in order to use SMTP, you first have to install the SMTP service if you are running Windows Server 2003 Standard Edition or Windows Server 2003 Enterprise Edition.

To install the SMTP service,

  1. Place the Windows Server 2003 CD-ROM in the CD-ROM drive.
  2. Click Start, Control Panel, and click Add/Remove Programs.
  3. Click Add/Remove Windows Components in the Add Or Remove Programs dialog box.
  4. Click Application Server in the Windows Components dialog box, and then click the Details button.
  5. The Application Server dialog box appears next.
  6. Click IIS and then select the Details button.
  7. Click the SMTP Service checkbox.
  8. Click OK.
  9. Open IIS Manager.
  10. Verify that the SMTP Virtual Server node appears in the console tree.

When you install the SMTP service on IIS, the SMTP directory structure is created, as well as the Default SMTP Virtual Server. Through configuring the Default SMTP Virtual Server, mail can be forwarded to multiple SMTP domains. This eliminates the need to host multiple SMTP virtual servers on one machine to forward mail.

You can use the IIS Manager to perform the SMTP management tasks listed below:

How to configure a SMTP virtual server

To create a SMTP virtual server,

  1. Open the IIS Manager.
  2. Locate the computer, right-click Default SMTP Server, select New and then Virtual Server from the shortcut menu.
  3. The New SMTP Virtual Server Wizard initiates.
  4. Enter a name for the SMTP site. Click Next.
  5. On the Select IP Address page, enter the IP address settings for the SMTP site. Click Next.
  6. Enter the path to the home directory for the SMTP server. Click Next.
  7. Provide the domain name for the SMTP server. Click Next.
  8. Click Finish.

You can configure various configuration settings for an SMTP virtual server by accessing its Properties window, and then using the various tabs to configure these settings. The tabs of the Properties window of a SMTP virtual server are:

To access the Properties window of the SMTP virtual server,

  1. Open the IIS Manager.
  2. Right-click the Default SMTP Virtual Server node, and select Properties from the shortcut menu.
  3. The Properties dialog box of the SMTP Virtual Server opens.
  4. The settings that can be configured on each tab are discussed below.

General Tab

The configuration settings that can be configured are:

Access Tab

The security configuration settings that can be configured for SMTP on the Access tab are:

When configuring security configuration settings for the SMTP virtual server, the recommended best practices are:

Configuring the above security configuration settings results in:

Messages Tab

The configuration settings which you can configure for messages are:

Delivery Tab

The configuration settings which you can configure for message delivery are:

LDAP Routing Tab

If you want to configure the SMTP virtual server to access a directory service to resolve e-mail addresses from the names of senders and recipients, you would do so on the LDAP Routing tab. The directory services supported are:

To enable LDAP Routing, click the Enable LDAP Routing checkbox on the LDAP Routing tab, and specify the following information for connecting to the directory server:

Security Tab

The users and security groups that have permission to configure the properties of the SMTP server are located on the Security tab. The default groups that are assigned SMTP operator permissions are:

SMTP Domains

A SMTP virtual server manages one or multiple SMTP domains. SMTP domains are also called service domains. A SMTP domain is a DNS domain that manages messages for delivery. The SMTP domain is automatically the default local domain of the Default SMTP Virtual Server. You can view the default local domain in the IIS Manager. Simply click the SMTP virtual server node in the console tree to display the default domain. A characteristic of the default domain is that you cannot delete it. A SMTP virtual server can only have one default local domain.

You can however change the name of the default name, by right-clicking it and selecting Rename from the shortcut menu.

If you want configure the default domain, right-click it, and select Properties from the shortcut menu. On the General tab, you can change the location of the Drop directory. You can also select the Enable Drop Directory Quota checkbox if you want to limit the size of the Drop directory. In addition to the SMTP default domain, you can create the following domains.

How to create an alias domain

The New SMTP Domain Wizard is used to create alias domains for the Default SMTP Virtual Server, and to create remote domains.

  1. Open the IIS Manager.
  2. In the console tree, right-click the Domains node under Default SMTP Virtual Server, select New from shortcut menu, and then select Domain.
  3. The New SMTP Domain Wizard starts.
  4. Select the Alias domain type option. Click Next.
  5. Specify the DNS name for the alias domain. Click Finish.
  6. In the console tree of IIS Manager, click the Domains node to view the domains for the Default SMTP Virtual Server.

How to create and configure a remote domain

  1. Open the IIS Manager.
  2. Right-click the Domains node, select New from shortcut menu, and then select Domain.
  3. The New SMTP Domain Wizard starts.
  4. Click the Remote domain type option. Click Finish.
  5. Proceed to open the Properties window of the remote domain.
  6. The delivery settings which you can configure on the General tab are:
    • You can override the default no relay setting and allow for the relaying of incoming messages sent to this domain.
    • You can enable the Send HELO instead of EHLO checkbox.
    • You can configure an authentication method for outbound messages sent to the remote domain. Click the Outbound Security button and select the authentication method.
    • You can set the routing method for sending messages to the remote domain.
  7. Click the Advanced tab to specify that the SMTP server should store mail for a SMTP host of the remote domain. This feature is useful for a host that rarely connects to the Internet.


Top 5 Free Networking Tools

Bookmark Understanding and Managing SMTP Virtual Servers

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.