// <ahref="./index.html">Document Index</a></div><h1id="setup-dns-records-for-autoconfig-and-autodiscover">Setup DNS records for autoconfig and autodiscover</h1>
<li><code>https://autoconfig.host.com/mail/config-v1.1.xml</code> (DNS A record of <code>autoconfig.host.com</code> must be pointed to IP of your mail server <code>a.b.c.d</code>.)</li>
<li><code>https://autoconfig.host.com/.well-known/autoconfig/mail/config-v1.1.xml</code> (DNS A record of <code>autoconfig.host.com</code> must be pointed to IP of your mail server <code>a.b.c.d</code>.)</li>
</ul>
<h2id="how-auto-discover-works-in-microsoft-outlook">How auto-discover works in Microsoft Outlook</h2>
<divclass="admonition warning">
<pclass="admonition-title">Warning</p>
<p>Outlook requires a valid ssl cert, a self-signed ssl cert may fail.</p>
</div>
<p>Without Microsoft Exchange, the order of logic that Outlook 2007 and newer
releases use when trying to figure out where to get server settings is as
follows:</p>
<ol>
<li>HTTPS root domain query. Outlook uses the domain part of user email address
to do this query, so it's <code>https://customer.com/autodiscover/autodiscover.xml</code>.</li>
<li><code>https://autodiscover.host.com/autodiscover/autodiscover.xml</code> (DNS A record of <code>autodiscover.host.com</code> must be pointed to IP of your mail server <code>a.b.c.d</code>.)</li>
</ul>
<h2id="setup-dns-record-for-autoconfig">Setup DNS record for autoconfig</h2>
<p>Please create either a DNS A or CNAME record <code>autoconfig.customer.com</code> for
your customer's domain name:</p>
<ul>
<li>For DNS A record, please point to your mail server IP address <code>a.b.c.d</code>.</li>
<li>For DNS CNAME record, please point to your mail server hostname <code>mail.host.com</code>.</li>
</ul>
<p>After created, you may need to wait for 2 or more hours until your DNS vendor
flush the DNS cache. Then you can test the autoconfig with curl commands below:</p>
<p>Now run <code>curl</code> commands to verify it:</p>
<pre><code>curl -k -X POST -d @/tmp/outlook.xml https://autodiscover.customer.com/autodiscover/autodiscover.xml
curl -k -X POST -d @/tmp/eas.xml https://autodiscover.customer.com/autodiscover/autodiscover.xml
curl -k -X POST -d @/tmp/outlook.xml https://mail.host.com/autodiscover/autodiscover.xml
curl -k -X POST -d @/tmp/eas.xml https://mail.host.com/autodiscover/autodiscover.xml
</code></pre>
<p>It should print XML format content on console.</p><divclass="footer">
<pstyle="text-align: center; color: grey;">All documents are available in <ahref="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <ahref="http://creativecommons.org/licenses/by-nd/3.0/us/"target="_blank">Creative Commons</a> license. You can <ahref="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <ahref="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div>
<!-- Global site tag (gtag.js) - Google Analytics -->