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.

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 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 Forrester.
[ninja_form id=2]

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
    Tech Zone

    Making the most out of your ZNetLive Self-Service Customer Panel

    9 Mins read
    At ZNetLive, we understand that customer service is not just a department but a philosophy that permeates every aspect of our business….
    Tech Zone

    HubSpot vs. Salesforce: Which is right for you in 2023?

    7 Mins read
    33% of consumers would consider switching companies immediately after poor customer service.* -American Express In the modern world, while price and product…
    Tech Zone

    What is Multicloud? Benefits and Limitations

    5 Mins read
    You must have heard the saying, “Two heads are better than one.” Numerous businesses have realized that this idea applies to the…