//
you're reading...
IT-Center, Networking

Install Mail Server/SMTP Server Windows Server 2003

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”.

To configure global SMTP settings

1. In IIS Manager, expand the local computer, right-click Default SMTP Virtual Server, and click Properties.
2. Change the default settings on the property pages as needed. For information about individual settings, click Help.

To configure SMTP virtual server components settings

1. In IIS Manager, expand the local computer, expand Default SMTP Virtual Server, right-click the component you want to configure, and click Properties.
2. Change the default settings on the property pages as needed. For information about individual settings, click Help.

Configure the SMTP Server

Actually, that’s it! It is this simple to configure the POP3 part. But it is not yet working as we want, we have to configure the SMTP part to be able to receive and send emails. Yes, I said receive emails. A common mistake is to think that the POP3 server receives the emails. But that is not true, all the POP3 is doing is ‘pop’ the emails out to the clients. It’s the SMTP server that is communicating with other SMTP servers and receives and sends emails.

  • Open Computer Management
  • Expand Services and Applications, expand Internet Information Service
  • Right click Default SMTP Virtual Server and click Properties
  • Click the Access tab
  • Click the Authentication button and make sure Anonymous Access and Integrated Windows Authentication is enabled.
  • Click the Relay button and make sure Allow all computers which successfully… is enabled and Only the list below is selected.

First of all, Authentication and Relay is not the same thing. We use the Authentication button to specify which authentications methods are allowed for users and other SMTP servers. So enabling Anonymous here is not a security issue, in fact, it’s required if we want our server to be able to receive emails from other servers on Internet (I doubt you want to tell all administrators of email servers on Internet how they should logon to yours). We also need Windows Authentication so the email clients can authenticate to the server and be able to relay (send emails).

As Relay Restrictions we selected Only the list below because we do not want to be used by spammers to send emails. But we never specified any computers. That is valid, because we wants our clients to always use the username and password to authenticate, no matter where they are.

If you want users to only be allowed to relay if they are on a private network, then you can uncheck Windows Authentication as allowed authentication method, and specify the IP range for your network in the Relay Restrictions window.

Is that all? Do we have a working email server now? Well, the answer is yes. But we still haven’t configured the email clients.

Configure the email client

We will use Outlook Express as email client.

  • Start Outlook Express (any computer that is connected to the email server)
  • Click Tools and then Accounts
  • Click the Add button and select Mail

A wizard starts. Use the following table to complete the wizard:

Display name Bob
E-mail address bob@<your domain> (bob@ilopia.com)
Incoming mail server is a POP3
Incoming mail server <your domain> (ilopia.com)
Outgoing mail server <your domain> (ilopia.com)
Account name bob@<your domain> (bob@ilopia.com)
Password bob
Remember Password Checked
SPA Unchecked

Are we finished now? Well, let us try to send an email. Didn’t work, did it? I’m sure you got an error message similar to this one:

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was ‘webmaster@ilopia.com’. Subject ‘Test’, Account: ‘ilopia.com’, Server: ‘ilopia.com’, Protocol: SMTP, Server Response: ‘550 5.7.1 Unable to relay for webmaster@ilopia.com’, Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79

The reason why we got this is written in the error message. ‘Unable to relay for <email address>’. This means that we didn’t get authenticated to the SMTP server. So, let us take a look at the email client’s settings again.

  • Click Tools, then Accounts.
  • Click the correct account and then the Properties button
  • Click the Servers tab
  • In the Outgoing Mail Server section enable My server requires authentication.
  • Click Apply, click OK, click Close
  • Create a new email, and send it
    And hopefully you will receive an email within some minutes (if you sent it to your own email account).

About berbagisolusi

Berbagi merupakan sebuah bentuk simbol keikhlasan untuk membantu dan menolong, sedangkan solusi adalah cara menyelesaikan masalah. Setiap manusia pasti mengalami masalah, tetapi kita tidak perlu mengalami masalah yang sama jika orang lain pernah mengalami dan kita tahu hal tersebut.

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 9 other followers

December 2011
M T W T F S S
« Nov   Jan »
 1234
567891011
12131415161718
19202122232425
262728293031  

Archives

Web Statistic

Blog Stats

  • 149,580 hits
%d bloggers like this: