HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
horndaneth
New user
New user
Posts: 2
Joined: 2018-08-30 08:23

HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by horndaneth » 2018-08-30 08:28

Dear sir/madam,

I run into a problem with hMailServer Administrator. An error message was pop up when I tried to connect to hMailServer. Here is the error message " Retrieving the COM class factory for remote component with CLSID {D6567EF8-0A6C-48E7-9288-A2463123CF3} from machine localhost failed due to the following error: 80070433.

Help me please!
I stuck with it almost a full week.
Thanks beforehand.

Best Regards,
~Daneth.

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by mattg » 2018-08-30 09:57

That error sometimes comes up when you have the administrator panel open, but then restart the hmailserver service.

Close the error, and restart the Admin GUI
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

horndaneth
New user
New user
Posts: 2
Joined: 2018-08-30 08:23

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by horndaneth » 2018-08-30 14:03

Thanks mattg for your fast answer. I have tried to restart hMailService but it still shown the same error.

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2018-08-30 17:56

Try the following:

Open a Windows Command prompt and run the this command

"%programfiles(x86)%\hMailServer\bin\hMailServer.exe" /Register

exit the Windows Command prompt and check if the error is gone.

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-08 01:34

I am having the same problem. When I first invoke the Admin, I get the 80070433 message .. then when I try to "Connect", I get the same error message.

I tried "hMailServer.exe /Register" and that seemed to have no effect. :-(

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by mattg » 2019-04-08 09:05

Try the register command in an elevated command prompt (run as administrator)
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
jimimaseye
Moderator
Moderator
Posts: 8011
Joined: 2011-09-08 17:48

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by jimimaseye » 2019-04-08 09:10

mattg wrote:
2019-04-08 09:05
Try the register command in an elevated command prompt (run as administrator)
(Im guessing "David Shot" in the Philippines has no problem that needs any further reply. Banhammer hanging on a very loose nail.......)
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-09 01:09

Unfortunately running Register command as admin did not seem to correct the problem ..

1) invoked cmd as Admin
2) traversed to the hMail directory and "hMailServer.exe /Register"
3) rebooted
4) started hMailServer service
5) got same 433 error when invoking hMailServer Administrator and then again when trying to "Connect"

Thanks for helping me
David

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by mattg » 2019-04-09 04:32

Anything written in the hMailserver error log>?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-09 06:57

here are the last few entries in the log -- from Feb 2019 -- there are no other logs or entries since them. Although I have tried to access hMail since then

"ERROR" 4944 "2019-02-05 11:37:28.329" "Severity: 2 (High), Code: HM5033, Source: DALRecordset::Open, Description: Can't connect to MySQL server on 'localhost' (10061)"
"ERROR" 6624 "2019-02-05 11:37:28.594" "Severity: 2 (High), Code: HM5033, Source: DALRecordset::Open, Description: Can't connect to MySQL server on 'localhost' (10061)"
"ERROR" 3640 "2019-02-05 11:37:43.505" "Severity: 2 (High), Code: HM5032, Source: DALConnection::Execute, Description: Can't connect to MySQL server on 'localhost' (10061)"
"ERROR" 3640 "2019-02-05 11:38:06.005" "Severity: 2 (High), Code: HM5032, Source: DALConnection::Execute, Description: Can't connect to MySQL server on 'localhost' (10061)"

Perhaps this helps?
Thanks
David

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2019-04-09 11:43

Try to start your MySQL Server and restart hMaiserver Service and login with hMailAdmin.

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-09 12:40

Ha! .. well here is at least part of the problem .. Apparently the hMailServer is not running ..

I tried invoking hMailServer.exe from the ShortCut and also directly from the /bin" directory ..

In both cases, there was no visible sign of failure .. and nothing in the /Logs directory

The mySQL is working fine .. I can access it from many different applications

I know it sounds cliche, but "I didn't change anything" .. other than some Windows Updates ..

Thanks
David

User avatar
jimimaseye
Moderator
Moderator
Posts: 8011
Joined: 2011-09-08 17:48

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by jimimaseye » 2019-04-09 14:32

davidshot wrote:
2019-04-09 12:40
....but "I didn't change anything" .. other than some Windows Updates ..
:lol:

Time to rollback the changes you didn't make.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by mattg » 2019-04-09 15:12

davidshot wrote:
2019-04-09 12:40
In both cases, there was no visible sign of failure .. and nothing in the /Logs directory
Windows event logs is next step to check
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: 1397
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2019-04-09 23:50

