Page 1 of 1

New hMailServer x 64 MSI Installer

Posted: 2018-10-18 07:25
by Dravion
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

Re: New hMailServer x 64 MSI Installer

Posted: 2018-11-26 18:55
by snico
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

Re: New hMailServer x 64 MSI Installer

Posted: 2018-11-26 21:52
by Dravion
The Inno (*.exe) Installer can be used for Production.

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

Re: New hMailServer x 64 MSI Installer

Posted: 2018-11-26 22:06
by raidensnake
Does this use LibreSSL?

Re: New hMailServer x 64 MSI Installer

Posted: 2018-11-27 00:01
by mattg
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...

Re: New hMailServer x 64 MSI Installer

Posted: 2018-11-27 08:27
by Dravion
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.

Re: New hMailServer x 64 MSI Installer

Posted: 2018-12-21 09:01
by KuroNeko
The link is down.
Have you deleted the file? Can you reupload it - maybe with a new link?

Thanks in advance.

Re: New hMailServer x 64 MSI Installer

Posted: 2018-12-21 09:39
by Dravion
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

Re: New hMailServer x 64 MSI Installer

Posted: 2018-12-21 09:46
by KuroNeko
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?

Re: New hMailServer x 64 MSI Installer

Posted: 2018-12-21 09:54
by Dravion
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.

Re: New hMailServer x 64 MSI Installer

Posted: 2018-12-22 16:43
by katip
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

Re: New hMailServer x 64 MSI Installer

Posted: 2018-12-22 17:25
by Dravion
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.

Re: New hMailServer x 64 MSI Installer

Posted: 2019-01-04 20:05
by rastaginger
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

Re: New hMailServer x 64 MSI Installer

Posted: 2019-01-04 21:10
by Dravion
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.

Re: New hMailServer x 64 MSI Installer

Posted: 2019-01-05 18:04
by mats
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

Re: New hMailServer x 64 MSI Installer

Posted: 2019-03-08 13:15
by palinka
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.

Re: New hMailServer x 64 MSI Installer

Posted: 2019-03-08 17:59
by Dravion
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.

Re: New hMailServer x 64 MSI Installer

Posted: 2019-03-09 04:37
by palinka
Keep up the good work, my man. It's definitely appreciated.

Re: New hMailServer x 64 MSI Installer

Posted: 2019-04-05 11:56
by BrettMontgomery
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,

Re: New hMailServer x 64 MSI Installer

Posted: 2019-04-18 20:13
by shar0119
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).

Re: New hMailServer x 64 MSI Installer

Posted: 2019-04-18 21:02
by Dravion
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.

Re: New hMailServer x 64 MSI Installer

Posted: 2019-04-18 21:21
by shar0119
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.

Re: New hMailServer x 64 MSI Installer

Posted: 2019-04-18 22:02
by Dravion
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.

Re: New hMailServer x 64 MSI Installer

Posted: 2019-04-19 08:29
by katip
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?

Re: New hMailServer x 64 MSI Installer

Posted: 2019-04-19 10:25
by Dravion
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.

Re: New hMailServer x 64 MSI Installer

Posted: 2019-04-19 11:24
by katip
here one of the dumps attached.
thks.

Re: New hMailServer x 64 MSI Installer

Posted: 2019-04-19 15:04
by Dravion
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.