How to: Install and Configure SMTP Virtual Servers in IIS vi.0

Note

The IIS SMTP Virtual Server Component that is mentioned in this article is part of IIS 6.0, the support for which has ended with the support of Windows Server 2003. To relay emails to Office 365, use one of the supported versions of Exchange Server.

In lodge to send e-mail from an ASP.Internet Web awarding, you must have the Simple Postal service Transfer Protocol (SMTP) service of Internet Data Services (IIS) installed and configured on your server. The IIS SMTP service is a unproblematic component for forwarding e-mail messages to an SMTP server for commitment.

Installing the SMTP Service

The SMTP service is not installed past default with IIS. You must install the SMTP service using Command Panel. Installing the SMTP service creates a default SMTP configuration that yous tin can and then customize by using IIS Manager.

To install the SMTP service on IIS half-dozen.0

  1. On the Start menu, click Command Panel, double-click Add or Remove Programs, and and then click Add/Remove Windows Components.

  2. In the Components list, click Application Server, and so click Details.

  3. In the Subcomponents of Awarding Server listing, click Internet Data Services (IIS), then click Details.

  4. In the Subcomponents of Internet Information Services (IIS) list, select the SMTP Service check box, so click OK.

  5. Click Next. If you are prompted for the Windows CD or the network install path, follow the instructions.

  6. Click Finish.

When you install the SMTP service, a default SMTP server configuration is created with a message shop in C:\Inetpub\Mailroot.

When you are setting upwards the SMTP service, yous can configure global settings for the SMTP service, as well as settings for individual components of the virtual server. The IIS SMTP service is a relay agent merely. E-mail messages are forwarded to an SMTP server for delivery.

Configuring the SMTP Virtual Server

Installing the SMTP service will create a new node in IIS Managing director. In order to configure the SMTP virtual server, you must kickoff IIS Managing director. For more data, meet the topic "SMTP Assistants" in the IIS Operations Guide.

Important note Important Note:

You must be logged on as a member of the Administrators group on the local figurer to perform the following procedure (or procedures), or you must have been delegated the appropriate authority.

To offset IIS Manager from the Run dialog box

  1. On the Start menu, click Run.

  2. In the Open box, type inetmgr and so click OK.

To offset IIS Director from the Authoritative Services console

  1. On the Start menu, click Run. In the Run text box, blazon control panel, so click OK.

  2. In the Control Panel window, click Administrative Tools.

  3. In the Administrative Tools window, click Internet Information Services.

Default Settings

The default SMTP virtual server has the following default settings. If you create a new virtual server, y'all can configure default settings using the New Virtual Server Wizard.

  • Name: The proper noun of the virtual server that appears in IIS Manager.You lot can change the proper name of the virtual server in IIS Manager. But right-click the virtual server and then click Rename.

  • IP accost/TCP port: All unassigned/25.You can apply the General tab in the SMTP virtual server properties dialog box to change this setting. If y'all change this setting, you must specify an IP accost and TCP port combination that is non being used by another SMTP virtual server. TCP port 25 is both the default TCP port and the recommended TCP port. More than i virtual server can utilize the same TCP port, only they must be configured with different IP addresses. If you do non set a unique IP address and TCP port combination, the SMTP virtual server will not start.

Default domain: The domain proper name that is listed on the Computer Name tab in System Properties.The default domain is used to postage stamp messages from addresses that do not have a domain. An SMTP virtual server tin have only one default domain, and it cannot be deleted. To change the proper noun of the default domain in IIS Director, double-click the virtual server, and and then double-click Domains. Right-click the local (or default) domain, and then click Rename.

  • Home directory: C:\Inetpub\Mailroot.The abode directory is the root of your SMTP content directories, and it must be local to the computer on which the SMTP service runs.

See Also

Tasks

How to: Create and Configure Local ASP.NET Spider web Sites in IIS six.0