
{"id":123,"date":"2017-12-06T20:59:58","date_gmt":"2017-12-06T20:59:58","guid":{"rendered":"http:\/\/www.miscstuff.org.uk\/?p=123"},"modified":"2024-08-19T10:34:32","modified_gmt":"2024-08-19T10:34:32","slug":"autodiscover-autoconfig-for-email-clients","status":"publish","type":"post","link":"https:\/\/miscstuff.org.uk\/?p=123","title":{"rendered":"autodiscover.xml &#038; \/mail\/config-v1.1.xml for Outlook &#038; Thunderbird email clients using postfixadmin"},"content":{"rendered":"<p><strong>Postfixadmin setup<\/strong><br \/>\n<a href=\"https:\/\/www.exratione.com\/2016\/05\/a-mailserver-on-ubuntu-16-04-postfix-dovecot-mysql\/\">https:\/\/www.exratione.com\/2016\/05\/a-mailserver-on-ubuntu-16-04-postfix-dovecot-mysql\/<\/a><\/p>\n<pre><strong>Autoconfiguration of email clients:\r\n\r\nThe Perl Script:<\/strong>\r\n<a href=\"https:\/\/github.com\/virtualmin\/virtualmin-gpl\/blob\/master\/autoconfig.cgi\">https:\/\/github.com\/virtualmin\/virtualmin-gpl\/blob\/master\/autoconfig.cgi<\/a>\r\n\r\n<strong>The Apache config:<\/strong><\/pre>\n<p><a href=\"https:\/\/serverfault.com\/questions\/829260\/block-requests-from-bots-by-pattern-in-apache-with-mod-rewrite-mod-rewrite-not\">https:\/\/serverfault.com\/questions\/829260\/block-requests-from-bots-by-pattern-in-apache-with-mod-rewrite-mod-rewrite-not<\/a><\/p>\n<p><strong>The STARTTLS problem<\/strong><br \/>\nhttps:\/\/www.virtualmin.com\/node\/52609<br \/>\nThe key is to remove the SSL line and add\u00a0<code>&lt;Encryption&gt;tls&lt;\/Encryption&gt;<\/code><\/p>\n<p><strong>Example for Outlook:<\/strong><br \/>\n&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243; ?&gt;<br \/>\n&lt;Autodiscover xmlns=&#8221;http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/responseschema\/2006&#8243;&gt;<br \/>\n&lt;Response xmlns=&#8221;http:\/\/schemas.microsoft.com\/exchange\/autodiscover\/outlook\/responseschema\/2006a&#8221;&gt;<br \/>\n&lt;Account&gt;<br \/>\n&lt;AccountType&gt;email&lt;\/AccountType&gt;<br \/>\n&lt;Action&gt;settings&lt;\/Action&gt;<br \/>\n&lt;Protocol&gt;<br \/>\n&lt;Type&gt;IMAP&lt;\/Type&gt;<br \/>\n&lt;TTL&gt;24&lt;\/TTL&gt;<br \/>\n&lt;Server&gt;$IMAP_HOST&lt;\/Server&gt;<br \/>\n&lt;Port&gt;$IMAP_PORT&lt;\/Port&gt;<br \/>\n&lt;LoginName&gt;$SMTP_LOGIN&lt;\/LoginName&gt;<br \/>\n&lt;DomainRequired&gt;off&lt;\/DomainRequired&gt;<br \/>\n&lt;SSL&gt;$IMAP_SSL&lt;\/SSL&gt;<br \/>\n&lt;AuthRequired&gt;on&lt;\/AuthRequired&gt;<br \/>\n&lt;\/Protocol&gt;<br \/>\n&lt;Protocol&gt;<br \/>\n&lt;Type&gt;SMTP&lt;\/Type&gt;<br \/>\n&lt;TTL&gt;24&lt;\/TTL&gt;<br \/>\n&lt;Server&gt;$SMTP_HOST&lt;\/Server&gt;<br \/>\n&lt;Port&gt;587&lt;\/Port&gt;<br \/>\n&lt;LoginName&gt;$SMTP_LOGIN&lt;\/LoginName&gt;<br \/>\n&lt;DomainRequired&gt;off&lt;\/DomainRequired&gt;<br \/>\n<strong>&lt;Encryption&gt;tls&lt;\/Encryption&gt;<\/strong><br \/>\n&lt;AuthRequired&gt;on&lt;\/AuthRequired&gt;<br \/>\n&lt;\/Protocol&gt;<br \/>\n&lt;\/Account&gt;<br \/>\n&lt;\/Response&gt;<br \/>\n&lt;\/Autodiscover&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Example for Thunderbird:<\/strong><br \/>\n&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br \/>\n&lt;clientConfig version=&#8221;1.1&#8243;&gt;<\/p>\n<p>&lt;emailProvider id=&#8221;immanuelschool.org.uk&#8221;&gt;<br \/>\n&lt;domain&gt;immanuelschool.org.uk&lt;\/domain&gt;<br \/>\n&lt;displayName&gt;Immanuel Christian School&lt;\/displayName&gt;<br \/>\n&lt;displayShortName&gt;ICS&lt;\/displayShortName&gt;<\/p>\n<p>&lt;incomingServer type=&#8221;imap&#8221;&gt;<br \/>\n&lt;hostname&gt;email.immanuelschool.org.uk&lt;\/hostname&gt;<br \/>\n&lt;port&gt;993&lt;\/port&gt;<br \/>\n&lt;socketType&gt;SSL&lt;\/socketType&gt;<br \/>\n&lt;authentication&gt;password-cleartext&lt;\/authentication&gt;<br \/>\n&lt;username&gt;$SMTP_LOGIN&lt;\/username&gt;<br \/>\n&lt;\/incomingServer&gt;<\/p>\n<p>&lt;outgoingServer type=&#8221;smtp&#8221;&gt;<br \/>\n&lt;hostname&gt;email.immanuelschool.org.uk&lt;\/hostname&gt;<br \/>\n&lt;port&gt;587&lt;\/port&gt;<br \/>\n&lt;socketType&gt;STARTTLS&lt;\/socketType&gt;<br \/>\n&lt;authentication&gt;password-cleartext&lt;\/authentication&gt;<br \/>\n&lt;username&gt;$SMTP_LOGIN&lt;\/username&gt;<br \/>\n&lt;\/outgoingServer&gt;<br \/>\n&lt;\/emailProvider&gt;<br \/>\n&lt;\/clientConfig&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Postfixadmin setup https:\/\/www.exratione.com\/2016\/05\/a-mailserver-on-ubuntu-16-04-postfix-dovecot-mysql\/ Autoconfiguration of email clients: The Perl Script: https:\/\/github.com\/virtualmin\/virtualmin-gpl\/blob\/master\/autoconfig.cgi The Apache config: https:\/\/serverfault.com\/questions\/829260\/block-requests-from-bots-by-pattern-in-apache-with-mod-rewrite-mod-rewrite-not The STARTTLS problem https:\/\/www.virtualmin.com\/node\/52609 The<\/p>\n<div class=\"read-button read_more_btn_text\"><a class=\"read_more\" href=\"https:\/\/miscstuff.org.uk\/?p=123\">Read Now<span class=\"arrow_readm\"> &#x25BA;<\/span><\/a><\/div>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,4,6,3],"tags":[25,16,19,20,18],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-email","category-linux","category-pc","category-windows","tag-email","tag-linux","tag-outlook","tag-postfix","tag-thunderbird"],"_links":{"self":[{"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/123"}],"collection":[{"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":4,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}