MDaemon: How to setup the ActiveSync AutoDiscovery Service
MDaemon's ActiveSync server supports AutoDiscovery which simplifies the configuration of ActiveSync clients by providing support for account through the AutoDiscover protocol.
Note:AutoDiscovery requires HTTPS, you must configure WorldClient to use HTTPS. Please see related articles on how to configure this.
- Add a new A Record or CNAME to your public DNS. If using an A record, it is required that the record is autodiscover.domain.com and it points to public IP address of the server that MDaemon is installed on. If using a CNAME, it is required that the record is autodiscover.domain.com and it points to the hostname of the MDaemon server.
- Once the record has been propagated, verify that you can access the AutoDiscovery Service for MDaemon. You can verify this by browsing to the following link:
- The end-user enters his or her e-mail address and domain credentials, for example, email@example.com.
- The client uses the domain information in the user‘s e-mail address, that is, example.com, and tries to locate the AutoDiscovery service by sending an AutoDiscovery command request to the following predefined URLs:
- In the above example, these URLs map to https://example.com/AutoDiscover/AutoDiscover.xml and https://AutoDiscover.example.com/AutoDiscover/AutoDiscover.xml
Account AutoDiscovery uses an e-mail address to look up information that is required to configure software. Given an email EduardDell@example.com, a list of possible AutoDiscovery servers is generated. The client contacts the name AutoDiscover.domain.com to provide the information. If that information is not found, the client tries to send the request to the domain name. If the information still is not retrieved, the client can use a manual configuration.
For example, the client tries these servers:
Each server is sent an HTTP Post command. The post data is an XML request for a certain type of information. E-mail account configuration will be the first use. The XML contains information that helps execute the request. For mail, the information includes the e-mail address, the protocols that the client software supports, the Web browser that is installed, the type of proxy that is being used, and the types of authentication that can be used. The post is sent for servername/AutoDiscover/AutoDiscover.xml. The servername is defined according to the process described earlier in this topic.
If running Worldclient under IIS, you will need to configure a new URL Rewrite:
- Open the IIS Manager
- Click Start
- Click All Programs
- Click Administrative Tools
- Click Internet Information Services (IIS) Manager
- On the Connections pane, expand the [Machine_name] node
- Expand the Sites node
- Click on the WorldClient site in the Connections pane
- Double click on URL Rewrite
- On the Actions pane, click Add Rule(s)...
- Under Inbound Rules, select Blank Rule and click OK
- Name the rule: mdAutoDiscover.dll
- Under Match URLset these settings:
- Requested URL: 'Matches the Pattern' (the default)
- Using: 'Regular Expressions' (the default)
- Pattern: ^AutoDiscover
- Ignore Case: 'Enabled' (the default)
- Under Actionset these settings:
- Action type: 'Rewrite' (the default)
- Rewrite URL: 'mdAutoDiscover.dll'
- Append query string: 'Enabled' (the default)
- In the Actions pane, click Apply
- In the Actions pane, click Back to Rules
- Close Internet Information Services (IIS) Manager
Note: The setup of this program under IIS is NOT supported by tech support and those who choose to run WorldClient under IIS must be aware of all security issues and ramifications of running any applications under IIS. It is recommended that all Patches and updates be installed on IIS before the installation of MDSyncML as an ISAPI extension.
Note: Some devices act differently when attempting to connect via AutoDiscover.