Howto: hMailAdmin -> DCOM Remote access

This section contains user-submitted tutorials.
Post Reply
User avatar
Dravion
Senior user
Senior user
Posts: 1688
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Howto: hMailAdmin -> DCOM Remote access

Post by Dravion » 2016-10-04 09:02

#hMailServer Remote DCOM Access settings

01) Windows Startment type in run "DCOMCNFG" + Enter
02) Console Root->Component Services->Computer->Default Prop.->"Enable DCOM"
03) Default Authentication Level->Default
04) Default Impersonation Level->Impersonate
05) Edit COM-Security Tab->Access Permissions->Edit Limits-><<add your user>>
06) Edit COM-Security Tab->Access Permissions->Edit Defaults-><<add your user>>
07) Edit COM-Security Tab->Launch and Activation Perm->Edit Limits-><your user>
08) Edit COM-Security Tab->Launch and Activation Perm->Edit Defaults-><your user>

ps: Your Windowsuser on Client and hMailServer Computer must have the same passwords or you get a iFactory Access 80070005 DCOM Access Error!

09)Windows Controlpanel->Open Firewall Settings->Advanced settings->Inbound Rules
10)Rightclick->New Rule->Program->This program path-><path>MailServer.exe
11)Next->Allow the connection->Next-> click Domain/Private/Public -> next
12)Give it some name (for example hms_dcom_in)

Thats all.
Now run hMailServerAdmin and connect to your hMailServer remote Computer
hms_connect.png
hms_logged_in.png

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

Re: Howto: hMailAdmin -> DCOM Remote access

Post by mattg » 2016-10-04 15:01

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: 1688
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Howto: hMailAdmin -> DCOM Remote access

Post by Dravion » 2016-10-04 22:52

I think the firewall part should be in the docs, because the DCOM ports are not open
by default on the hMailServer machine. Its not done with just open Port 135 on the hMailServer Computer. You need some Dynamic Portrange for DCOM on the Serverside
with can be done best if you create a new inbound firewall rule as described in my
tutorial which points to hMailServer.exe and grants every port hMailServer needs durning
the DCOM Session.

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

Re: Howto: hMailAdmin -> DCOM Remote access

Post by mattg » 2016-10-04 23:44

OK
I've added the firewall bit...

How does that look now?
(I can't add screen shots to the help files, so we should leave the thread here. Also it is a good place for questions from other users)

As usual, thanks for sharing.


Oh, and I've never gotten this to work. Maybe the firewall was my issue all along. :)
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: 1688
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Howto: hMailAdmin -> DCOM Remote access

Post by Dravion » 2016-10-05 00:42

Yeah, it was a little challenge but fortently now it works :D

ps:
I only tested this solution only for LAN's (local company or home network with static ips).

pps2:
Maybe its possible to use this to connect to a hosted dedicated or vps server with
hMailServer installed on top of it (for example a GoDaddy VPS-Server) or a remotely
via DSL-Connected company network for hMailServer customer maintenance situations.

Post Reply