I have a linux based mail server (not Microsoft Exchange) at mail.example.com
I host email for multiple domains at this server: example1.com
, example2.com
, example3.com
, etc
I have a mail client running Outlook 2019.
When the user adds a new account with their email, e.g.: [email protected]
and then clicks "continue" and then "IMAP/POP", [the incoming and outgoing server fields are blank][1].
Things I have tried to get auto discover working, but don't help:
Hosted an autodiscover.xml file
at http://autodiscover.example1.com/autodiscover/autodiscover.xml
Hosted an autodiscover.xml file at http://example1.com/autodiscover/autodiscover.xml
Followed [Thunderbird's instructions][2] and hosted a config.xml file at https://example1.com/mail/config-v1.1.xml
Added the following SRV records for the example1.com
domain:
_imaps._tcp IN SRV 0 1 993 mail.example.com.
_submission._tcp IN SRV 0 1 587 mail.example.com.
my autodiscover.xml file:
<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>
<Server>mail.example.com</Server>
<Port>993</Port>
<DomainRequired>off</DomainRequired>
<LoginName />
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>POP3</Type>
<Server>mail.example.com</Server>
<Port>995</Port>
<DomainRequired>off</DomainRequired>
<LoginName />
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>SMTP</Type>
<Server>mail.example.com</Server>
<Port>587</Port>
<DomainRequired>off</DomainRequired>
<LoginName />
<SPA>off</SPA>
<Encryption>SSL</Encryption>
<AuthRequired>on</AuthRequired>
<UsePOPAuth>off</UsePOPAuth>
<SMTPLast>off</SMTPLast>
</Protocol>
</Account>
</Response>
</Autodiscover>
my config-v1.1.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<clientConfig version="1.1">
<emailProvider id="example.com">
<domain>example.com</domain>
<displayName>Company Name</displayName>
<displayShortName>Company</displayShortName>
<incomingServer type="imap">
<hostname>mail.example.com</hostname>
<port>993</port>
<socketType>SSL</socketType>
<authentication>password-encrypted</authentication>
<username>%EMAILADDRESS%</username>
</incomingServer>
<outgoingServer type="smtp">
<hostname>mail.example.com</hostname>
<port>587</port>
<socketType>STARTTLS</socketType>
<authentication>password-encrypted</authentication>
<username>%EMAILADDRESS%</username>
</outgoingServer>
</emailProvider>
<emailProvider id="example1.com">
<domain>example1.com</domain>
<displayName>Company 2</displayName>
<displayShortName>Company</displayShortName>
<incomingServer type="imap">
<hostname>mail.example.com</hostname>
<port>993</port>
<socketType>SSL</socketType>
<authentication>password-encrypted</authentication>
<username>%EMAILADDRESS%</username>
</incomingServer>
<outgoingServer type="smtp">
<hostname>mail.example.com</hostname>
<port>587</port>
<socketType>STARTTLS</socketType>
<authentication>password-encrypted</authentication>
<username>%EMAILADDRESS%</username>
</outgoingServer>
</emailProvider>
</clientConfig>```
[1]: https://i.stack.imgur.com/HLROe.png
[2]: https://wiki.mozilla.org/Thunderbird:Autoconfiguration