Autodiscover / Autoconfig


when creating a new mail account in K9 mail, it only asks for the E-Mail address and finds the corresponding IMAP, POP3, and SMTP servers on its own.
Is it documented somewhere how K9 resolves those servers? Is it done via the official autodiscover/autoconfig mechanisms or is it simply attaching imap, pop, or smtp to the mail domain or is there some kind of K9 lookup table?
I am asking, because the mechanism does not resolve the correct servers on my private setup and I would like to understand what I have to reconfigure.

Thanks a lot in advance,


K-9 Mail up to version 6.708 only supports automatic setup with the providers/domains listed in providers.xml.

The new account setup supports Thunderbird’s autoconfig mechanism. K-9 Mail 6.709 is the first beta version that includes the new account setup.

1 Like

Thanks for the information.
Will K-9 Mail support the whole Thunderbird autoconfig or only the ISPDB (because the file in your link mainly focuses on ISPDB)?
How exactly does K-9 Mail behave in the older versions (<= 6.708) if the domain is not found in the providers.xml? Will it simply attach imap, pop, or smtp to the domain?

It will ask you to enter the details.

Yes, the app will suggest a server name based on the email domain and protocol the user has selected. The subdomains are imap, pop3, and smtp. But you’ll always end up in the manual setup flow. The best you can do is to use those exact server names (and ports). That way manual setup can be reduced to tapping the “Next” button.

1 Like

That’s because there’s currently no good documentation for autoconfig :frowning_face:

The beta supports fetching the config from https://autoconfig.{domain}/mail/config-v1.1.xml or https://{domain}/.well-known/autoconfig/mail/config-v1.1.xml. It does not support the server name guessing step that is included in Thunderbird.