How to Create a Free Email Server on Windows Server 2022 With MailEnableMailEnable is a free (standard edition) and robust email server solution for Windows platforms, offering a comprehensive suite of mail services.

It supports various protocols such as SMTP, POP3, IMAP, and webmail, making it an ideal choice for small to big businesses.

This article will guide you through the process of installing MailEnable on a Windows Server 2022 system, ensuring that you have a functional mail server to handle your organization’s email needs or even your personal.

This is the first project I have made for Windows Server. So, without further adieu let’s start!


Before you begin the installation of MailEnable, ensure that your system meets the following requirements:

  1. Open Port 25 VPS: Get a Contabo VPS running Windows Server Datacenter 2022 because they don’t block port 25.
  2. Windows Server 2022: A fresh or existing installation of Windows Server 2022.
  3. System Requirements: Ensure your server meets the minimum requirements for running MailEnable. Have at least 1vCore, 4GB RAM, and 10GB Disk space. Contabo meets these requirements.
  4. Domain: I can vouch for Namecheap for affordability and security.

How to Create a Free Mail Server on Windows Server 2022 With MailEnable

Step 1: Get a Windows VPS on Contabo

I’ve laid out the steps here on how to setup a Windows VPS on Contabo. Be sure to follow it.

Contabo Windows VPS

You should be able to connect to your Windows VPS by now.

Step 2. Get a Domain

Go to Namecheap and buy a domain. Avoid top-level domains like .work .date .top .fun .life .review .xyz .bid .stream .site .space .gdn .click .pro.

Instead get .com .net .io .org top-level domains.

Register Domain on Namecheap

Step 3: Download MailEnable

  1. Visit the MailEnable website.
  2. Navigate to the ‘Download‘ section.
  3. Choose the appropriate version (Standard, Professional, or Enterprise) and download the installer. The Standard Edition is free.

Step 4: Set Hostname

By now you are already connected to your Windows VPS.

If you are plainly using your Windows VPS as a mail server, you will need to set a hostname. To do that, click the folder on the taskbar and choose This PC. Then right-click on the empty space and choose Properties.

Hostname MailEnable

Click Rename this PC and name your PC to mail.

Rename PC MailEnable Windows 2022

Finally, restart your Windows server.

Step 5: Install Microsoft IIS and Microsoft .NET Framework 3.5 or later

We need to install MailEnable prerequisite services first to enable it to work properly.

Click on the Start menu > select Server Manager.

In the Server Manager dashboard, click on Add roles and features. This will launch the Add Roles and Features Wizard.

Add Roles and Features

Click Next on the Before You Begin page.

Choose Role-based or feature-based installation and click Next.

Select Installation Type

Select the server where you want to install IIS (usually the local server is selected by default) and click Next.

Select a Server Pool

Scroll down and check the box next to Web Server (IIS).

A pop-up will appear asking to add required features. Click Add Features. Click Next.

Select Server Roles

Check the box next to .NET Framework 4.8.

Select Features

Click Next on the Web Server Role (IIS) page.

Select Role Services.

The default settings are usually sufficient. Ensure that the basic services you need are selected.

Click Next.

Select Role Services

Review your selections and click Install.

The installation process will begin. Wait for it to complete.

Confirm Installation Selections

Once the installation is complete, click Close. Restart your server.

Once the installation is complete, click Close.

Step 6: Run the Installer

Locate the downloaded installer file and double-click to run it.

Follow the on-screen instructions to begin the installation process.

Enter Your Name and Company Name

Select components. Be sure to choose the three options.

Select Components

Select a destination folder. The default location is Program Files.

Select a destination folder

Get Postoffice details. You should enter your domain and assign a password.

Get Postoffice Details

MailEnable needs a file storage to store email messages. Just choose the default location.

Store email MailEnable

Enter your domain. Just use the default DNS and use port 25.

SMTP Connector Configuration

Start the installation by clicking Next.

You will be prompted to select a web server. Just choose the default and click Next.

Select Webmail Web Root

MailEnable setup is now setting account credentials for services

MailEnable Installation is Finished

Step 7: Configuring MailEnable

After installation, you need to configure MailEnable to start handling emails.

Open MailEnable Management Console: Find this in the Start menu and search MailEnable.

MailEnable Admin

First, we need to enable integrated authentication.

Right-click Messaging Manager > Properties. Select the Security tab and check Enable Integrated Authentication.

Click Apply.

Enable Integrated Authentication

Next, select your domain and click Properties on the right side of the menu.

Check Use Integrated Authentication and Automatically create mailbox if successful login and one doesn’t exist.

Domain Properties

Next, we will create a self-signed certificate so that we can use authentication on our inbound and outbound connections.

In the Start menu, search for IIS.


Choose the localhost and double click Server Certificates.

Issue Self-Signed Certificate in IIS Windows Server

We will issue a Self-Signed certificate for our local host.

Click Create Self-Signed Certificate and specify a certificate name. Then click OK.

Create Self-Signed Certificate

Now that we have created a self-signed certificate, we will use it on our servers.

In MailEnable, go to Servers > localhost > on the right menu choose Properties > SSL. Then check the box and click Apply and OK.

Enable SSL Certificate to Use on Localhost MailEnable

We will now configure SMTP and IMAP services so that we can send and receive email messages.

