1. Knowledge Base
  2. MDaemon® Email Server

How to use MDaemon Pro Theme when running Webmail in IIS

MDaemon version 19.5 (and above) introduced a replacement of the old Mobile theme with an updated theme, the Pro 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 and support of these services under IIS is NOT supported by MDaemon Technologies' support team.  Those who choose to run any MDaemon related protocols or services 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
      iis mdaemon webmail mobile default document
    5. Click Add
    6. Enter index.html
    7. Click OK
      iis mdaemon webmail mobile default index
  2.  Redirect WorldClientAPI requests to the worldclient.dll
    1. Select the Webmail website
    2. Double click on Handler Mappings
    3. Select Add Script Map...
      iis mdaemon webmail mobile default handler mapping
    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
      iis mdaemon webmail mobile script map
    8. Remove the check mark in the Invoke handler only if request is mapped to:
      iis mdaemon webmail mobile request restrictions
    9. Select the Verbs tab and verify All verbs is selected
      iis mdaemon webmail mobile verbs
    10. Select the Access tab and select Execute
      iis mdaemon webmail mobile access
    11. Click OK
    12. Click Yes
      iis mdaemon webmail mobile notification
  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
      iis mdaemon webmail mobile add 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
      iis mdaemon webmail mobile edit rule
    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
      iis mdaemon webmail mobile edit rule inbound
    21. Click Apply to apply the Inbound rule