Bug: Thunderbird 78 cannot connect to IMAP server that TB 68 can connect to, but shows no error message
Status: RESOLVED
Priority: --
Resolution: INVALID
Created: 2020-10-07 11:27:26+00:00
Resolved: 2021-02-28 16:05:44+00:00

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

Steps to reproduce:

Created an account in Thunderbird 78.3.1. Tried to fetch my emails.

The account set to use an IMAP server that is running "Cyrus IMAPD v2.3.11". It has an LetsEncrypt certificate issued to zzzzz.de. According to ssl-tools.net it supports TLSv1.0.

(Hostname changed to zzzzzz.de and login changed to xxxxxx@yyyyyy.de.)


Actual results:

Thunderbird seems to not be able to connect to the Server. No error message is shown.

The log contains the following lines:

[(null) 18856: IMAP]: D/IMAP ImapThreadMainLoop entering [this=0x7f22bfc1a800]
[(null) 18856: Main Thread]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:SetupWithUrlCallback: clearing IMAP_CONNECTION_IS_OPEN
[(null) 18856: IMAP]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:ProcessCurrentURL: entering
[(null) 18856: IMAP]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:ProcessCurrentURL:imap://xxxxxx%40yyyyyy%2Ede@zzzzzz.de:143/select%3E%5EINBOX:  = currentUrl
[(null) 18856: IMAP]: D/IMAP ReadNextLine [rv=0x0 stream=0x7f22bfc41310 nb=122 needmore=0]
[(null) 18856: IMAP]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:CreateNewLineFromSocket: * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS AUTH=PLAIN AUTH=LOGIN SASL-IR] s1 Cyrus IMAP4 v2.3.11 server ready
[(null) 18856: IMAP]: D/IMAP SetConnectionStatus(0x0)
[(null) 18856: IMAP]: D/IMAP SetConnectionStatus(0x0)
[(null) 18856: IMAP]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:SendData: 1 STARTTLS
[(null) 18856: IMAP]: D/IMAP ReadNextLine [rv=0x0 stream=0x7f22bfc41310 nb=32 needmore=0]
[(null) 18856: IMAP]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:CreateNewLineFromSocket: 1 OK Begin TLS negotiation now
[(null) 18856: IMAP]: D/IMAP SetConnectionStatus(0x0)
[(null) 18856: IMAP]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:SendData: 2 capability
[(null) 18856: IMAP]: D/IMAP ReadNextLine [rv=0x805a2ff7 stream=0x7f22bfc41310 nb=0 needmore=1]
[(null) 18856: IMAP]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:CreateNewLineFromSocket: clearing IMAP_CONNECTION_IS_OPEN - rv = 805a2ff7
[(null) 18856: IMAP]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:TellThreadToDie: close socket connection
[(null) 18856: IMAP]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:CreateNewLineFromSocket: (null)
[(null) 18856: IMAP]: D/IMAP SetConnectionStatus(0x805a2ff7)
[(null) 18856: IMAP]: D/IMAP URL failed with code 0x805a2ff7 (imap://xxxxxx%40yyyyyy%2Ede@zzzzzz.de:143/select%3E%5EINBOX)
[(null) 18856: IMAP]: I/IMAP 0x7f22bfc1a800:zzzzzz.de:NA:ProcessCurrentURL: aborting queued urls
[(null) 18856: IMAP]: D/IMAP ImapThreadMainLoop leaving [this=0x7f22bfc1a800]


For comparison, the log from Thunderbird 68:

[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP ImapThreadMainLoop entering [this=0x7fce14d8d800]
[(null) 20212: Main Thread]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:SetupWithUrlCallback: clearing IMAP_CONNECTION_IS_OPEN
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:ProcessCurrentURL: entering
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:ProcessCurrentURL:imap://xxxxxx%40yyyyyy%2Ede@zzzzzz.de:143/select%3E/INBOX/Entw%26APw-rfe:  = currentUrl
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP ReadNextLine [stream=0x7fce157b5280 nb=122 needmore=0]
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:CreateNewLineFromSocket: * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS AUTH=PLAIN AUTH=LOGIN SASL-IR] s1 Cyrus IMAP4 v2.3.11
 server readyi
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:SendData: 1 STARTTLS
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP ReadNextLine [stream=0x7fce157b5280 nb=32 needmore=0]
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:CreateNewLineFromSocket: 1 OK Begin TLS negotiation now
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:SendData: 2 capability
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP ReadNextLine [stream=0x7fce157b5280 nb=297 needmore=0]
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:CreateNewLineFromSocket: * CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=PLAIN AUTH=LOGIN SASL-IR ACL RIGHTS=kxte QUOTA MAILBOX-REFERR
ALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE IDLE X-NETSCAPE URLAUTH
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP ReadNextLine [stream=0x7fce157b5280 nb=16 needmore=0]
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:CreateNewLineFromSocket: 2 OK Completed
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP Try to log in
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP IMAP auth: server caps 0x24c7737, pref 0x1006, failed 0x0, avail caps 0x1006
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP (GSSAPI = 0x1000000, CRAM = 0x20000, NTLM = 0x100000, MSN = 0x200000, PLAIN = 0x1000, LOGIN = 0x2, old-style IMAP login = 0x4, auth external IMAP login = 0x20
000000, OAUTH2 = 0x800000000)
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP Trying auth method 0x1000
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP got new password
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP IMAP: trying auth method 0x1000
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP PLAIN auth
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:SendData: 3 authenticate PLAIN
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP ReadNextLine [stream=0x7fce157b5280 nb=4 needmore=0]
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:CreateNewLineFromSocket: + 
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:SendData: Logging suppressed for this command (it probably contained authentication information)
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP ReadNextLine [stream=0x7fce157b5280 nb=311 needmore=0]
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: I/IMAP 0x7fce14d8d800:zzzzzz.de:NA:CreateNewLineFromSocket: 3 OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPAC
E UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE IDLE X-NETSCAPE URLAUTH] Success (tls protection)
[(null) 20212: Unnamed thread 0x7fce18b9adc0]: D/IMAP login succeeded





Expected results:

Thunderbird 78 should either successfully connect to the IMAP server as did Thunderbird 68 or give an error message hinting to the cause of the connection problem.