Go to Services > localhost > Services and Connectors > SMTP.

Click Properties on the right menu and select the General tab.

Set the Local domain with your own domain and default mail domain to mail. Then click Apply. The SMTP services will restart.

Mark all checkboxes under Authentication/Security Types.

SMTP Properties General MailEnable

Next, go to the Inbound tab > Port Settings > Settings.

You can choose to have port 25 without authentication, but in this tutorial, we will be using Ports 465 and 587. Follow the settings I’ve made on the image below.

Click OK and Apply changes. The SMTP services will restart.

SMTP Port Settings MailEnable

On the Outbound Tab, select your IP address under Outbound IP Binding.

SMTP Properties Outbound IP Binding

Go to the Advanced SMTP tab.

Under Inbound Authentication, select Require authentication for all connections.

SMTP Properties Inbound Authentication

Next, we will configure our IMAP.

Go to Services > localhost >Services and Connectors > IMAP.

Check the box Also listen on the alternate port and set it to 993 and check the Require SSL checkbox.

IMAP Properties MailEnable

Next, on the Settings tab, mark all checkboxes under the Security option.

IMAP Properties MailEnable Settings

Click OK and Apply changes. The IMAP services will restart.

Now our SMTP and IMAP settings are configured, we will add mailboxes.

Expand Messaging Manager > Post Offices > Your Domain > Mailboxes and click New Mailbox.

Create New Mailbox MailEnable

I’d like to restart my server after this part for the mail domain to take effect.

Step 8. Map DNS Records and Reverse DNS

Now our MailEnable is set, we need to map our DNS

Create a free account on Cloudflare.

Login to your Namecheap and set the custom DNS to Cloudflare’s nameservers.

Cloudflare Nameservers

Set the A, MX, SPF, DKIM and DMARC records.

For A, CNAME, and MX records:

Type Name Content/Value
A @ yourServerIP
A mail yourServerIP
CNAME autoconfig
CNAME autodiscover
MX @ priority 10

For SPF, DKIM, and DMARC records:

SPF Record

Be sure to replace your IPv6 and IPv4 with our own IPs.

  • Type: TXT Record
  • Host: @
  • Value: v=spf1 a mx ip6:2a01:7a7:2:3343::f67:30f7 ip4: -all
  • TTL: Automatic

DMARC Record

We will use the following records.

  • Type: TXT Record
  • Name: _dmarc
  • Value: v=DMARC1; p=quarantine; adkim=r; aspf=r; pct=100
  • TTL: Automatic

DKIM Record

For our DKIM record, we will generate one on MailEnable.

Generate DKIM MailEnable

Check the Sign outgoing messages.

Create a New selector. You can name it like dkim or something similar. I’d like to add t=s tag in the DKIM.

DKIM Settings MailEnable Webshanks

Let’s take a look at our DNS management.

DNS management for webshanks MailEnable
This is what your DNS records look like.

Our final step in our mapping is the reverse DNS.

Head to your Contabo VPS control panel and go to Reverse DNS management.

Set it to

RDNS Management Contabo MailEnable

Step 9: Test our Email

For us to send an email, we will be using an email client. Plug the SMTP/IMAP relays and we are good to go!

I’m using Thunderbird to send and receive emails.

SMTP and IMAP Relay MailEnable

Now let’s send a test email to Gmail and Proton Mail to see if we can receive it. We’ll also send an email to Mail-Tester to see our results.

Testing Email MailEnable

Let’s see the results.

MailEnable Mail Tester Result 10 over 10 by Web Shanks
10/10 Score in Mail-Tester!
MailEnable Email Test to Gmail
We received the email directly to Gmail inbox!
MailEnable Email Test to Proton Mail
As well as to Proton Mail.

Hurrah we can now send emails!

Let’s try to send an email to the hard-to-get AOL Mail.

MailEnable Received Directly to Inbox in AOL Mail - Setup by Webshanks

Surprisingly, we received the mail directly to our inbox!

I’ve also sent this to my personal AOL Mail and it went right through the inbox. It’s not a coincidence!


What versions of Windows Server does MailEnable support?

MailEnable supports all recent versions of Windows Server, including Windows Server 2022. For more information about their system requirements go here.

Can MailEnable handle large volumes of emails?

Yes, MailEnable is designed to handle large volumes of emails efficiently, especially the Professional and Enterprise editions.

Is there a webmail interface available with MailEnable?

Yes, MailEnable includes a webmail interface that can be accessed via a web browser, providing users with the ability to send and receive emails without needing a local email client.

How do I secure my MailEnable server?

Securing your MailEnable server involves configuring SSL/TLS for encrypted communications, setting up SPF, DKIM, and DMARC records, and regularly updating the server and MailEnable software to patch any vulnerabilities.


Installing and configuring MailEnable on Windows Server 2022 is quite challenging if you are new to Windows Server and MailEnable. But you can follow my step-by-step guide to setup your own MailEnable mail server on a Windows Server.

If you find my tutorial useful, you can buy me a coffee.

You can also check out my Linux-based email servers like Docker Mailserver, aaPanel, mailcow, CyberPanel, or iRedmail.

For further assistance, refer to the MailEnable Documentation or seek support from the MailEnable community.

Leave a Reply

Your email address will not be published. Required fields are marked *