SUMMARY
The MAPI connector for Microsoft Outlook has a "Detect Settings"
button when configuring a new account. This button makes it easier for a user to
configure their account by retrieving the necessary account options from the
server with just an email address and password. The tests it performs are very
similar to how email clients such as Microsoft Outlook do autodiscovery. In
order for this button to be effective, autodiscovery needs to be configured on
the server.
Note: In order for the autodiscovery to work, the users email
address has to match their username. So their mailbox name needs to match the
local part of the email address and the postoffice needs to match the domain.
DETAIL
The tests are performed in the following order (assuming example.com is the
domain in the email address). As soon as the client gets a result, it stops and
fills out the details. So you only need to configure your server to return
autodiscover results for one of these tests:
-
A DNS SRV lookup on _autodiscover._tcp.example.com is done to get the
host name of the server supplying the autodiscover results. The returned
hostname is used then for accessing
https://hostname/autodiscover/autodiscover.xml and
http://hostname/autodiscover/autodiscover/xml.
-
Retrieve https://example.com/autodiscover/autodiscover.xml
-
Retrieve http://example.com/autodiscover/autodiscover.xml
-
Retrieve https://autodiscover.example.com/autodiscover/autodiscover.xml
-
Retrieve http://autodiscover.example.com/autodiscover/autodiscover.xml
-
Retrieve https://autodiscover.example.com/autodiscover.xml
-
Retrieve http://autodiscover.example.com/autodiscover.xml
-
A DNS SRV lookup on _imaps._tcp.example.com to get the IMAP settings. If
this fails, then the lookup for IMAP access is done on
_imap._tcp.example.com. Then a DNS SRV lookup
on _submission._tcp.example.com to get the SMTP submission settings.
Using this option for autodiscovery uses the email address as "Your name"
instead of the one from the mailbox details on the server.
The easiest way to configure the server without too much hassle is to
cater for step 4 or 5, since it uses its own domain and does not require
much server configuration. The autodiscover.xml file mentioned in the URLs
in the steps is an autogenerated file from the server. It is generated on demand
(since it is custom for each user) by the MailEnable Protocols IIS website, or
by the autodiscover virtual directory under other IIS sites. The MailEnable
Protocols website recognises an autodiscover request, so you will not see an
autodiscover directory or file shown in the IIS administration program.
To cater for step 4 or 5, you would follow the details
below:
DNS configuration:
-
Create an A record for your domain, using the subdomain autodiscover,
such as autodiscover.example.com. This needs to point to the IP address of the
mail server.
MailEnable Protocols website configuration:
-
Navigate within Windows to: Control Panel >
Administrative tools > Internet Information Services (IIS) Manager and open
IIS.
-
Expand IIS root node > Sites
-
Right click on "MailEnable Protocols" and select "Edit
Bindings".
-
Click "Add" and select "Type" and "http" and select the
assigned IP address and set to port 80.
-
Specify the host name as: autodiscover.example.com.
-
Click OK.
-
If you have an SSL certificate for
autodiscover.example.com then you can add a https binding with port set
to 443.
-
Click OK.
-
Click Close.
MailEnable domain level "Autodiscover"
configuration:
-
Open the MailEnable Administration console.
-
Navigate to: Messaging Manager > Post Offices >
[Postoffice] > Domains
-
Right click on the domain in the right hand pane window
and select Properties from the popup menu.
-
Select the "Autodiscover" tab.
-
The "Detect" button can be used to best guess the host
name and port settings for each of the available mail server protocols.
The detection process will perform DNS queries to best guess the host names.
Check each result to verify that it is correct, as these are the values which
will be sent to Outlook to be used.
-
Once you have verified the settings for the domain
click OK to close the window.
As well as domain level bindings, you do have the option to
configure the autodiscovery server wide. To access these settings, in the
administration program, expand the Servers branch, right click on the localhost
icon and select Properties from the popup menu. Click the Autodiscovery tab to
access the server wide settings.