This bug does not seem to be a duplicate of #65821. That bug report's discussion answered my question about debug output, though (which, by the way, should be answered by the man page, in my opinion).
The crucial difference between logging in with TLS and logging in without TLS seems to be that the server advertises the PLAIN login mechanism if and only if I log in using TLS. (Otherwise, the LOGIN mechanism is used, which works fine.) The problem with the PLAIN mechanism seems to be that mutt sends an initial client response, i.e. "> a0000 AUTHENTICATE PLAIN <base64-encoded username and password>" This is not a valid IMAP command. RFC 3501 states in section 6.2.2: "The AUTHENTICATE command does not support the optional "initial response" feature of [SASL]." I will try to find out whether this is a bug in mutt itself or a library. If I feel I understand the code, I will try to write a patch. -- mutt fails to log in to IMAP server using TLS https://bugs.launchpad.net/bugs/137473 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs