MailSuite Pro documentation

Autodiscover configuration


Configuring Autodiscover would allow email clients such as Outlook to automatically determine IMAP and SMTP server settings based on mail server hostname.

This configuration requires performing several steps described below.

Configuring DNS records

Assuming you set this up for some, you will need to have CNAME created for your domain. Most domain name registrars allow for adding subdomains and/or managing DNS records. It usually takes a few hours to have DNS changes propagated.

Reconfiguring web server

Email clients which use autodiscover approach would attempt to send requests to an address of the following kind:

You'll need to reconfigure your webserver (most likely, specific virtual host assigned for MailSuite Pro) to have that URL redirected to:

- assuming is the URL of your MailSuite Pro installation.

Example of nginx config:

server {
    listen 443 ssl;

    root html;

    include "";

    location / {
        location ~* /autodiscover/autodiscover.xml {
            rewrite (?i)^/autodiscover/autodiscover.xml(.*) /index.php?autodiscover last;

Verifying configuration

Now that configuration changes were made, you can try checking those with Outlook or another client which supports autodiscover. Another option is to try the following PHP sample code:

$url = "";
$email = "";
$sInput = '<?'.'xml version="1.0" encoding="utf-8"?'.'><Autodiscover xmlns=""><Request><EMailAddress>'.$email.'</EMailAddress><AcceptableResponseSchema></AcceptableResponseSchema></Request></Autodiscover>';
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => $url,
$resp = curl_exec($curl);
echo '<pre>'.htmlspecialchars($resp).'</pre>';

On success, you'll get the complete list of data in XML format required for autodiscover to work on email client end - hostnames, port numbers, SSL-related information, etc.