How to Setup hMailServer Email Server (SMTP Server) in Azure/AWS/GCP
To setup and install hMail server in Azure, AWS or GCP simply deploy the hMailServer straight from any of the cloud marketplaces. Fully configured and setup with MySQL and using the latest verion of hMail server. Its the perfect SMTP Server solution. Check the links below to deploy.
Run hMailServer (SMTP Server) in the Cloud
Setup hMailServer on AWS
Setup hMail Server on GCP
Table of Contents
hMailServer Features
Open source mail server for Microsoft Windows Server, a great replacement for Microsoft Exchange Server. It supports the common email protocols (IMAP, SMTP and POP3) and can easily be used with many web mail systems. The main features are:Â
Â
- Built-in Anti-Spam-Â score-based spam protection.
- Self-hosted
- Multi-accounts
- SSL encryption
- Domain management
- Webmail -supports IMAP and SMTP can be used with hMailServer. Popular webmail systems which are often used with hMailServer are RoundCube and SquirrelMail.Â
- Installation wizard
- Simple configuration
- POP3, SMTP, IMAP
- Port and domain management
- SQL backend
- Active Directory Integration
- Virtual domains
- Built-in backup
- SSL encryption
- IP Range
- Auto-ban
- Anti-spam, Anti-virus
- Scripting
- Server-side rules
- Multilingual
- Routing
- MX backup
- Multihoming
- MySql backend or MS Sql backend
- Web administration
- DNS Blacklist
- Grey Listing
- Relay
- Whitelisting
- COM API support.
Getting Started with hMailServer on Windows
RDP ( Remote Desktop Protocol) into new server
Once you have deployed hMailServer on Windows server, the first step is to RDP into the new instance once it has fully booted up. The following links explain how to connect the VM once it has finished being deployed:
Â
- How to RDP to AWS Windows Instance
- How to RDP to Google GCP Windows Instance
- How to RDP to Azure Windows Virtual Machine
Â
Once logged in, you’re now ready to start setting up your new SMTP server as per the following sections. Scroll down to the cloud platform section you are using:
Running hMailserver SMTP Server on Azure
Documentation
https://www.hmailserver.com/documentation/latest/?page=basic_configuration
Â
Login Credentials
Click on the icon on the desktop and login and start configuring your new mail server.
Â
hMail User: administrator
password: 123456
Running hMail Server on AWS
hMail Login Details
Â
User: administrator
Password: 123456
Â
Documentation
https://www.hmailserver.com/documentation/latest/?page=basic_configuration
Running hMail Server on GCP
RDP Login details, refer to How to RDP to Google GCP Windows Instance
Â
hMail Login Details
Â
User: administrator
Password: 123456
hMailServer Documentation
hMail Server Ports
The following ports need to be open if you are using a firewall or network security groups:
Â
| Usage | Port | Recommended Security if SSLÂ Certificate installed |
| SMTP | 25 | StartTLS (Optional) |
| SMTP via SSL/TLS | 465 | SSL/TLS |
| SMTPÂ Submission | 587 | StartTLS (Required) |
| POP3 | 110 | StartTLSÂ (Required) |
| POP3 via SSL/TLS | 995 | SSL/TLS |
| IMAP | 143 | StartTLS (Required) |
| IMAP via SSL/TLS | 993 | SSL/TLS |
Â
To setup AWS firewall rules refer to – AWS Security Groups
To setup Azure firewall rules refer to – Azure Network Security Groups
To setup Google GCP firewall rules refer to – Creating GCP Firewalls
hMailServer Support
If you are having any issues with getting the server up and running in any of the cloud environments, leave a comment below or contact us directly.
Â
Community support for hMail can be found on their forum:
Reset hMail Administrator Password
If for any reason you need to reset the hMail administrator password, edit the following file: C:\Program Files (x86)\hMailServer\Bin\hMailServer.ini
Â
In the hMailServer.ini in section
Â
[Security]
AdministratorPassword=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Â
This is NOT a Blowfish or SHA Algorithm. It is really an encrypted MD5 Hash.
Â
To reset your Administrator password do the following:
Â
1) Stop the hMailServer Service
2) Goto your hMailServer Program folder (for example: c:\Program Files (x86)\bin\
3) Copy or make a Backup of your original hMailServer.ini file
4) Insert a new MD5 Hash and replace the old password with a new password.
This should look like this:
AdministratorPassword=cc03e747a6afbbcbf8be7668acfebee5
5) Open hMailAdmin and click connect, this will start the hMailServer and provide the password box
Â
Your new Admin login password is:Â letmein
Â
You can generate a MD5 Hash from some other password anytime for example at:
http://www.md5.cz/
Disclaimer:Â hMailServer is licensed under AGPLv3. No warrantee of any kind, express or implied, is included with this software. Use at your risk, responsibility for damages (if any) to anyone resulting from the use of this software rest entirely with the user. The author is not responsible for any damage that its use could cause.
Related Posts:
- Top 20 Best Open Source Email Servers for Windows / Linux
- How to Setup Apache Web Server + MySQL (LAMP Stack) on Linux in Azure/AWS/GCP
- How to Setup Joomla Server + MySQL + Apache on Azure/AWS/GCP
- How to Setup Apache Kafka Server on Azure/AWS/GCP
- How to Setup RabbitMQ on Windows Server in Azure/AWS/GCP
- Setup Shibboleth Server on Azure/AWS/GCP
