New hMailServer x 64 MSI Installer

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
Post Reply
User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

New hMailServer x 64 MSI Installer

Post by Dravion » 2018-10-18 07:25

Due to Problems in recent version of InnoSetup regarding Maleware false positive or Maleware contamination, i decided to replace the entire thing and
created a complete new Installer for hMailServer 5.6.8 x64 from scratch as Windows Installer Package (MSI).

Now Virustotal scan results looking good
See scanresults:
https://www.virustotal.com/#/file/e122f ... /detection

Relasenotes:
https://github.com/Dravion/hmailserver/ ... /tag/5.6.8

hMailServer 5.6.8 64-Bi MSI-Installer (tested with Win7 x64 and higher)
https://github.com/Dravion/hmailserver/ ... 31-x64.msi

Hint:
This Installer needs the .NET 4 Framework installed or the Installer will quit with a Warning.
You can download and install .NET 4 if you dont allready have a newer version allready installed
https://www.microsoft.com/en-US/downloa ... x?id=17718

If you want to use MS-SQL CE x64 Bit you need to Download and install it first
https://www.microsoft.com/en-us/downloa ... x?id=17876

ps: You wont be asked to setup a password, the Password is simply not set, so just click ok on the hMailAdmin login Dialog
and setup a new Password in hMailAdmin Password settings.

Screenshots:
msi1.jpg
msi2.jpg
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

snico
New user
New user
Posts: 27
Joined: 2010-01-04 12:18

Re: New hMailServer x 64 MSI Installer

Post by snico » 2018-11-26 18:55

hello,

thank you so much Dravion

an it be used in production?

I have been worried for several years "hMailServer has run out of memory"

see : viewtopic.php?t=26317
Nicolas Cavaré
hMailServer 5.4.1 B1951 external MSSQL 2008 r2
Windows 2008 r2 | 2 x Intel Xeon E5-2650v2 | 64 Go DDR3 | 2 x Intel SSD 600go

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2018-11-26 21:52

The Inno (*.exe) Installer can be used for Production.

Innosetup - 64-Bit Installer:
https://github.com/hMailServer-ComDevs/ ... r/releases
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

raidensnake
New user
New user
Posts: 11
Joined: 2018-09-22 10:26

Re: New hMailServer x 64 MSI Installer

Post by raidensnake » 2018-11-26 22:06

Does this use LibreSSL?

User avatar
mattg
Moderator
Moderator
Posts: 19630
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: New hMailServer x 64 MSI Installer

Post by mattg » 2018-11-27 00:01

raidensnake wrote:
2018-11-26 22:06
Does this use LibreSSL?
You notice from the post above that Dravion has two builds, one with OpenSSL and one with LibreSSL

Dravion is certainly keen to change from OpenSSL to LibreSSL, that's why both are offered...
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2018-11-27 08:27

Thats correct @mattg :D

But its really not a Vodoo trick,because LibreSSL
is a Fork of OpenSSL 1.0.2.x which hMailServer uses normally.

The main reason why i focus on LibreSSL is because OpenSSL 1.0.2.x has reached EOL and there will be no security Updates after December 2019.

On the other Hand OpenSSL 1.1.x (which is the new upgrade of OpenSSL) is incompatible to hMailServers existing Codebase and would require
a require a rewrite of portions of hMailserver code.

Its just trick to stay uptodate with a supported security lib for hMailServer.
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

KuroNeko
New user
New user
Posts: 2
Joined: 2018-12-21 08:58

Re: New hMailServer x 64 MSI Installer

Post by KuroNeko » 2018-12-21 09:01

The link is down.
Have you deleted the file? Can you reupload it - maybe with a new link?

Thanks in advance.

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2018-12-21 09:39

Classic Installer with updated OpenSSL Version and included libmysql.dll can allways be found here:
https://github.com/hMailServer-ComDevs/ ... r/releases

Experimental, new MSI Installer can be found here:
https://github.com/hMailServer-ComDevs/builds/releases

Remember, this is x64 only. If you need 32-Bit, use the official version from here
https://www.hmailserver.com/download
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

KuroNeko
New user
New user
Posts: 2
Joined: 2018-12-21 08:58

Re: New hMailServer x 64 MSI Installer

Post by KuroNeko » 2018-12-21 09:46

Thanks for the fast answers and the links.
I was looking for hMailServer-5.6.8-B2431-x64.msi. This wasn't needed Net 2.0?

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2018-12-21 09:54

