Install Webmail interface for hMailServer

So, you installed hMailServer on your Windows Server 2012 R2 but there is no webmail interface. You can install mail on your mobile phone client or PC client, but there is no web interface that comes with hMailServer installation.

You need to add webmail for hMailServer. There are few prerequisites needed to install WebMail, and in case you don`t have IIS, MySQL or PHP already setup on your PC, you will need to do these installs.

I have WordPress setup covered on my blog so look there for IIS, PHP, MySQL install, after that installation you should be set for this tutorial – https://www.informaticar.net/?p=1944 .

Without my previously linked tutorial you will not be able to follow this one.

Here I`ll cover AfterLogic WebMail Lite PHP install

http://www.afterlogic.org/download/webmail-lite-php

webmail_install_1

Extract ZIP to your webpage folder

I will be doing that in my WordPress install from previous tutorial (linked on the top)

So, here is how it looks like on my server

webmail_install_2

Before we start with the installation head on to your IIS Manager |Server |Sites | your Website under which you copied webmail installer (mine is wordpress) | choose PHP Manager |PHP Extensions | Enable an extension (enable php_pdp_mysql.dll extension)

webmail_install_3

Head on to your MySQL installation (phpMyAdmin, also covered in text I linked at the begining) and open new database. My database will be called webmail

webmail_install_3_1

webmail_install_3_2

http://localhost/webmail/install is path for webmail installation (once again, path will be different in your case)

If you followed my tutorial for WordPress setup you should be set for install |Next

webmail_install_4

I agree

webmail_install_5

Enter your MySQL user and pass (user should have permissions for DB you created), enter DB name, host and click on “Test database” to see if everything is Ok |Next

webmail_install_6

Define password for webmail administration panel |Next

webmail_install_7

Next you should enter IP address (or name) of your email server for which you are installing this webmail (MX record if you are entering name – mail.domain.com) – click on test connection and if successful click on Next (value 127.0.0.1 can just be entered for test, it should not be in production environment or on the web side)

webmail_install_8

Installation completed

webmail_install_9

After installation is over adminpanel should appear

http://localhost/webmail/adminpanel

You can login with credentials you entered during webmail setup

webmail_install_10

Open Domains tab | Click on Default settings |Enter Incoming and Outgoing mail and “Use incoming mails login/password of the user

!!! Important tip – never enter localhost (127.0.0.1)  under Incoming and Outgoing mail (under some circumstances 127.0.0.1 will work) because that will instantly get you blacklisted.

webmail_install_11

All the other settings are up to you, but these that I mentioned are essential for webmail to work.

After you are done click on Save | Logout

http://localhost/webmail/ should have login form

webmail_install_12

If you done everything correctly, you should be able to login – if you have errors please refer to http://www.afterlogic.org/docs/webmail-lite/

Usually domain name or IP aren`t correct and you should head back to admin panel and correct Incoming and Outgoing mail settings

If everything is correct you should see this screen

webmail_install_13

Before we wrap up this tutorial, two things.

 

Head back to your webmail directory and delete install folder

webmail_install_14

 

Also you should according to documentation copy data folder somewhere out of webmail folder

http://www.afterlogic.org/docs/webmail-lite/installation/installation-instructions/installing-on-windows

You should not get this screen after you type in webmail/data in your browser

webmail_install_15

You can follow documentation I just linked or you can go to IIS Manager |Server | Sites | Your website |Webmail |from the middle screen choose request filtering

webmail_install_16

Choose Hidden Segments tab |Add Hidden Segment and enter Data |OK

webmail_install_17

After that if you repeat request through web browser

This is ok

webmail_install_18

 

With this step we are done with setting up webmail interface for hMailServer. It should work and be secure. If you have any suggestions about hMailServer and this webmail tutorial – contact me.

 

 

Disclaimer