autodiscover.xml & /mail/config-v1.1.xml for Outlook & Thunderbird email clients using postfixadmin

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 key is to remove the SSL line and add <Encryption>tls</Encryption>

Example for Outlook:
<?xml version=”1.0″ encoding=”utf-8″ ?>
<Autodiscover xmlns=”http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006″>
<Response xmlns=”http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a”>
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>IMAP</Type>
<TTL>24</TTL>
<Server>$IMAP_HOST</Server>
<Port>$IMAP_PORT</Port>
<LoginName>$SMTP_LOGIN</LoginName>
<DomainRequired>off</DomainRequired>
<SSL>$IMAP_SSL</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>SMTP</Type>
<TTL>24</TTL>
<Server>$SMTP_HOST</Server>
<Port>587</Port>
<LoginName>$SMTP_LOGIN</LoginName>
<DomainRequired>off</DomainRequired>
<Encryption>tls</Encryption>
<AuthRequired>on</AuthRequired>
</Protocol>
</Account>
</Response>
</Autodiscover>

 

Example for Thunderbird:
<?xml version=”1.0″ encoding=”UTF-8″?>
<clientConfig version=”1.1″>

<emailProvider id=”immanuelschool.org.uk”>
<domain>immanuelschool.org.uk</domain>
<displayName>Immanuel Christian School</displayName>
<displayShortName>ICS</displayShortName>

<incomingServer type=”imap”>
<hostname>email.immanuelschool.org.uk</hostname>
<port>993</port>
<socketType>SSL</socketType>
<authentication>password-cleartext</authentication>
<username>$SMTP_LOGIN</username>
</incomingServer>

<outgoingServer type=”smtp”>
<hostname>email.immanuelschool.org.uk</hostname>
<port>587</port>
<socketType>STARTTLS</socketType>
<authentication>password-cleartext</authentication>
<username>$SMTP_LOGIN</username>
</outgoingServer>
</emailProvider>
</clientConfig>

Post Tagged with , , , ,
Comments are closed.