hMailServer is a free e-mail server for Microsoft Windows. It’s used by Internet service providers, companies, governments, schools and enthusiasts in all parts of the world. It supports the common e-mail protocols (IMAP, SMTP and POP3) and can easily be integrated with many existing web mail systems. It has flexible score-based spam protection and can attach to your virus scanner to scan all incoming and outgoing email.
hMailServer System Requirements:
You can find detailed system requirement at hMailServer System requirements.
hMailServer supports five different database engines. You can find more information at hMailServer database engines. We will use MySQL server here as a database for hMailServer. To install MySQL Server please follow step by step instructions given at Install MySQL on Windows
You can download hMailServer from this link. At the time of writing this article production release hMailServer 5.3.3 – Build 1879 is available. hMailServer 5.3.3 is not an Open Source application. However future release of hMailServer 5.4 – 1931 will be again Open Source which is still in beta phase.
- Install MySQL step by step instructions given at Install MySQL on Windows.
- Execute downloaded hMailServer setup file by double clicking it which will launch hMailServer setup wizard as shown below. Click “Next” button.
- Select “I accept the agreement” and click “Next” button.
- Select the path where you would like to install hMailServer. I always prefer installing hMailServer on the partition other than containing Operating System. Click “Next” button.
- Select “Full Installation” from the drop down box and click “Next” button.
- If you want to built-in database engine (Microsoft SQL Compact) then select first radio button. In our case we are going to use MySQL so we will select second radio button and then click “Next” button.
- Select “Don’t create a Start Menu folder” if you don’t wish to create Start Menu folder. You can also modify start menu folder name. We will leave this as it is and then click “Next” button.
- Click “Install” button to proceed the installation.
- After copying files the hMailServer Database setup wizard will be launched as shown below. Simply click “Next” button.
- Select “Create a new hMailServer database” and click “Next” button.
- Since we are going to use MySQL as a database engine for hMailServer, select “MySQL” otherwise select as appropriate if you wish to use other database engine. Click “Next” button to move on.
- Enter database server connection information
- Database server address : Enter IP address or Computer Name where MySQL server is running. If it’s on same machine then you can use “localhost” except quotes. If MySQL server is installed on remote machine then make sure that you can connect to MySQL server from the machine where hMailServer is installed.
- Port : Enter the TCP port on which MySQL server is listening on. MySQL by default listens on TCP port 3306. Enter the port number if your MySQL server listening on any other TCP port.
- Database name : Enter the name of database which will be created on your MySQL server for storing hMailServer details.
- Username : Enter MySQL server username.
- Password : Enter password for MySQL user specified in previous step.
- Click “Next” button.
- hMailServer runs as a Windows Service. Here you can specify the service name on which hMailServer will depend. Select “MySQL (MySQL)” from the drop down so that Windows will ensure that the database service is running before hMailServer is started. Click “Next” button.
- Before moving on copy libmysql.dll from “MySQL\MySQL Server 5.5\lib” folder to “hmailserver\bin” folder. libmysql.dll is not included in hMailServer installation. This is because hMailServer 5.3.3 is not Open Source while MySQL is Open Source. Now click “Next” button.
- As shown below a fresh hMailServer database will be created and server will be restarted. Click “Next” button and then click “Close” button.
- Enter password for hMailServer user with administration rights. The username will be Administrator and the password will be as specified below. Please remember this password.
- Click “Finish” button and Run hMailServer Administrator.
- Enter the hMailServer Administrator password we created recently. Then click “OK” button.
- If you are viewing below screen on your machine, then congratulations you have successfully installed hMailServer on your machine.
As with every email server application the installation part is very straight forward, however the implementation phase is critical one. In next few articles we will configure hMailServer for the role intermediate email distribution. We will also discuss how we can make hMailServer a live email server.