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
On the "Start" menu, click "Control Panel", double-click "Add/delete programs", and then click "Add/delete Windows Components ".
In the components list, click application server, and then click details ".
In the Application Server sub-components list, Click Internet Information Service (IIS), and then click details ".
In the "Internet Information Service (IIS) sub-components" list, select the "SMTP Service" check box and click "OK ".
Click "Next ". If the system prompts you to insert a Windows CD or enter the network installation path, follow the instructions.
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 ).
Important: |
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
Click "run" on the "Start" menu ".
In the open box, type inetmgr and click OK ".
Start IIS manager from the Management Service Console
Click "run" on the "Start" menu ". In the "run" text box, type "Control Panel" and click "OK ".
In the control panel window, click Administrative Tools ".
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 ".