Microsoft KB Archive/308161

= HOW TO: Set Up and Configure an SMTP Virtual Server in Windows 2000 =

PSS ID Number: 308161

Article Last Modified on 9/19/2003

-

The information in this article applies to:


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional

-



This article was previously published under Q308161





IN THIS TASK

 * SUMMARY
 * Install Microsoft Internet Information Services (IIS) and Microsoft SMTP Service
 * Configure the SMTP Virtual Server
 * How to Assign an IP Address
 * How to Configure the Default Domain
 * How to Enable Transaction Logging
 * How to Set Relay Restrictions
 * How to Set up a Smart Host
 * Troubleshooting
 * REFERENCES



SUMMARY
This step-by-step article describes how to set up a Simple Mail Transfer Protocol (SMTP) virtual server on a Windows 2000-based computer.

Microsoft SMTP Service uses the Internet-standard SMTP to transport and deliver mail messages. Microsoft SMTP Service does not support the use of individual mailboxes; it places incoming messages in a Drop folder or it forwards them to other SMTP servers (if the message is addressed to a remote domain). This feature allows Microsoft SMTP Service to be used as a mail receiver for other programs.

back to the top

Install Microsoft Internet Information Services (IIS) and Microsoft SMTP Service
Because Microsoft SMTP Service is a component of Microsoft Internet Information Services (IIS), you must install IIS to use Microsoft SMTP Service. To install IIS and Microsoft SMTP service, follow these steps:  Click Start, point to Settings, and then click Control Panel. Double-click Add/Remove Programs. Click Add/Remove Windows Components. In the Windows Components Wizard, click Internet Information Services (IIS), and then click Details. Click to select the following check boxes:  Common Files</li> Documentation</li> Internet Information Services Snap-In</li> Internet Services Manager (HTML)</li> SMTP Service</li> World Wide Web Server</li></ul>

</li> Click OK, and then click Next on the Windows Components page.</li> On the Completing the Windows Components Wizard page, click Finish.</li> Click Close.</li></ol>

back to the top

Configure the SMTP Virtual Server
When you install Microsoft SMTP Service, a default SMTP virtual server is created to handle basic mail delivery functions. The SMTP virtual server is automatically configured with default settings that enable it to accept local client computer connections and to process messages. You can either accept the default settings or change the SMTP virtual server configuration. You can configure the SMTP virtual server to meet your messaging requirements; this article describes basic configuration and security settings that you may want to consider.

This section includes the following topics:
 * How to assign an Internet Protocol (IP) address.
 * How to configure the default domain.
 * How to enable transaction logging.
 * How to set relay restrictions.
 * How to set up a smart host.

back to the top

How to Assign an IP Address
To assign an IP address to your SMTP virtual server, follow these steps: <ol> Click Start, point to Programs, point to Administrative Tools, and then click Internet Services Manager.

Alternatively, start the IIS snap-in.</li> Right-click Default SMTP Virtual Server, and then click Properties.</li> Click the General tab. <ul> If you want the SMTP virtual server to respond to connection requests for all IP addresses that are configured on the computer, click (All Unassigned). This is the default setting.</li> If you want to assign a specific IP address to the SMTP virtual server, click the IP address that you want to use in the IP address box.</li> If you want to assign additional IP addresses to the virtual server, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Advanced, and then click Add.</li> Specify the IP address and the Transmission Control Protocol (TCP) port number.

NOTE: The default TCP port is 25.</li> <li>Click OK, and then click OK.</li></ol> </li></ul> </li> <li>Click OK.</li></ol>

back to the top

How to Configure the Default Domain
SMTP virtual servers must have one local default domain. The default domain is used to stamp messages from addresses that do not contain a domain. By default, the name that you specify on the Network Identification tab of the System tool in Control Panel is used as the default domain name.

All incoming mail messages that are designated for the default domain are placed in the Drop folder. By default, the Drop folder is located in the Inetpub\Mailroot folder.

To change the location of the Drop folder, follow these steps:
 * 1) Click Start, point to Programs, point to Administrative Tools, and then click Internet Services Manager.

Alternatively, start the IIS snap-in.
 * 1) Double-click Default SMTP Virtual Server, and then click Domains.
 * 2) Right-click the default domain, and then click Properties.
 * 3) Click Browse, locate a folder that you want to use for your Drop folder, and then click OK.