The MSI requires .NET 4.0 or higher because the Client Tools where updated to 4.0.If the MSI installer doesnt find it, it will inform you to install a .NET 4.x Version and quits.

ps: It also uses LibreSSL instead of OpenSSL

If you want OpenSSL, use the above mentioned Classic-Installer.
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

User avatar
katip
Senior user
Senior user
Posts: 615
Joined: 2006-12-22 07:58
Location: Istanbul

Re: New hMailServer x 64 MSI Installer

Post by katip » 2018-12-22 16:43

Hi Dravion,
Dravion wrote:
2018-12-21 09:54
The MSI requires .NET 4.0 or higher because the Client Tools where updated to 4.0.If the MSI installer doesnt find it, it will inform you to install a .NET 4.x Version and quits.

ps: It also uses LibreSSL instead of OpenSSL

If you want OpenSSL, use the above mentioned Classic-Installer.
just tried your .msi
btw, i think it has no "upgrade", just only full setup routine. ok not a big issue for now...
however after completing the setup, client cannot connect.
HMS diags show the following:

Code: Select all

Exception from HRESULT: 0x800403E9

ExceptionType: COMException
HelpLine: 
Message: Exception from HRESULT: 0x800403E9
Source: Interop.hMailServer
StackTrace:    at hMailServer.DiagnosticsClass.PerformTests()
   at hMailServer.Administrator.ucDiagnostics.buttonPerformTests_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
TargetSite: hMailServer.DiagnosticResults PerformTests()
falling back to hMailServer-5.6.8-B2431-LibreSSL-x64.exe which runs fine since weeks.

jfyi
Katip
--
HMS 5.7.0-B2428-LTS-64-bit, MySQL 5.7.24, SA 3.4.2, ClamAV 0.101.2 + SaneS

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2018-12-22 17:25

Thx, Katip - good to know.

Its true, i doesnt upgrade right now and right now i have to work on the hRMS Feature first before i
fix the MSI Installer. The MSI Installer will deploy
new hMailServer Features while the Classic Installer
recieves only OpenSSL 1.0.2.x updates and critical bug fixes until end of Dec 2019, because of EOL of OpenSSL 1.0.2.x. I think at this time the MSI Installer is more Production safe and LibreSSL is well tested enough so we dont need OpenSSL anymore.
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

rastaginger
Normal user
Normal user
Posts: 38
Joined: 2016-01-27 19:42

Re: New hMailServer x 64 MSI Installer

Post by rastaginger » 2019-01-04 20:05

if i have the current 32bit production version installed. Do i have to uninstall it to be able to install your new 64bit MSI LibreSSL version or can i "upgrade" my existing installation
Hmail 5.6
Windows Server 2008 R2 - 64Bit
SpamAssasin

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2019-01-04 21:10

It will replace hMailServer files, which are allready exist. Its recommended to just backup your old hMailServer Folder so you can switch back if something goes wrong anytime.

Make sure you copy your old hMailServer.ini file to a safe place because this MSI Installer will overwrite
your old hMailServer.ini and set a empty password.

After you installed the MSI Package, just replace the new installed hMailServer.ini file with your old, functioning hMailServer.ini file.

Change notice:
I will build new hMailServer 32-Bit and 64-Bit Releases with the old EXE Installer from now on only (LTS = Long Term Support = version).

The new, rewritten HCD hMailServer version
will come as MSI Installer for Windows, a
Apple DMG Container file for MacOS, for
Debian/Ubuntu Linux a DEB Package
and for Redhat based Linux (Fedora/CentOS)
a RPM Package.It will be also possible to
build HCD hMailServer.tar.gz sourceball from
Commnd prompt with GNU Mingw-w64,
Linux GCC and MacOS Clang OpenSource
Compiler, so Visual Studio isnt any longer the
only possible Build-Environment for hMailServer HCD.

HCD will bring many new features like better Windows 64-Bit (Nano Server included), Support, Linux 64-Bit, MacOS 64-Bit and ReactOS 32-Bit Support, newest BOOST-Updates and interchageable WolfSSL and LibreSSL Crypto
Library integration.WolfSSL has allready TLS 1.3
support so SMTP and POP3/IMAP can handle TLSv1.3 STARTTLS and SSL/TLS-Connections.
The hMailServer HCD Deamon will now accept
specific configfiles and multiple instances of hMailServer HCD can coexist side by side (Multiinstancing).

