How to Install and Configure SMTP Server on Windows (2024)

Introduction

SMTP (Simple Mail Transfer Protocol) is a service that enables email exchange on the Internet and within a local network. To achieve that, SMTP interacts with the Mail Transfer Agent (MTA) and ensures the messages reach the intended recipients.

Mail servers and other message transfer agents usually use SMTP to send and receive email messages.

In this tutorial, you will learn to install and configure the SMTP server on Windows.

How to Install and Configure SMTP Server on Windows (1)

Prerequisites

  • A Windows Server operating system.
  • A user account with administrator privileges.

Note: Client operating systems like Windows 11, Windows 10, and Windows 8, do not have SMTP Server capabilities. Windows Server operating systems provide an SMTP server as part of the Internet Information Services (IIS). The client operating systems only provide the SMTP email client, which is not an SMTP server.

Install SMTP on Windows

SMTP installation is a straightforward process on Windows Server operating systems. Use the Server Manager management console and follow the steps below to install SMTP.

Step 1: Add Roles and Features in Server Manager Dashboard

Open the Server Manager management console and selectDashboardin the left pane.

How to Install and Configure SMTP Server on Windows (2)

From the Dashboard, select theAdd roles and features option to start the wizard and install the SMTP server.

The Before You Begin screen appears, stating that the prerequisites for adding a role are:

  • Having a strong password on the Administrator account.
  • Configured network settings on the server.
  • That you have installed the latest security updates.

If all the prerequisites are met, click Next to continue the installation.

How to Install and Configure SMTP Server on Windows (3)

Step 2: Select Installation Type

In the Installation type window, selectRole-based or feature-based installation. Click Next to continue.

How to Install and Configure SMTP Server on Windows (4)

Step 3: Select Destination Server

Choose the Select a server from the server pool option and pick the desired server from the Server Pool to set the destination server. TheServer Poollists the servers you have added using theAdd Serveroption inServer Manager. By default, the local server is selected.

Click Next to move on to the next step.

How to Install and Configure SMTP Server on Windows (5)

Step 4: Select Server Role

The Select server roles screen allows you to select which features and roles to install. Keep the default selection and click Next.

How to Install and Configure SMTP Server on Windows (6)

Step 5: Select Features

The next step is to select which features to install. Scroll through the list to find and select SMTP Server. Click Next to proceed.

How to Install and Configure SMTP Server on Windows (7)

Step 6: Install Missing Features

If the Remote Server Administration Tools and Web Server roles have not been previously installed, the wizard prompts you to install them. Check the Include management tools option and clickAdd Features to install them:

How to Install and Configure SMTP Server on Windows (8)

Install Web Server Role

The wizard displays an information screen about the Web Server Role (IIS). Click Next to install the role.

How to Install and Configure SMTP Server on Windows (9)

Install Role Services

Check all the services you want to install for the Web Server role. The default options are preselected.

How to Install and Configure SMTP Server on Windows (10)

Click Next to proceed to the final step when you finish selecting the services.

Step 7: Confirm Installation

The wizard displays a confirmation window with a summary of all the roles, services, and features about to be installed. Make sure that theRestart the destination server automatically if required option is checked and clickInstall to finish the installation.

How to Install and Configure SMTP Server on Windows (11)

When the installation completes, click Close to exit the installation wizard.

Configure SMTP on Windows

Configure the SMTP server using the Internet Information Services (IIS) Manager 6.0. Follow the steps in the chapters below.

Step 1: Open IIS 6.0

Open the IIS Manager 6.0 from the Server Manager dashboard.

Select the Tools option, and locate Internet Information Services (IIS) 6.0 Manager from the dropdown menu:

How to Install and Configure SMTP Server on Windows (12)

Step 2: Configure SMTP Virtual Server

In IIS Manager 6.0, expand the computer name and right-click[SMTP Virtual Server #1].

Select Properties from the dropdown menu.

How to Install and Configure SMTP Server on Windows (13)

Step 3: Configure Relay

The relay options allow you to relay emails through the SMTP virtual server.

Configure Server Access

1. In [SMTP Virtual Server #1] properties, click theAccesstab and select theRelaybutton:

How to Install and Configure SMTP Server on Windows (14)

2. Selectthe Add… option to set which computer is allowed to relay emails through the SMTP server.

How to Install and Configure SMTP Server on Windows (15)

Select theSingle Computer option and enter127.0.0.1 to allow the localhost to relay emails through the SMTP server. You can also specify a group of computers using the Group of computers option.

ClickOK to confirm the changes.

How to Install and Configure SMTP Server on Windows (16)

Step 4: Configure Security Options

The Delivery tab of [SMTP Virtual Server #1] properties contains different settings related to the intervals of retrying to send outbound emails after a failed delivery, and different security options.

To configure the security options, clickOutbound Security.

How to Install and Configure SMTP Server on Windows (17)

The pop-up window allows you to choose one of four options for securing your SMTP server:

  • Anonymous access. Disables SMTP server authentication since it doesn't require an account name or password.
  • Basic authentication. Used when sending emails to a personal or exchange account. This option passes the account name and password as clear text, so make sure to use TLS encryption if you select this option.
  • Integrated Windows Authentication. Uses the Windows domain account name and password for authentication.
  • TLS encryption. Use TLS to secure the connection. This option requires you to install a valid SSL certificate on the server.
How to Install and Configure SMTP Server on Windows (18)

Note: Test core SMTP functionality with a personal e-mail or Exchange account by selecting Anonymous access. SMTP uses the AUTH command with Basic authentication, which can cause some e-mail providers to fail.

Step 5: Restart SMTP Server

Restart the SMTP Server to apply the changes. Right-click[SMTP Virtual Server #1], selectStop, and then selectStart.

How to Install and Configure SMTP Server on Windows (19)

Test SMTP Server

Test the SMTP server configuration by sending an email message using the SMTP server. One of the ways to do that is to use telnet. Follow the steps below:

1. Press the Windows key and search for PowerShell.

2. Run the PowerShell app as Administrator.

3. Run the following command:

telnet localhost 25

4. Start the communication with the server by running:

EHLO server

5. Enter the email address you will use to send the email. The syntax is:

MAIL FROM: [sender_email_address@domain.com]

6. Enter the recipient email address. The syntax is:

RCPT TO: [recipient_email_address@domain.com]

7. Inform the SMTP Server you are ready to send the message by entering:

DATA

8. Enter the email subject:

Subject: Test Message

9. Press Enter twice to move on to the email body. Type in the message body and press Enter to finish.

10. Send the email by entering a period (.) and pressing Enter.

How to Install and Configure SMTP Server on Windows (20)

Check the recipient's inbox to see if the email was delivered. If not, the message may still be in the SMTP Queue directory (C:\inetpub\mailroot\Queue).

Conclusion

This tutorial showed how to install and configure the SMTP server on Windows Server operating systems. An SMTP server allows you to exchange emails using the MTA, making it a great solution when you want to set up your own mail server.

Next, learn how to set up Postfix to use an external SMTP server, or learn to use the mail command in Linux.

How to Install and Configure SMTP Server on Windows (2024)
Top Articles
Latest Posts
Article information

Author: Pres. Lawanda Wiegand

Last Updated:

Views: 5894

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Pres. Lawanda Wiegand

Birthday: 1993-01-10

Address: Suite 391 6963 Ullrich Shore, Bellefort, WI 01350-7893

Phone: +6806610432415

Job: Dynamic Manufacturing Assistant

Hobby: amateur radio, Taekwondo, Wood carving, Parkour, Skateboarding, Running, Rafting

Introduction: My name is Pres. Lawanda Wiegand, I am a inquisitive, helpful, glamorous, cheerful, open, clever, innocent person who loves writing and wants to share my knowledge and understanding with you.