Check your hmailserver.ini file if your Database Host or ip is correct. Check also if the DB-User and its Password can connect to MySQL.

By the way, what version of MySQL is running?
There are known Problems with MySQL 8.x

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-10 08:36

- running mysql 5.7x

- running Wamp 3.1.7

- wrote a test script using hMailServer host, user and password values .. successful

in the event log:

"The hMailServer service depends on the following service: wampmysqld. This service might not be installed. "

And as best I can tell, there is no such service, but ALL my other Wamp Services are running just fine.

Is there some Wamp config parm that I need to set to get "wampmysqld"?

Thanks
David

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-10 08:51

Here's also what i found in wamp/logs:

2019-02-05T04:56:28.340409Z 0 [Warning] InnoDB: Resizing redo log from 2*3072 to 2*16384 pages, LSN=2592522
2019-02-05T04:56:28.528651Z 0 [Warning] InnoDB: Starting to delete and rewrite log files.
100 200
100 200
2019-02-05T04:56:50.305135Z 0 [Warning] InnoDB: New log files created, LSN=2592522
2019-04-09T10:23:22.962918Z 0 [Warning] wampmysqld64: Forcing close of thread 2 user: 'root'

2019-04-09T10:23:22.964809Z 0 [Warning] wampmysqld64: Forcing close of thread 3 user: 'root'

But I have no clue what all this means or how to fix.
David

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by mattg » 2019-04-10 08:55

davidshot wrote:
2019-04-10 08:36
in the event log:

"The hMailServer service depends on the following service: wampmysqld. This service might not be installed. "
And as best I can tell, there is no such service, but ALL my other Wamp Services are running just fine.

Is there some Wamp config parm that I need to set to get "wampmysqld"?
You need to manually set the service dependencies I'd reckon...

Open services and double click the hMailserver service, then go to dependencies...
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: 1397
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2019-04-10 09:06

Goto your Windows Startmenue, lookk out for hMailserver and DBSetup. If you cant find it there goto your hMailServer <your hmailserver folder>\bin and run DBSetup.exe. Follow configuration Options for existing MySQL DB, provide your credentials and leave Depending Service blank, click OK and finish the wizzard.

Now make allways sure your WampMysql (or what ever its name) is running before you try to start hMailserver Windows Service Manually.

If this works, report back.

ps: You need to find out what Servicename your MySQLD Is running under for the mext step in order to fix the Dependency settings later.

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-10 09:48

Thanks for your prompt response ..

I tried to run DB Setup both from the Windows Start and from the /bin file .. but in both cases, I got NOT response .. no nothing .. no screen no errors ...

Perhaps i would be best to just UnInstall and ReInstall ... although I may still likely have the wampmysqlserver issue?

David

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2019-04-10 14:52

Try this command from a elevated Windows Command Prompt

sc config hMailServer binpath="C:\Program Files (x86)\hMailServer\Bin\hMailServer.exe RunAsService" type=share"

ps: change your binpath param to your hMailServer Installfolder

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-11 01:15

well for some reason, wampmysqld64 is now running .. i guess after a reboot

now in the Event Log, there is an entry :

"The hMailServer service depends on the following service: wampmysqld. This service might not be installed."

Notice looking for wampmysqld ... NOT wampmysqld64, which is the service that is now running

Is this an hMail config parm?
David

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2019-04-11 01:41

In this case modify the sc comnand to something like this

sc config hMailServer binpath="C:\Program Files (x86)\hMailServer\Bin\hMailServer.exe RunAsService" type=share" depend="wampmysqld64"

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-11 03:08

well . partially good news .. at least different results

Now getting "unable to connect using hmail@'localhost' using password=yes "

I am using the password from /bin/hMailServer.INI
[Database]
Type=MYSQL
Username=hmail
Password=d30bea66f023c018
PasswordEncryption=1
Port=3306
Server=localhost
Database=hmail
Internal=0

Also, my test PHP script to connect to the data base works just fine and i am able to connect:

$conn = mysqli_connect('localhost', 'hmail', 'd30bea66f023c018' );
if (mysqli_connect_errno()) {
trigger_error('Database connection failed: ' . mysqli_connect_error(), E_USER_ERROR);
}
$stmt = 'select * from hm_accounts';
$results = mysqli_query ($conn, $stmt);

