Do you want to send and receive emails on a Windows server and use the client on a PC, smartphone or tablet to connect? This tutorial describes how to set up your own email server on a Windows system using a static public IP. This tutorial will work with our VPS and dedicated server. hMailServer is a free open source program. It is easy to configure and it is easy to perform with simple steps. Along with the default functions, such as SMTP, POP 3, IMAP, this software can detect spam and add antivirus features such as ClamWin.

Installation

hMailServer requires NET Framework 3.5. Execute it correctly. Therefore, you must add it to Windows before installing hMailServer. To do this, open the Server Administrator. The next steps are slightly different in the different versions of Windows Server. I will explain the use of the Windows Server 2012 example. Click on “Administration” in the upper right corner and select “Add function and function”. In the window that opened, click “Next” four times to leave all the settings intact. Now you can select the functions you need to install. Simply select NET Framework 3.5 as shown in the image. If you press “Next” again, this selection is confirmed and “Installation” begins the installation. When the process has finished, you can close the window and continue installing the email server.

Download the latest software version of this site:

https://www.hmailserver.com/download

Please, do not select the beta version yet, as it may contain errors and vulnerabilities. Once you receive the installation package, you can run it and accept the terms of service.

You must leave the default installation directory and continue with “Next”. Now you can select the products you need for installation. As a full installation is required, check “Server” and “Administrative Tools” and proceed with “Next”. For an easy installation, we recommend that you select “Use built-in database engine” in the next step. In the next window, name it hMailServer and continue. hMailServer requires a password for administrative tasks in the future. Therefore, protect your service and create a password that you want to write down. The last step is to start the installation. It should definitely end.

Configuration of hMailServer

Open the administrator of hMailServer. In the first window, you must enable “Automatically login at startup” and click “Connect”.

In the next window, go to “Domain”, select “Add …” and insert the domain used to send the email

Once the domain has been saved, you can add a new email address to the “Account” menu.

Next time, go to Settings >> Protocol >> SMTP >> Email delivery. Therefore, add the local hostname of the server used to enter the server into another email server. It must be a valid domain and must be resolved in the server’s IP. Therefore, add the A record to the DNS zone as necessary. In addition, you must set the same PTR for the server’s IP address. This can be done in the control panel of the Contabo client. The host name must consist of three parts. In other words, it must be FQDN, it may not contain too many numbers. It may seem like a general one. For example, the name “mail.justanexample.com” would be nice. When finished, save the new configuration.

Firewall configuration

The main configuration is complete. However, it is necessary to open and operate all the email ports used in the firewall. Open the Windows Firewall settings and select [Input Rules]. Click on “New Rule” on the right side. A window opens, you must select “Port” and click “Next”. In the next window, insert ports 25, 110, 143 and 587 as shown in the image.

1713/5000
In the next window, select “Allow connection” and check “Domain”, “Private”, “Public” after “Next”.

In the final window you can enter the name of the new rule. For example, “port of hMailServer”. Complete the configuration and close the firewall configuration.

Now you need to add SPF records to the DNS zone. If there are not many email servers, we will reject the email from the server. So add this TXT record to your area:

TXT “justanexample.com 86400″ v = spf1 ip4: 1.2.3.4 ~ all ”

“Justanexample.com” will be replaced by your domain and 1.2.3.4 will be replaced by your IP.

If it does not already exist, you must add an MX record to the DNS zone. The MX record looks like this.

justanexample.com 86400 in MX 10 “mail.justanexample.com”

The value “mail.justanexample.com” should be replaced by the hostname you choose for your email server.

Your basic email server configuration is now complete. You can send and receive emails as soon as DNS changes are enabled, and you can connect to email clients such as Outlook, Thunderbird, Apple Mail, etc.

Client configuration

Use the following configuration for the email client.

Introduction server:

Protocol: IMAP. Port: 143; Security: none server: server IP or host name

Output server:

Protocol: SMTP; Port: 587; Security: none server: server IP or host name

Security

If you want to optimize server security, such as transport encryption, spam checking, malware protection, see the second tutorial.
Suggest uma edição

Source

LEAVE A REPLY

Please enter your comment!
Please enter your name here