1236

MDaemon 19.5 and above - How to use the Mobile theme when running Webmail in IIS

MDaemon version 19.5 introduced a replacement of the old Mobile theme with an updated theme.  If the current Webmail service is running using IIS, additional configurations need to be made in order to utilize the new theme.

Note: The setup of these services under IIS is NOT supported by MDaemon Technologies' support team.  Those who choose to run any MDaemon related protocol or service under IIS must be aware of all security issues and ramifications of running any applications under IIS.

  1. Edit the Default Document of the Webmail folder
    1. Select the Webmail folder (not to be confused with the Webmail site name in this example)
    2. Double click Default Document
    3. Select the WorldClient.dll default document
    4. Click Remove

    5. Click Add
    6. Enter index.html
    7. Click OK

  2.  Redirect WorldClientAPI requests to the worldclient.dll
    1. Select the Webmail website
    2. Double click on Handler Mappings
    3. Select Add Script Map...

    4. Enter WorldClientAPI in the Request Path
    5. The Executable Path is the worldclient.dll in the \MDaemon\WorldClient\HTML directory
    6. Enter WorldClientAPI for the name
    7. Click Request Restrictions

    8. Remove the check mark in the Invoke handler only if request is mapped to:
    9. Select the Verbs tab and verify All verbs is selected
    10. Select the Access tab and select Execute

    11. Click OK
    12. Click Yes
  3. Create a URL Rewrite
    1. Select the Webmail folder (not to be confused with the Webmail site name in this example)
    2. Double Click URL Rewrite
    3. Select Add Rules from the Actions menu
    4. Select Blank rule
    5. Click OK
    6. Enter a name for the Inbound Rule
    7. Select Matches the Pattern in the Requested URL
    8. Select Regular Expressions in the Using drop down
    9. Enter .* in the Pattern text box
    10. Expand the Conditions section
    11. Click Add in the Condition section
    12. Select Is Not a Directory in the Check if input string section
      This changes the Condition to {REQUEST_FILENAME}
    13. Click OK
    14. Click Add in the Condition section
    15. Select Is Not a File in the Check if input string section
      This changes the Condition to {REQUEST_FILENAME}
    16. Click OK
    17. Select Rewrite for the Action Type
    18. Enter index.html in the Action Properties
    19. Check Append query string
    20. Check Log rewritten URL
    21. Click Apply to apply the Inbound rule