[GH-ISSUE #3303] Error: Connection to IMAP server failed: b'* BYE Auth process broken' #1828

Closed
opened 2026-02-27 11:19:21 +03:00 by kerem · 9 comments
Owner

Originally created by @VladislavGatsenko on GitHub (Aug 20, 2024).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3303

Impacted versions

  • OS Type: Debian
  • OS Version: 12
  • Database Type: PostgreSQL / MySQL
  • Database version: 15
  • Modoboa: 2.3.1
  • installer used: Yes
  • Webserver: Nginx

Current behavior

Webmail module Error:
Error: Connection to IMAP server failed: b'* BYE Auth process broken'

Video/Screenshot link (optional)

Снимок экрана 2024-08-20 в 18 05 54
Снимок экрана 2024-08-20 в 18 04 27

Originally created by @VladislavGatsenko on GitHub (Aug 20, 2024). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3303 # Impacted versions * OS Type: Debian * OS Version: 12 * Database Type: PostgreSQL / MySQL * Database version: 15 * Modoboa: 2.3.1 * installer used: Yes * Webserver: Nginx # Current behavior Webmail module Error: Error: Connection to IMAP server failed: b'* BYE Auth process broken' # Video/Screenshot link (optional) ![Снимок экрана 2024-08-20 в 18 05 54](https://github.com/user-attachments/assets/cdc29717-e02a-47be-9054-1c5f362a6607) ![Снимок экрана 2024-08-20 в 18 04 27](https://github.com/user-attachments/assets/588822f7-3384-4a83-b92a-082c97683c4f)
kerem closed this issue 2026-02-27 11:19:21 +03:00
Author
Owner

@tonioo commented on GitHub (Aug 21, 2024):

@VladislavGatsenko That's probably because of dovecot version. I'll fix the installer soon but in the meantime, could you install dovecot from testing backports? (https://backports.debian.org/Instructions/)

<!-- gh-comment-id:2301307304 --> @tonioo commented on GitHub (Aug 21, 2024): @VladislavGatsenko That's probably because of dovecot version. I'll fix the installer soon but in the meantime, could you install dovecot from testing backports? (https://backports.debian.org/Instructions/)
Author
Owner

@VladislavGatsenko commented on GitHub (Aug 21, 2024):

Reinstalled debian with backports support, here are the dovecot versions. But the error is still there.

root@debian:~# apt list --installed | grep dovecot
dovecot-core/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed,automatic]
dovecot-imapd/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed]
dovecot-lmtpd/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed]
dovecot-managesieved/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed]
dovecot-pgsql/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed]
dovecot-sieve/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed]
<!-- gh-comment-id:2302426299 --> @VladislavGatsenko commented on GitHub (Aug 21, 2024): Reinstalled debian with backports support, here are the dovecot versions. But the error is still there. ```shell root@debian:~# apt list --installed | grep dovecot dovecot-core/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed,automatic] dovecot-imapd/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed] dovecot-lmtpd/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed] dovecot-managesieved/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed] dovecot-pgsql/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed] dovecot-sieve/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed] ```
Author
Owner

@VladislavGatsenko commented on GitHub (Aug 22, 2024):

and also i can't connect to server via external mail client.

<!-- gh-comment-id:2305105158 --> @VladislavGatsenko commented on GitHub (Aug 22, 2024): and also i can't connect to server via external mail client.
Author
Owner

@ultr41337h4xor commented on GitHub (Aug 23, 2024):

Same here, everything seems broken. I did do a stupid thing and didn't check the specific instructions before updating, did the run.py --upgrade experimental way of updating. I can log in to Modoboa, but getting the same error and also can't connect with external clients.

Also started getting "Error: Connection to IMAP server failed: command: CAPABILITY => Auth process broken" as the error, occasionally.

<!-- gh-comment-id:2307437487 --> @ultr41337h4xor commented on GitHub (Aug 23, 2024): Same here, everything seems broken. I did do a stupid thing and didn't check the specific instructions before updating, did the run.py --upgrade experimental way of updating. I can log in to Modoboa, but getting the same error and also can't connect with external clients. Also started getting "Error: Connection to IMAP server failed: command: CAPABILITY => Auth process broken" as the error, occasionally.
Author
Owner

@tmoerschell commented on GitHub (Aug 26, 2024):

Same problem on my side, with a fresh install on Debian 12 and getting the same error. I had port 4190 closed, so I tried opening it, but there was no change.

<!-- gh-comment-id:2309927017 --> @tmoerschell commented on GitHub (Aug 26, 2024): Same problem on my side, with a fresh install on Debian 12 and getting the same error. I had port 4190 closed, so I tried opening it, but there was no change.
Author
Owner

@dborg89 commented on GitHub (Sep 15, 2024):

Reinstalled debian with backports support, here are the dovecot versions. But the error is still there.

root@debian:~# apt list --installed | grep dovecot
dovecot-core/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed,automatic]
dovecot-imapd/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed]
dovecot-lmtpd/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed]
dovecot-managesieved/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed]
dovecot-pgsql/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed]
dovecot-sieve/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed]

