Aurora Corporate documentation

Configuring autodiscover

It's possible to configure Aurora Corporate so that it will send IMAP/SMTP details for the mail server at autodiscover requests sent by clients like Microsoft Outlook.

Please bear in mind that this configuration is performed for primary domain. For example, if you have Aurora Corporate installed at, autodiscover needs to be configured for host, and it's assumed that you're dealing with email addresses.

If reconfiguring primary domain is not an option, you can set up - most clients would check both and use whichever one is available.

Actually, to discover settings for email account in domain, email clients check against URL of the following kind:


So if you wish to have autodiscover enabled, reconfigure your web server by adding an alias pointing from URL of that kind to - with the correct URL of Aurora Corporate specified.

NB: For this to work, make sure you have correct IMAP and SMTP server names supplied in data/settings/modules/Mail.config.json file, "ExternalHostNameOfLocalImap" and "ExternalHostNameOfLocalSmtp" respectively.

Apache configuration

RewriteEngine on
RewriteRule "^autodiscover/autodiscover.xml$" "/?autodiscover" [NC,L]

Nginx configuration

location ~ /(?:a|A)utodiscover/(?:a|A)utodiscover.xml {
    return 307;

Testing autodiscover

To make sure everything works correctly, place the following PHP script into your web directory, adjust autodiscover URL and supply an email address:

$sUrl = "";
$sEmail = "";
$sPost = '<Autodiscover xmlns=""><Request><EMailAddress>'.$sEmail.'</EMailAddress><AcceptableResponseSchema></AcceptableResponseSchema></Request></Autodiscover>';
$rCurl = curl_init();
$acurlOpt = array(
    CURLOPT_URL => $sUrl,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => array('Content-Type: text/xml')
curl_setopt_array($rCurl, $acurlOpt);
$mResult = curl_exec($rCurl);
echo "<pre>".htmlspecialchars($mResult)."</pre>";

Open the script in web browser, you should see a bunch of settings for the account you have specified:

<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="">
    <Response xmlns="">