Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Fix DCOM object `hMailServer.Application’: Access is denied” issue.  (Read 5058 times)

0 Members and 1 Guest are viewing this topic.


  • Guest
DCOM means Distributed Component Object Model. It is a technology offered by Microsoft, for communicating among software components distributed among the computers in a network.

Component Object Model (COM) that is provided by Microsoft can make the distributed application secured without setting any security code or design in the component. The COM specific setting can be configured using the configuration utility dcomcnfg.exe. This utility is included with every windows operating system.  If an application requires COM to communicate over a network, its COM properties need to be configured using DCOMCONFG utility.

In Windows, by default, IIS, Apache or any other webserver application is not allowed to connect to hMailServer because of the Distributed COM permissions that Windows uses. So it is important to allow these services to connect to hMailServer using DCOM.

When  IIS is not having necessary permissions to connect to hMailServer using DCOM, you can follow these steps to give IIS or Apache the required permissions to connect to hMailServer using DCOM:
1.Start DCOM config by selecting Start, Run, enter dcomcnfg.exe and press OK.

2.In the Component Services program, expand the Component Services folder

3.Expand down to Computers >> My Computer >> DCOM Config

4.Right-click on hMailServer and select properties

5.Select the Security tab

6.Under “Launch and Activation Permissions”, select Customize and click on Edit

7.“Group or user names”, click Add

8.For IIS: add the built-in anonymous IIS user account

9.Set the Local Launch and Local Activation permissions for this user to Allow.

Thank you,