The hMailAdmin is a complete new Program based on the QT5 C++ Framework which can connect to hMailServer HCD via TCP/IP with TLSv1.2.

However, some old parts are no longer working like VB-Script and the DCOM API. For Scrpting, it will be the LUA-Scripting Language from now on.

Server Admin scripting can be done via hMailServers HCD new Remote acces Protocoll (TCP/IP+TLSv1.2) for example with PHP or Python
using Sockets.

HCD hMailServer will have a Group based permission design which will allow multiple admin accounts defined by user groups and restricted acounts for Backup, Webinterface ect.
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

mats
New user
New user
Posts: 24
Joined: 2018-05-06 20:58

Re: New hMailServer x 64 MSI Installer

Post by mats » 2019-01-05 18:04

I know it's more work but I would like to suggest an alternative to sockets.
belive an rest based admin webservice would be even better.
Just about any language can talk to a webservice. It's also a protocol that can be proxied and further secured with extra auth layers if you want too.

Just my 2c

And a MAJOR thumbs up for the new access control system. It's really needed

palinka
Senior user
Senior user
Posts: 612
Joined: 2017-09-12 17:57

Re: New hMailServer x 64 MSI Installer

Post by palinka » 2019-03-08 13:15

Hi, Dravion. This HCD release you're working on looks fantastic. It must be a lot of work. God bless you for taking on this challenge.

If you don't mind, I'd like to plant a seed in your head for a modern feature that is missing from hmailserver, which is imap full body text keyword searching from the database. It's positively torture (if not impossible in some cases) to search large mailboxes as it is. I imagine implementing this feature natively along with cross platform support would drive hmailserver to be the king of mail.

Anyway, food for thought. Thanks for considering it.

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2019-03-08 17:59

Thanks Palinka

Yeah its a lot of work but Email is to important to simplly accept the Duopoly status of Gmail 60% and Microsoft 30% Marketshare. Email is a open Standard and doesnt belong to MS or Google and we shouldnt accept it.

I hope this will help the Windows versions to because we can build hMailServer HCD with the GNU MinGW-M64 Compiler for Win32/Win64 targets as fallback so we are better guarded against Microsoft crap decisions regarding code breaking changes in Visual Studio. Its really a shame that we cannot simply switch from VS2013 to VS2017 or VS2019 because Microsoft
think its cool to break working code.

ps:
Improved IMAP-Search via Database is a valid point. Most of the DB's we use have at least the optional feature of
FTS, so i think we can enable such a feature in general if the FTS Feature is enabled by the SQL-Database.

ps2:
I think we also can improve it without FTS enabled by DB using SQL LIKE, ILIKE and SQL UNIONS to search accros
tables (all SQL 92/2003 Standard features).


Be warned: HCD will not come with any COM or VBScript support. It sucks but its simply not possible to make
it work on other Platforms then Windows. I think we get a nice LUA-Scripting API done with allmost all the Marmelade
VBScript provides, but this is not my top priority for now.
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

palinka
Senior user
Senior user
Posts: 612
Joined: 2017-09-12 17:57

Re: New hMailServer x 64 MSI Installer

Post by palinka » 2019-03-09 04:37

Keep up the good work, my man. It's definitely appreciated.

BrettMontgomery
New user
New user
Posts: 2
Joined: 2019-04-05 11:55

Re: New hMailServer x 64 MSI Installer

Post by BrettMontgomery » 2019-04-05 11:56

Hi,

Thank's for your work but I can't find your x64 executables..
May you re-upload the last version ?

Thank's in advance.
Best regards,

shar0119
New user
New user
Posts: 8
Joined: 2014-11-05 23:18

Re: New hMailServer x 64 MSI Installer

Post by shar0119 » 2019-04-18 20:13

I can't quite understand why the 64 installer installs the software into C:\Program Files (x86)\hMailServer\ because I thought the Program Files (x86) was more for 32 bit applications. I mean it does not matter but would be nice to get this into the Program Files folder instead of the Program Files (x86).

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2019-04-18 21:02

