Configure SMTP Virtual Server

Source: Internet
Author: User
Document directory
  • Install the SMTP service on IIS 6.0
  • Start IIS manager from the "run" dialog box
  • Start IIS manager from the Management Service Console
  • Default settings
ASP. NET Configuration

To send emails from ASP. NET web applications, you must install and configure the Simple Mail Transfer Protocol (SMTP) Service for Internet Information Service (IIS) on the server. The iis smtp service is a simple component used to forward emails to the SMTP server for transmission.

Install the SMTP service

By default, the SMTP service is not installed with IIS. You must use the "control panel" to install the SMTP service. After the SMTP service is installed, a default SMTP configuration is created. You can then use the IIS manager to customize the configuration.

Install the SMTP service on IIS 6.0
  1. On the "Start" menu, click "Control Panel", double-click "Add/delete programs", and then click "Add/delete Windows Components ".

  2. In the components list, click application server, and then click details ".

  3. In the Application Server sub-components list, Click Internet Information Service (IIS), and then click details ".

  4. In the "Internet Information Service (IIS) sub-components" list, select the "SMTP Service" check box and click "OK ".

  5. Click "Next ". If the system prompts you to insert a Windows CD or enter the network installation path, follow the instructions.

  6. Click Finish ".

When you install the SMTP service, a default SMTP server configuration with a message storage zone will be created in C: "inetpub" mailroot.

When setting the SMTP service, you can configure global settings for the SMTP service or individual components of the virtual server. The iis smtp service is only a relay proxy. The email will be forwarded to the SMTP server for transmission.

Configure SMTP Virtual Computer

After the SMTP service is installed, a new node is created in IIS manager. To configure the SMTP virtual server, you must start the IIS manager. For more information, see the topic "SMTP administration" (SMTP management) in the "IIS operations Guide" (IIS operation guide ).


To perform one or more of the following procedures, you must log on as a member of the Administrators group on the local computer, or you must have been granted the appropriate permissions.

Start IIS manager from the "run" dialog box
  1. Click "run" on the "Start" menu ".

  2. In the open box, type inetmgr and click OK ".

Start IIS manager from the Management Service Console
  1. Click "run" on the "Start" menu ". In the "run" text box, type "Control Panel" and click "OK ".

  2. In the control panel window, click Administrative Tools ".

  3. In the Administrative Tools window, click Internet Information Service ".

Default settings

The default SMTP virtual server has the following default settings. If you create a new virtual server, you can use the "new virtual server wizard" to configure the default settings.

  • Name: the name of the virtual server that appears in the IIS manager. You can change the virtual server name in IIS manager. Right-click the virtual server and click "RENAME ".

  • "IP Address/tcp port": the IP address is not allocated, and the TCP port is 25. You can select "general" in the "SMTP virtual server properties" dialog box
    To change the settings. If you change this setting, you must specify a combination of IP addresses and TCP ports that are not used by other SMTP virtual servers. TCP port 25
    Is the default TCP port and the recommended TCP port. Multiple virtual servers can use the same TCP port, but different IP addresses must be configured for them.
    Address. If you do not set a unique combination of IP addresses and TCP ports, the SMTP virtual server will not start.

Default domain: the domain name listed on the "computer name" tab in "System Properties. The default domain is used to stamp messages from addresses without domain names. An SMTP virtual server can have only one default domain and cannot delete it. To change the default domain name in IIS manager, double-click the virtual server and then double-click "domain ". Right-click the local (or default) domain and click "RENAME ".

  • Main Directory: C: "inetpub" mailroot. The main directory is the root directory of your SMTP content directory and must be the local directory of the computer running the SMTP service.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.