Page 1 of 1

HOW TO: Install hMailServer on Server Core 2008 R2

Posted: 2012-03-07 07:33
by whurlston
This assumes that you already have a working Server Core and database setup and you just need to add hMailServer.

Steps:
  1. Add an IE version string to the registry to get past the installer check (this can be removed after installation).

    Code: Select all

    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer" /v Version /t REG_MULTI_SZ /d 8.0.7601.17514
  2. Install NetFX2-ServerCore-WOW64 (it must be the WOW64 package).

    Code: Select all

    DISM.exe /online /enable-feature /featurename:NetFX2-ServerCore-WOW64
  3. If running a separate MySQL database, download libmysql.dll and place it in the folder where you intend to install hMailServer. (Note that it has to be placed in a "*\bin" subfolder. eg: "C:\hMailServer\bin" )
    libmysql.dll must be the version from the x86 MySQL package, even if you are running MySQL x64.
  4. Install hMailServer.
  5. Add firewall exceptions as necessary
You now have full functionality including the ability to run hMailAdmin.

If you prefer not to download the full x86 MySQL package, I have included an attachment with libmysql.dll from the MySQL 5.5.21 package. As this is my first post, I am not offended if someone would prefer to go straight to the source for them instead or if one of the more respected members of the forum wanted to verify the file hashes.

The attachement also includes a bat script (and reg file) to perform the first two steps above.

This was tested with hMailServer 5.4 build 1931 on Windows Server Core 2008 R2 w/ SP1 running in a Hyper-V virtual machine. MySQL 5.5.21 x64 was running in a sepate VM.