Bug 481763 - Support for RFC 6186 for Mail Auto-Configuration
Summary: Support for RFC 6186 for Mail Auto-Configuration
Status: RESOLVED DUPLICATE of bug 441193
Alias: None
Product: kmail2
Classification: Applications
Component: config dialog (show other bugs)
Version: unspecified
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-24 12:24 UTC by zocker.network
Modified: 2024-04-29 08:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zocker.network 2024-02-24 12:24:07 UTC
SUMMARY

RFC 6186 (https://www.rfc-editor.org/rfc/rfc6186) describes a way for MUAs to locate the correct submission, IMAP and/or POP3 servers for certain mail addresses. In short, it works as follows:
1. ask the user for its email address & password
2. extract the domain part of that address
3. request DNS SRV records for _{submission,imap,imaps,pop3,pop3s}._tcp.<domain>.
4. (if both IMAP & POP3 can be used & MUA supports both) decide between IMAP and POP3 according to SRV priority, or preference of MUA
5. first try <localpart>@<domain> as username, then only <localpart> as fallback
6. profit

IMO RFC 6186 is simple to implement for MUAs as well as mail administrators and it is sufficient for most email server setups. Comparing to Microsoft’s autodiscover & Thunderbird’s autoconfig variants (which do support more weirder setups), RFC 6186 is only based on DNS entries, so it is not required for mail administrators to create rather complex XML files and serve them via HTTP(s).

SECURITY

Some recommend the use of DNSSEC for validating DNS SRV records. If the targets of the SRV records points to subdomains on the same "main domain", such validation might be lifted. Here by "main domain" I mean domains which can be registered arbitrarily. For validating if two domains correspond to the same "main domain" the public suffix list can be used, see https://publicsuffix.org/.

RELEVANCE

RFC 6186 sadly is not (yet) supported by major email providers nor by major email clients.

The following public mail providers support RFC 6186 as of now (2024-02-24):
- icloud.com
- yandex.com

Support by other MUAs:
- Microsoft Outlook (Desktop): unknown
- Mozilla Thunderbird: not yet, see https://bugzilla.mozilla.org/show_bug.cgi?id=342242
- K-9 Mail: planned, see https://github.com/thunderbird/thunderbird-android/issues/4721#issuecomment-1732575441
Comment 1 Malte S. Stretz 2024-04-29 08:58:31 UTC

*** This bug has been marked as a duplicate of bug 441193 ***