I'm trying to setup a dovecot 2.4.0 imap server and have it work with 
Thunderbird.  I'm able to connect/auth fine, however trying to save a message 
to a mailbox causes the connection to close.  

```
Info: Disconnected: Too many invalid IMAP commands. in=744 out=2559 deleted=0 
expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
```

It appears thunderbird's imap APPEND command is using syntax which dovecot 
doesn't like?  I enabled raw logs and pasted them below:

Downgrading to 2.3 resolves the issue, so it’s either a regression, or some 
config issue I’m not able to pinpoint.

```
1738942430.025029 5 ID ("name" "Thunderbird" "version" "128.7.0")
1738942430.029320 6 ENABLE UTF8=ACCEPT
1738942430.033907 7 select "Drafts"
1738942430.039796 8 append "Drafts" (\Draft) UTF8 (~{726+}
1738942430.039796 Message-ID: <ea714f62-7186-4bcb-b709-007e39c6a...@example.com 
<mailto:ea714f62-7186-4bcb-b709-007e39c6a...@example.com>>
1738942430.039796 Date: Fri, 7 Feb 2025 10:33:49 -0500
1738942430.039796 MIME-Version: 1.0
1738942430.039796 User-Agent: Mozilla Thunderbird
1738942430.039796 Content-Language: en-US
1738942430.039796 To: sen...@example.com <mailto:sen...@example.com>
1738942430.039796 From: User Name <u...@example.com <mailto:u...@example.com>>
1738942430.039796 Subject: test
1738942430.039796 X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; 
DSN=0; uuencode=0;
1738942430.039796  attachmentreminder=0; deliveryformat=0
1738942430.039796 X-Identity-Key: id2
1738942430.039796 Fcc: imap://user%40example.com@192.168.115.203/Sent
1738942430.039796 Content-Type: text/html; charset=UTF-8
1738942430.039796 Content-Transfer-Encoding: 7bit
1738942430.039796
1738942430.039796 <!DOCTYPE html>
1738942430.039796 <html>
1738942430.039796   <head>
1738942430.039796
1738942430.039796     <meta http-equiv="content-type" content="text/html; 
charset=UTF-8">
1738942430.039796   </head>
1738942430.039796   <body>
1738942430.039796     <p><br>
1738942430.039796     </p>
1738942430.039796   </body>
1738942430.039796 </html>
1738942430.039796 )
```

```
1738942430.025188 * ID ("name" "Dovecot")
1738942430.025234 5 OK ID completed (0.001 + 0.000 secs).
1738942430.029390 * ENABLED UTF8=ACCEPT
1738942430.029418 6 OK Enabled (0.001 + 0.000 secs).
1738942430.035478 * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
1738942430.035531 * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen 
\Draft \*)] Flags permitted.
1738942430.035559 * 0 EXISTS
1738942430.035585 * 0 RECENT
1738942430.035611 * OK [UIDVALIDITY 1738898190] UIDs valid
1738942430.035638 * OK [UIDNEXT 1] Predicted next UID
1738942430.035693 7 OK [READ-WRITE] Select completed (0.002 + 0.000 + 0.001 
secs).
1738942430.040007 8 BAD Error in IMAP command APPEND: Missing ')' (0.001 + 
0.000 secs).
1738942430.040140 * BAD Error in IMAP tag: Invalid tag (0.001 + 0.000 secs).
1738942430.040172 Date: BAD Error in IMAP command FRI,: Unknown command (0.001 
+ 0.000 secs).
1738942430.040233 MIME-Version: BAD Error in IMAP command 1.0: Unknown command 
(0.001 + 0.000 secs).
1738942430.040291 User-Agent: BAD Error in IMAP command MOZILLA: Unknown 
command (0.001 + 0.000 secs).
1738942430.040356 Content-Language: BAD Error in IMAP command EN-US: Unknown 
command (0.001 + 0.000 secs).
1738942430.040409 To: BAD Error in IMAP command sen...@example.com 
<mailto:sen...@example.com>: Unknown command (0.001 + 0.000 secs).
1738942430.040467 From: BAD Error in IMAP command USER: Unknown command (0.001 
+ 0.000 secs).
1738942430.040521 Subject: BAD Error in IMAP command TEST: Unknown command 
(0.001 + 0.000 secs).
1738942430.040574 X-Mozilla-Draft-Info: BAD Error in IMAP command 
INTERNAL/DRAFT;: Unknown command (0.001 + 0.000 secs).
1738942430.040638 * BAD Error in IMAP tag: Invalid tag (0.001 + 0.000 secs).
1738942430.040666 X-Identity-Key: BAD Error in IMAP command ID2: Unknown 
command (0.001 + 0.000 secs).
1738942430.040720 Fcc: BAD Error in IMAP command: Invalid command name (0.001 + 
0.000 secs).
1738942430.040746 Content-Type: BAD Error in IMAP command TEXT/HTML;: Unknown 
command (0.001 + 0.000 secs).
1738942430.040802 Content-Transfer-Encoding: BAD Error in IMAP command 7BIT: 
Unknown command (0.001 + 0.000 secs).
1738942430.040862 * BAD Error in IMAP tag: Invalid tag (0.001 + 0.000 secs).
1738942430.040889 <!DOCTYPE BAD Error in IMAP command HTML>: Unknown command 
(0.001 + 0.000 secs).
1738942430.040966 <html> BAD Error in IMAP command: Invalid command name (0.001 
+ 0.000 secs).
1738942430.040991 * BAD Error in IMAP tag: Invalid tag (0.001 + 0.000 secs).
1738942430.041015 * BAD Error in IMAP tag: Invalid tag (0.001 + 0.000 secs).
1738942430.041032 * BYE Too many invalid IMAP commands.
```
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to