Tech Zone

Step by step tutorial on how to configure SMTP server in Windows server 2019

2 Mins read

Simple Mail Transfer Protocol (SMTP) is an internet standard for transmission of electronic emails. SMTP services are used to send and receive emails in a secure manner. It’s an email solution if you are sending mails using any script from your website.

Setting up your own SMTP server on Windows Server 2019 means you have full control over email sending without relying on external services.

Here is a step by step guide to install and configure SMTP services on Windows Server 2019. SMTP by default uses TCP port 25.

Let’s start with the configuration steps of SMTP Service on Windows Server 2019

Installation of SMTP Service

  1. Open the Server Manager Dashboard. Click on ‘Manage’, then ‘Add Role & Features’.
  2. Click on ‘Next’ after this.
  3. Select ‘Role-based or feature-based installation’, then click ‘Next’.
  4. Select a server from the server pool.
  5. Click on ‘Next’ after selecting the role the server would play.
  6. Select ‘Features’. Next scroll down the list and select the ‘SMTP Server’ feature. Then click on Next.
  7. A new window appears to inform you that some other services can also be installed. Click “Add Features” to confirm and continue.
  8. Click on ‘Next’ to continue.
  9. Click on ‘Install’ to complete the installation.
  10. Once the installation has been completed, click on ‘Close’. Close button will appear after complete installation.

Configuration of SMTP Services

  1. Launch the Internet Information Services (IIS) 6.0 Manager.
  2. Right-click on ‘SMTP Virtual Server #1’ and select ‘Properties’.


  3. Tap the General tab and change the IP Address to the server’s IP address.
  4. Then tap the ‘Access’ tab and click on the ‘Connection’ button.
  5. In the Connection window, select ‘Only the list below’ and click on the ‘Add’ button.
  6. Select the ‘Single computer’ option. To use the internal SMTP, type the IP address, add ‘Group of computers’ or ‘Domain’ of the devices permitted, and then click on the ‘OK’ button.
  7. In the ‘Access’ tab of the Connection window, click on the ‘Relay’ button to add the same permitted devices to the Relay restrictions’ list.
  8. In the ‘Delivery’ tab of the Connection window, set an external domain.
  9. Go to ‘Run’ and type wf.msc. This will launch the Windows Firewall with Advanced Security console.
  10. To begin the wizard, right-click on ‘Inbound Rules’ and select ‘New Rule’.
  11. Select ‘Port’ and click on ‘Next’.
  12. Set the local port to 25 and click on ‘Next’.
  13. Select ‘Allow the connection’ and click on ‘Next’.
  14. Uncheck ‘Public’ (Ignore if you want to access the services from outside) to prevent external access to the server. Click on ‘Next’.
  15. Give the rule a name, and click on ‘Finish’.
  16. You can now see a new rule enabled in the firewall management console.
  17. Go to ‘Run’ and type wf.msc.
  18. Here you can see that SMTP services are running.
  19. Now you can deliver the mails with your windows server 2019 email server as per your convenience.

Also, you can configure the SMTP server in Linux too. To know how to do it, read the blog – A step by step guide on how to configure SMTP server in Linux”.

No matter which web hosting service – Windows/Linux, you have for your business, if you are not looking for a mail server and just want to send emails through contact-us form, then you can send mails from your server with the above configuration.

“Before the Acronis implementation, there was a huge risk that malware could take down our company. Now, with Acronis, I can say that we’ve done everything possible to protect our data from an attack.” CIO, high performance manufacturing company.
Read details in a report by IDC.

Hope this article helps you in setting up SMTP server on Windows 2019 easily. Feel free to drop any queries in the section below.

Update: This post has been edited for latest information on 6th Jan, 2023.

Services ZNetLive offers:

Domain Name Search

Buy Shared Hosting

Managed WordPress Hosting Plans

Buy VPS Hosting

Dedicated Server Rental

6 posts

About author
Umesh, Team Lead - Technical, is a Microsoft products’ expert with enviable certifications like RHCE, MCPS, MCSA and MCSE. An excellent team player, he utilizes his expertise of over 7 years in the technical sphere to handle technical issues brilliantly and dedicatedly value adds to the system administration and management fields. He can be seen drawing or playing chess in free time.
Related posts
Cloud HostingTech Zone

What is Akamai Connected Cloud? Explained in Detail.

4 Mins read
In recent years, cloud computing has grown significantly, becoming a key component of the infrastructure for modern business and technology initiatives. Its…
Cloud HostingNetwork-as-a-ServiceTech Zone

The role of networking in cloud computing

4 Mins read
Cloud computing has completely revolutionized the way modern businesses operate – by offering agile, scalable, and cost-effective access to resources on demand….
Tech Zone

Top 5 electronic signature apps to sign documents online in 2024

5 Mins read
In a world where everything from your memories to your money can be digitized, it is no surprise that electronic signatures are…