I was able to apt-get remove the packages and install the backports.
The versions I have installed are:

dovecot-imapd/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed]
dovecot-lmtpd/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed]
dovecot-managesieved/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed]
dovecot-pgsql/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed]
dovecot-sieve/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed]

Once the backports were installed the dovecot worked.

<!-- gh-comment-id:2351806693 --> @dborg89 commented on GitHub (Sep 15, 2024): > Reinstalled debian with backports support, here are the dovecot versions. But the error is still there. > > ```shell > root@debian:~# apt list --installed | grep dovecot > dovecot-core/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed,automatic] > dovecot-imapd/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed] > dovecot-lmtpd/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed] > dovecot-managesieved/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed] > dovecot-pgsql/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed] > dovecot-sieve/stable-security,now 1:2.3.19.1+dfsg1-2.1+deb12u1 amd64 [installed] > ``` I was able to apt-get remove the packages and install the backports. The versions I have installed are: ```dovecot-core/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed] dovecot-imapd/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed] dovecot-lmtpd/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed] dovecot-managesieved/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed] dovecot-pgsql/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed] dovecot-sieve/stable-backports,stable-backports,now 1:2.3.21.1+dfsg1-1~bpo12+1 amd64 [installed] ``` Once the backports were installed the dovecot worked.
Author
Owner

@ultr41337h4xor commented on GitHub (Sep 25, 2024):

@dborg89 Thank you very much, tried it yesterday and everything started working immediately!

Here's a link if anyone needs a quick run down on what backports are - https://backports.debian.org/

<!-- gh-comment-id:2373916685 --> @ultr41337h4xor commented on GitHub (Sep 25, 2024): @dborg89 Thank you very much, tried it yesterday and everything started working immediately! Here's a link if anyone needs a quick run down on what backports are - https://backports.debian.org/
Author
Owner

@25garfield commented on GitHub (Nov 4, 2024):

I'm installed via the script onto Ubuntu 23.04 and have exactly the same issue, can anyone help please, I think I understand the backports but not sure how to fix on ubuntu or is it easier to simply restart and create it all on debian (only installed today so nothing to lose if that's easier)

dovecot-core/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed,automatic]
dovecot-imapd/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed]
dovecot-lmtpd/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed]
dovecot-managesieved/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed]
dovecot-pgsql/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed]
dovecot-sieve/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed]

Thats whats showing as installed for dovecot

<!-- gh-comment-id:2454704730 --> @25garfield commented on GitHub (Nov 4, 2024): I'm installed via the script onto Ubuntu 23.04 and have exactly the same issue, can anyone help please, I think I understand the backports but not sure how to fix on ubuntu or is it easier to simply restart and create it all on debian (only installed today so nothing to lose if that's easier) dovecot-core/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed,automatic] dovecot-imapd/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-lmtpd/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-managesieved/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-pgsql/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-sieve/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] Thats whats showing as installed for dovecot
Author
Owner

@ultr41337h4xor commented on GitHub (Nov 4, 2024):

I'm installed via the script onto Ubuntu 23.04 and have exactly the same issue, can anyone help please, I think I understand the backports but not sure how to fix on ubuntu or is it easier to simply restart and create it all on debian (only installed today so nothing to lose if that's easier)

dovecot-core/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed,automatic] dovecot-imapd/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-lmtpd/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-managesieved/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-pgsql/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-sieve/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed]

Thats whats showing as installed for dovecot

First of all, I recommend apt removing all dovecot packages (and before that making a backup of all relevant dovecot configuration files), as dborg89 describes in the post he made in this thread.

After that, I recommend following this guide to install the Ubuntu backport for Dovecot https://help.ubuntu.com/community/UbuntuBackports#Using_Backports (if one is available for your version of Ubuntu, I see you are on Lunar - if it's not you have the option of manually installing it https://unix.stackexchange.com/questions/41645/dovecot-version-upgrade, or upgrading to a newer version of Ubuntu).

<!-- gh-comment-id:2455863322 --> @ultr41337h4xor commented on GitHub (Nov 4, 2024): > I'm installed via the script onto Ubuntu 23.04 and have exactly the same issue, can anyone help please, I think I understand the backports but not sure how to fix on ubuntu or is it easier to simply restart and create it all on debian (only installed today so nothing to lose if that's easier) > > dovecot-core/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed,automatic] dovecot-imapd/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-lmtpd/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-managesieved/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-pgsql/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] dovecot-sieve/lunar,now 1:2.3.19.1+dfsg1-2ubuntu4 amd64 [installed] > > Thats whats showing as installed for dovecot First of all, I recommend apt removing all dovecot packages (**and before that making a backup of all relevant dovecot configuration files**), as dborg89 describes in the post he made in this thread. After that, I recommend following this guide to install the Ubuntu backport for Dovecot https://help.ubuntu.com/community/UbuntuBackports#Using_Backports (**if one is available for your version of Ubuntu**, I see you are on Lunar - if it's not you have the option of manually installing it https://unix.stackexchange.com/questions/41645/dovecot-version-upgrade, or upgrading to a newer version of Ubuntu).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1828
No description provided.