Thursday, June 5, 2008

SMTP Service Not Installed - Setting up Incoming Email

I'm in the middle of my very first server configuration and while setting up Incoming Email I got an error stating I did not have the SMTP service installed. I seem to be coming across a lot of these little errors which are making me aware of all the details I did not cover before starting. This particular error was not major and took 10 minutes to resolve, however I just wonder what else is out there that I might be missing as well. I guess my words of advice here are to read all installation requirements for both the back end server and front end server before installing. In case you are wondering, here is the fix for the SMTP error.

SMTP Server Setup (IIS 6.0)
The Simple Mail Transfer Protocol (SMTP) service provided by IIS is a simple component for delivering outgoing e-mail messages. Delivery of a message is initiated by transferring the message to a designated SMTP server. Based on the domain name of the recipient e-mail address, the SMTP server initiates communications with a Domain Name System (DNS) server, which looks up and then returns the host name of the destination SMTP server for that domain.
Next, the originating SMTP server communicates with the destination SMTP server directly through Transmission Control Protocol/Internet Protocol (TCP/IP) on port 25. If the user name of the recipient e-mail address matches one of the authorized user accounts on the destination server, the original e-mail message is transferred to that server, waiting for the recipient to pick up the message through a client program.

In the case where the originating SMTP server cannot communicate directly with the destination server, the SMTP service can transfer messages through one or more intermediate relay SMTP servers. A relay server receives the original message and then delivers it to the destination server, or redirects it to another relay server. This process is repeated until the message is delivered or a designated timeout period passes.

The SMTP service is not installed by default. You must install the SMTP service using the Control Panel. Installing the SMTP service creates a default SMTP configuration which you can then customize to your needs using IIS Manager.

Many articles about deploying and configuring the SMTP service are available by searching for "smtp" on the Microsoft Developer Network (MSDN) Web site.

Procedures To install the SMTP service
1.From the Start menu, click Control Panel.
2.Double-click Add or Remove Programs.
3.From the left pane, click Add/Remove Windows Components.
4.From the Components list, click Application Server, and then click Details.
5.From the Subcomponents of Application Server list, click Internet Information Services (IIS), and then click Details.
6.From the Subcomponents of Internet Information Services (IIS) list, select the SMTP Service check box.
7.Click OK.
8.Click Next. You might be prompted for the Windows Server 2003 family CD or the network install path.
9.Click Finish.

When you install the SMTP service, a default SMTP server configuration is created with a message store in LocalDrive:\Inetpub\Mailroot.
When setting up the SMTP service for the first time, you can configure global settings for a SMTP virtual server, as well as settings for individual components of the virtual server.

Important
You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

2 comments:

Unknown said...

Hey Jen, nice blog and thanks for the article! My server is running the SMTP service already. In fact, it is a 2003 SBS running Exchange. Whenver I go to configure the incoming mail settings in my Sharepoint 3.0 site, I get this same error. Any ideas? Thanks, Bryan

Jen said...

Incoming email can be tricky, first double check the service is running and restart it. Then retry and go through your ULS logs to get more detailed info, turn on Verbose logging first. That should point you in the right direction.