Sunday, July 13, 2008

Configuring SMTP E-Mail Settings with IIS 7.0

E-mail services are an important part of most Internet, intranet, and extranet server operations. Often, you'll find that applications installed on a server generate e-mail messages that need to be delivered. For this purpose, IIS includes the Simple Mail Transfer Protocol (SMTP) feature so that IIS can deliver e-mail messages for Web applications that use the System.Net.Mail API. The configuration restricts the sending of messages that are generated by remote users, which include the Internet Guest account and any other named user on the Web server. The configuration also restricts relaying of e-mail through SMTP.

SMTP is just one of several components that make up a typical e-mail system. Windows Server 2008 includes the optional SMTP Server feature to provide a more robust solution. However, if you want to receive e-mail and store it on the server so that users and applications can retrieve it, you need to install a full-featured messaging server in the enterprise, such as Microsoft Exchange Server 2007.

You can use the SMTP E-mail feature in two key ways. You can use this feature to deliver e-mail messages generated by applications to a specific SMTP server running on the local system or a remote server. Or you can use this feature to drop e-mail directly into the pickup directory for later processing by an application or for direct processing by an SMTP server running on the local system. Because SMTP servers monitor their pickup directories continuously for new messages, any message placed in this directory is picked up and transferred to a queue directory for further processing and delivery.

E-mail messages have To, Cc, Bcc, and From fields to determine how the message should be handled. To, Cc, and Bcc fields are used to determine where the message should be delivered. The From field indicates the origin of the message. E-mail addresses, such as williams@tech.microsoft.com, have three components:

• An e-mail account, such as Williams

• An at symbol (@), which separates the account name from the domain name

• An e-mail domain, such as tech.microsoft.com

The key component that determines how the server handles messages is the e-mail or service domain. Service domains can be either local or remote. A local service domain is a Domain Name System (DNS) domain that's serviced locally by the server. A remote service domain is a DNS domain that's serviced by another server or mail gateway.

You can deliver e-mail to a locally hosted or remote SMTP server by completing the following steps:

1. In IIS Manager, navigate to the level of the configuration hierarchy you want to manage, and then display the SMTP E-Mail page by double-clicking the SMTP E-Mail feature.

2. On the SMTP E-Mail page, shown in the E-Mail Address text box, type the address you want to use as the default address from which e-mail messages are sent.

3. Select the Deliver E-Mail To SMTP Server option.

4. In the SMTP Server text box, type the fully qualified domain name of the SMTP server, such as mailer5.adatum.com. Or select the Use Localhost check box to set the name of the SMTP server to localhost, allowing System.Net.Mail to send e-mail directly to the SMTP server on the local computer.

5. In the Port text box, type the TCP port number to use to connect to the SMTP server. The standard TCP port for SMTP is 25, so this is the default and recommended setting.

6. The Authentication Settings options allow you to specify the authentication mode and credentials. If your SMTP server does not require authentication, choose Not Required. Otherwise, choose one of the following options:

• Windows Choose this to use the application identity for connecting to the SMTP server.

• Specify Credentials Choose this to specify a user name and password for connecting to the SMTP server. Credentials are sent as clear text across the network. To specify credentials, click Set. Type the user name, type and then confirm the user password, and then click OK.

7. In the Actions pane, click Apply to save your settings.

You can deliver e-mail to a pickup directory by completing the following steps:

1. In IIS Manager, navigate to the level of the configuration hierarchy you want to manage, and then display the SMTP E-Mail page by double-clicking the SMTP E-Mail feature.

2. On the SMTP E-Mail page, in the E-Mail Address text box, type the address you want to use as the default address from which e-mail messages are sent.

3. Select the Store E-Mail In Pickup Directory option, and then click Browse.

4. Use the Browse For Folder dialog box to specify the location of the pickup directory, and then click OK.

5. In the Actions pane, click Apply to save your settings.

Source of Information : Microsoft Press Internet Information Services IIS.7.0 Administrators Pocket Consultant

No comments: