How to Install and Configure SMTP Server on Windows

Introduction

Welcome to this tutorial on how to install and configure an SMTP server on Windows. SMTP (Simple Mail Transfer Protocol) is a protocol used to send and receive emails. It is the most common protocol used for email communication and is supported by almost all email clients. In this tutorial, we will be discussing how to install and configure an SMTP server on Windows. We will be covering the installation of the SMTP server, configuring the server, and testing the server to make sure it is working properly. By the end of this tutorial, you should have a fully functioning SMTP server on your Windows machine. Let’s get started!

How to Install and Configure SMTP Server on Windows

Server 2016

1. Install the SMTP Server Feature

The first step is to install the SMTP Server feature on your Windows Server 2016. To do this, open the Server Manager and click on “Add roles and features”.

On the “Before you begin” page, click “Next”.

On the “Installation Type” page, select “Role-based or feature-based installation” and click “Next”.

On the “Server Selection” page, select the server you want to install the SMTP Server feature on and click “Next”.

On the “Server Roles” page, select “SMTP Server” and click “Next”.

On the “Features” page, click “Next”.

On the “Confirmation” page, click “Install”.

Once the installation is complete, click “Close”.

2. Configure the SMTP Server

Once the SMTP Server feature is installed, you need to configure it. To do this, open the Server Manager and click on “Tools”.

In the Tools menu, select “Internet Information Services (IIS) 6.0 Manager”.

In the IIS 6.0 Manager, expand the “SMTP Virtual Server” node.

Right-click on the “Default SMTP Virtual Server” and select “Properties”.

On the “General” tab, enter the IP address of the server in the “IP address” field.

On the “Access” tab, click the “Relay” button.

On the “Relay Restrictions” tab, select the “Only the list below” option and add the IP addresses of the computers that will be allowed to relay mail through the server.

On the “Delivery” tab, select the “Outbound Security” option and enter the credentials of the user that will be used to authenticate with the SMTP server.

On the “Messages” tab, enter the maximum message size and the maximum number of recipients per message.

Once you have configured the SMTP server, click “OK” to save the changes.

3. Test the SMTP Server

Once the SMTP server is configured, you can test it by sending a test email. To do this, open the command prompt and type the following command:

telnet 25

Once the connection is established, type the following commands to send a test email:

HELO

MAIL FROM:

RCPT TO:

DATA

Subject: Test Email

This is a test email.

.

QUIT

If the email is sent successfully, you will receive a “250 OK” response.

Once you have tested the SMTP server, you can start using it to send emails from your applications.

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 the SMTP server on Windows - a tutorial.

Prerequisites

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 select Dashboard in the left pane.

Opening the server manager dashboard in Windows Server.

From the Dashboard, select the Add 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.

The welcome screen of the Add roles and features wizard.

Step 2: Select Installation Type

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

Selecting the installation type for SMTP server.

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. The Server Pool lists the servers you have added using the Add Server option in Server Manager. By default, the local server is selected.

Click Next to move on to the next step.

Choosing the destination server for SMTP installation.

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.

Selecting which server roles to install.

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.

Selecting the SMTP server feature for installation.

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 click Add Features to install them:

Installing missing features for SMTP.

Install Web Server Role

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

Installing the Web Server role on Windows Server OS.

Install Role Services

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

Selecting which services to install along the Web server role.

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 the Restart the destination server automatically if required option is checked and click Install to finish the installation.

Confirming the installation of SMTP and other required features.

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:

Opening the Internet Information Services 6.0 manager.

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.

Configuring the properties of SMTP virtual server.

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 the Access tab and select the Relay button:

Setting the relay settings for SMTP.

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

Adding a computer to SMTP relay settings.

Select the Single Computer option and enter 127.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.

Click OK to confirm the changes.

Entering the localhost IP address to relay settings.

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, click Outbound Security.

Configuring SMTP security options.

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.
Selecting a security type for SMTP.

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], select Stop, and then select Start.

Restarting the SMTP server in Windows.

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: [[email protected]]

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

RCPT TO: [[email protected]]

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.

Testing the SMTP configuration using Telnet.

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

Setting up an SMTP server on Windows can be a daunting task, but it doesn’t have to be. With the right tools and a few simple steps, you can have your own SMTP server up and running in no time. This guide will walk you through the process of installing and configuring an SMTP server on Windows.

Step 1: Install an SMTP Server

The first step in setting up an SMTP server on Windows is to install an SMTP server. There are several options available, including Microsoft Exchange Server, hMailServer, and Postfix. Each of these servers has its own advantages and disadvantages, so it’s important to research each one before making a decision. Once you’ve chosen an SMTP server, you can download and install it on your Windows machine.

Step 2: Configure the SMTP Server

Once you’ve installed the SMTP server, you’ll need to configure it. This includes setting up the server’s domain name, IP address, and port number. You’ll also need to configure the server’s authentication settings, such as username and password. Additionally, you’ll need to configure the server’s security settings, such as TLS and SSL encryption.

Step 3: Test the SMTP Server

Once you’ve configured the SMTP server, you’ll need to test it to make sure it’s working properly. You can do this by sending a test email from the server to an email address. If the email is received, then the server is working properly. If not, then you’ll need to troubleshoot the issue.

Step 4: Set Up Email Clients

Once you’ve tested the SMTP server, you’ll need to set up email clients to use it. This includes setting up the client’s domain name, IP address, and port number. Additionally, you’ll need to configure the client’s authentication settings, such as username and password. Once you’ve done this, you can start sending and receiving emails from the SMTP server.

Conclusion

Setting up an SMTP server on Windows is a relatively simple process. With the right tools and a few simple steps, you can have your own SMTP server up and running in no time. This guide has walked you through the process of installing and configuring an SMTP server on Windows.

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

Contact
San Vito Al Tagliamento 33078
Pordenone Italy
Item added to cart.
0 items - 0.00
Open chat
Scan the code
Hello 👋
Can we help you?