By default, IIS6 is not allowed to connect to hMailServer because of the Distributed COM permissions that Windows uses. Also, Apache run as a user account with restricted permissions is not allowed to connect by default.
Follow these steps to give IIS or Apache the required permissions to connect to hMailServer using DCOM.
- Start DCOM config by selecting Start, Run, enter dcomcnfg.exe and press OK.
- In the Component Services program, expand the Component Services folder
- Expand down to Computers | My Computer | DCOM Config
- Right-click on hMailServer and select properties
- Select the Security tab
- Under "Launch and Activation Permissions", select Customize and click on Edit
- Under "Group or user names", click Add
- For IIS6: add the built-in anonymous IIS user account
- For Apache: add the Apache user account
- Set the Local Launch and Local Activation permissions for this user to Allow