Lookup order
The first valid answer wins. HTTPS with a valid certificate only, 8 s timeout per step.
Neruna Cloud, if the device is connected
https://autoconfig.example.com/mail/config-v1.1.xml
https://example.com/.well-known/autoconfig/mail/config-v1.1.xml
Neruna's directory autoconfig.neruna.cloud: Mozilla's database plus CalDAV, CardDAV and Exchange (EWS); unknown domains also via their mail server (MX). Only the domain is sent.
Mozilla's autoconfig database, if Neruna's directory cannot be reached (only the domain is sent)
No match: mail.domain is suggested for IMAP/SMTP, user name = e-mail address. CalDAV/CardDAV additionally via /.well-known.
DNS SRV records (RFC 6186) are not evaluated.
File
Format config-v1.1.xml. calendar and addressBook are optional.
<?xml version="1.0" encoding="UTF-8"?>
<clientConfig version="1.1">
<emailProvider id="example.com">
<domain>example.com</domain>
<displayName>Example AG</displayName>
<incomingServer type="imap">
<hostname>mail.example.com</hostname>
<port>993</port>
<socketType>SSL</socketType>
<authentication>password-cleartext</authentication>
<username>%EMAILADDRESS%</username>
</incomingServer>
<outgoingServer type="smtp">
<hostname>mail.example.com</hostname>
<port>587</port>
<socketType>STARTTLS</socketType>
<authentication>password-cleartext</authentication>
<username>%EMAILADDRESS%</username>
</outgoingServer>
</emailProvider>
<calendar type="caldav">
<serverURL>https://dav.example.com/</serverURL>
<username>%EMAILADDRESS%</username>
</calendar>
<addressBook type="carddav">
<serverURL>https://dav.example.com/</serverURL>
<username>%EMAILADDRESS%</username>
</addressBook>
</clientConfig>
socketTypeSSL (implicit TLS, 993/465) or STARTTLS (143/587)
authenticationpassword-cleartext: user name/password over TLS
username%EMAILADDRESS%, %EMAILLOCALPART%, %EMAILDOMAIN%
calendar, addressBook- Directly under
clientConfig; the base URL is enough, collections are discovered.
Help for the users
During setup and in the account settings Neruna shows what the file offers for this: documentation (instructions, support – mailto: too), webMail and enable (what to switch on first, e.g. IMAP in the webmail).
<emailProvider id="example.com">
…
<documentation url="https://example.com/help/mail">
<descr lang="de">Anleitung</descr>
<descr lang="en">Instructions</descr>
</documentation>
<documentation url="mailto:support@example.com">
<descr lang="en">Support</descr>
</documentation>
<enable visiturl="https://webmail.example.com/settings">
<instruction lang="en">Switch on IMAP first.</instruction>
</enable>
</emailProvider>
<webMail>
<loginPage url="https://webmail.example.com/"/>
</webMail>
DNS and web server
Point autoconfig.domain to a web server and serve the file at /mail/config-v1.1.xml:
autoconfig.example.com. 3600 IN CNAME www.example.com.
Certificate valid for autoconfig.domain.
Alternatively: https://domain/.well-known/autoconfig/mail/config-v1.1.xml
Several domains: one autoconfig record each, the same file is fine. The ?emailaddress= parameter may be ignored.
Neruna's directory
autoconfig.neruna.cloud mirrors Mozilla's database daily and adds CalDAV, CardDAV, Exchange (EWS) and providers Mozilla does not know. Unknown domains are found through their mail server (MX) – except for spam filters and relays, whose customers keep their mailboxes elsewhere. Only the domain is asked for.
curl -s https://autoconfig.neruna.cloud/v1/example.com
If your provider is missing or something is wrong: contact form. Thunderbird can use it too (mailnews.auto_config_url = https://autoconfig.neruna.cloud/v1.1/).
Your own domain through Neruna Cloud
Without an autoconfig file of your own: add the domain in the portal under Domains, create the TXT record shown at your DNS provider, “Check now” and choose a server profile. Neruna's directory then serves your organisation's servers – with webmail, instructions and support from the server profile. Only one organisation can confirm a domain. Keep the TXT record in place: Neruna checks it every week; if it is missing for 14 days, the confirmation lapses.
_neruna-verify.example.com. 3600 IN TXT "neruna-verify=…"
Testing
Expected: the XML file.
curl -s "https://autoconfig.example.com/mail/config-v1.1.xml?emailaddress=anna@example.com"
In Neruna, “Add account” shows the source after “Next” (e.g. “autoconfig.example.com”).
Finding calendars and contacts →