Regards again :-)
BTW: Thanks for all your help !!

David

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2019-04-11 07:37

Sounds good.
I believe the DB Password is hashed as SHA-1

You can use this SHA-1 Hash in your hMailServer.ini
as DB-Password.

b7a875fc1ea228b9061041b7cec4bd3c52ab3ce3

The Password is:letmein :D

PS: Dont forget to login into MySQL and change the DB-User Password to: letmein as well.before you restart your hMailServer Service again.

PS2: If the above hash doesnt do it, try this two alternative SHA alternatives instead:

SHA-256: 1c8bfe8f801d79745c4631d09fff36c82aa37fc4cce4fc946683d7b336b63032

OR:
SHA-512:
adfb6dd1ab1238afc37acd8ca24c1279f8d46f61907dd842faab35b0cc41c6e8ad84cbdbef4964b8334c22c4985c2387d53bc47e6c3d0940ac962f521a127d9f

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by mattg » 2019-04-11 12:25

Dravion I think that here you are talking about the hMailserver administrator password, not the database password
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: 1397
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2019-04-11 12:27

mattg wrote:
2019-04-11 12:25
Dravion I think that here you are talking about the hMailserver administrator password, not the database password
No. hMailServer Administrator Password is MD5.

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by palinka » 2019-04-11 13:26

davidshot wrote:
2019-04-11 03:08
well . partially good news .. at least different results

Now getting "unable to connect using hmail@'localhost' using password=yes "
This is a new wamp install? Sorry if this is a dumb suggestion because this is a bit over my head, but with xampp, the default installation of mariadb includes user "ANY" which prevents connections with password. I was reminded of that yesterday when toying around with something that included a new install of xampp on a test machine. If this is the case, just delete the "ANY" user and then your connection with password will be successful.

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-12 00:04

Yes .. this is a "new" wamp install .. 3.1.7 . I was using 2.x.

Ha ha this changes my statement from before the "i didn't change anything" .. but obviously I did :-) .. installed a new version of Wamp . which works great except for the previous install of hMail server.

Still not sure what is correct path to take with hMail : uninstall/install .. will problem with depend on wampmysqld64 still exist? I think this is the crux of my problem.

Regards
David

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2019-04-12 05:33

I think the easistway will be a overinstall on your existing installation.

ps: I was wrong regarding SHA-1 DB-Password hash. The correct Hash Algorithm is a Bruce Schneier Blowfish Algorithm. Martin has used a unmodified, existing C++ Class which is dated from 1996 without any hint which it needs.The hashes i get by other thirdparty Blowfish Hash Generators are diffrent in Format, style and length.

How ever:
I will take that nasty thing and put it into a seperate EXE which should do the trick. Check back later.

davidshot
New user
New user
Posts: 11
Joined: 2019-04-08 01:27

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by davidshot » 2019-04-12 12:04

Sorry to bother you one more time:

1) uninstalled hMail
2) deleted the hMailServer directory
3) deleted the MySQL user name that was being used before
4) made sure the hmail database was also DROP

..... Then ...

I invoked the hMail installation ... and everything was going fine as expected until the message:

libmysql.dll needs to be manually copied

I copied it from wamp/bin/mysql/mysql5.7.24/lib/libmysql.dll .. it's a file 3978Kb

Then tried to "Continue" .. but got same error message .. then I figured out it was the 64bit version .. so i downloaded the 32 bit and the hmail database was successfully completed.

I'm still having some trouble getting into the Administrator (password) .. but i'll figure that one out ..

In retrospect, I think my WHOLE problem was caused by installing the new WAMP version .. and the dependent service (wampmysqld) no longer running under wamp .. but the 80070433 Error Response is terrible misleading ..

Again thanks for all your help .. hMailServer absolutely meets my need and I love the way it works! ..
regards
David

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2019-04-12 12:41

To reset your Admin password to a new Password, follow this Guide:
https://www.hmailserver.com/forum/viewt ... 21&t=31490

You also can just set the Admin Password to a blank value - for example: AdministratorPassword=
and login with hMailAdmin with Username: Administrator and empty Password.

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

Re: HMailServer Administrator can't connect with an error from machine localhost due to the following error: 80070433

Post by Dravion » 2019-04-13 02:24

There is now a little utility avaiable which can help to reset a hMailServer.ini DB-Users Password

Check this Howto:
https://www.hmailserver.com/forum/viewt ... 21&t=33793

Post Reply