shar0119 wrote:
2019-04-18 20:13
I can't quite understand why the 64 installer installs the software into C:\Program Files (x86)\hMailServer\ because I thought the Program Files (x86) was more for 32 bit applications. I mean it does not matter but would be nice to get this into the Program Files folder instead of the Program Files (x86).
The MSI Installer for this version was experimental. Its not designed for LTS installs. If you want just hMailServer LTS
install allways the EXE Installer. The MSI Installer is planned for hMailServer HCD.
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

shar0119
New user
New user
Posts: 8
Joined: 2014-11-05 23:18

Re: New hMailServer x 64 MSI Installer

Post by shar0119 » 2019-04-18 21:21

Dravion wrote:
2019-04-18 21:02
shar0119 wrote:
2019-04-18 20:13
I can't quite understand why the 64 installer installs the software into C:\Program Files (x86)\hMailServer\ because I thought the Program Files (x86) was more for 32 bit applications. I mean it does not matter but would be nice to get this into the Program Files folder instead of the Program Files (x86).
The MSI Installer for this version was experimental. Its not designed for LTS installs. If you want just hMailServer LTS
install allways the EXE Installer. The MSI Installer is planned for hMailServer HCD.
Thanks for your feedback Dravion. I used the hMailServer-LTS-5.6.7-B2427-x64.exe file from the following link to do the install:

https://github.com/Dravion/hMailServer/releases

I did already have hMailServer 32bit installed on the machine. So its possible it used the same folder (Program Files (x86)) to upgrade which makes sense.

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2019-04-18 22:02

HCD will have its Data Folders in %ProgramData%, regardles on which Drive letter it is pointing.
This is also true for hMailServer.ini and any other Domainspecific file or Data.
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

User avatar
katip
Senior user
Senior user
Posts: 615
Joined: 2006-12-22 07:58
Location: Istanbul

Re: New hMailServer x 64 MSI Installer

Post by katip » 2019-04-19 08:29

Hi Dravion,

i replaced 5.6.8 b2431 which was running perfectly since +6 months with 5.6.7 b2427.
now i get lots of

Code: Select all

"ERROR"	2520	"2019-04-19 08:14:51.015"	"Severity: 2 (High), Code: HM4208, Source: ExceptionHandler::Run, Description: An error occured while executing 'IOCPQueueWorkerTask'"
"ERROR"	2520	"2019-04-19 08:14:54.359"	"Severity: 1 (Critical), Code: HM5519, Source: StackLogger::Log, Description: An error has been detected. A mini dump has been written to C:\hMailServer\Logs\minidump_2019-04-19 081452_{6405DB9A-F78B-40FF-A888-14A1BB318666}.dmp"
falling back to 5.6.8 b2431. jfyi..

what happened with your 5.6.8 branch? dropped or merged with 5.6.7?
Katip
--
HMS 5.7.0-B2428-LTS-64-bit, MySQL 5.7.24, SA 3.4.2, ClamAV 0.101.2 + SaneS

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2019-04-19 10:25

Can you attach the dump file to your next post?

In LTS itry generally to avoid new features.
5.6.8 was built with LibreSSL instead with OpenSSL
LTS-Branch. I

A Dump is allways created if if hmailserver.exe crashes.I most cases its a AccessViolation but we need more info about the circumstances.
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

User avatar
katip
Senior user
Senior user
Posts: 615
Joined: 2006-12-22 07:58
Location: Istanbul

Re: New hMailServer x 64 MSI Installer

Post by katip » 2019-04-19 11:24

here one of the dumps attached.
thks.
Attachments
minidump_2019-04-19 082230_{37C289C7-3289-4BDA-A30B-57F34B6801CB}.zip
(26.87 KiB) Downloaded 7 times
Katip
--
HMS 5.7.0-B2428-LTS-64-bit, MySQL 5.7.24, SA 3.4.2, ClamAV 0.101.2 + SaneS

User avatar
Dravion
Senior user
Senior user
Posts: 1268
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: New hMailServer x 64 MSI Installer

Post by Dravion » 2019-04-19 15:04

Looks like the Release you are using has a Problem with OpenSSL
FAILURE_SYMBOL_NAME: libeay32.dll!Unknown

This could only be triggerred by Encryption operations (SSL/TLS).
Could be a flaw in OpenSSL 1.0.2.x which might be fixed in a later release of the lib.
64-Bit builds of hMailserver

hMailServer-5.6.+ (HCD) https://github.com/hMailServer-ComDevs/hmailserver
hMailServer-5.6.+ (LTS) https://github.com/Dravion/hMailServer/releases

Post Reply