NOTE: You must place the Drop folder in a folder on the local computer on which Microsoft SMTP Service is installed.
 * 1) Click OK.

back to the top

How to Enable Transaction Logging
Log files keep a record of all of the messages that are received and sent on your computer. To turn on logging, follow these steps:
 * 1) Click Start, point to Programs, point to Administrative Tools, and then click Internet Services Manager.

Alternatively, start the IIS snap-in.
 * 1) Right-click Default SMTP Virtual Server, and then click Properties.
 * 2) Click the General tab.
 * 3) Click to select the Enable logging check box.
 * 4) In the Active log format box, click the log format in which you want to record information. The default log format is W3C Extended Log File Format.
 * 5) Click Properties.
 * 6) Specify the settings that you want to use. You can specify settings to include log time period and the location and the name of the log file.
 * 7) Click OK, and then click OK.

back to the top

How to Set Relay Restrictions
By default, all computers are denied relay access. Microsoft SMTP Service does not allow computers to relay unwanted mail through the virtual server. Also, all computers are denied relay access except those that meet the authentication requirements that are specified in the Authentication box on the Access tab, by default. If your virtual server is on the Internet, it is not recommended that you grant relay access. If you do so, unsolicited mail may be propagated.

To grant or deny permissions to relay messages through the SMTP virtual server, follow these steps:
 * 1) Click Start, point to Programs, point to Administrative Tools, and then click Internet Services Manager.

Alternatively, start the IIS snap-in.
 * 1) Right-click Default SMTP Virtual Server, and then click Properties.
 * 2) Click the Access tab.
 * 3) Under Relay restrictions, click Relay.
 * 4) Do one of the following steps:
 * 5) * Click Only the list below.

-or-
 * 1) * Click All except the list below.
 * 2) Click Add.
 * 3) Click the settings that you want to use, add the computers, the group of computers, or the domain that you want to specify as exceptions to the access setting that you selected in step 6, and then click OK three times.

back to the top

How to Set Up a Smart Host
If you want to designate another SMTP server to handle all outgoing messages, you can set up a smart host to perform this task. After you set up the smart host, all outgoing messages that are designated for remote domains are routed through it.

To configure a smart host, follow these steps:
 * 1) Click Start, point to Programs, point to Administrative Tools, and then click Internet Services Manager.

Alternatively, start the IIS snap-in.
 * 1) Right-click Default SMTP Virtual Server, and then click Properties.
 * 2) Click the Delivery tab, and then click Advanced.
 * 3) In the Smart host box, type either the fully qualified domain name (FQDN) or the IP address of the smart host server.

If you type an IP address, enclose the address in brackets (for example, [192.168.188.228] ). When you do so, you can increase performance because Microsoft SMTP Service does not perform name resolution.
 * 1) If you want Microsoft SMTP Service to attempt to deliver the remote messages directly before it forwards them to the smart host, click to select the Attempt to direct delivery before sending to smart host check box. By default, this check box is not selected.
 * 2) Click OK, and then click OK.

back to the top

Troubleshooting
Issue: Messages are not sent to the Drop folder.

This issue can occur because of either of the following conditions: <ul> <li>The path to the Drop folder is incorrect.

To troubleshoot this issue, follow these steps: <ol> <li>Click Start, point to Programs, point to Administrative Tools, and then click Internet Services Manager.

Alternatively, start the IIS snap-in.</li> <li>Double-click Default SMTP Virtual Server, and then click Domains.</li> <li>Right-click the default domain, and then click Properties.</li> <li>In the Drop directory box, verify that the path to the Drop folder is valid.</li></ol> </li> <li>Either the Drop folder or the hard disk in which the Drop folder is located is full.

To troubleshoot this issue, free hard disk space in either the Drop folder or on the hard disk in which the Drop folder is located.For additional information about how to troubleshoot Microsoft SMTP Service, click the article number below to view the article in the Microsoft Knowledge Base:

297954 HOW TO: Troubleshoot the Web Server in Windows 2000

For additional information about how to test Microsoft SMTP Service, click the article number below to view the article in the Microsoft Knowledge Base:

286421 HOWTO: Test Windows 2000 IIS SMTP Services Manually

</li></ul>

back to the top