• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Issue Dovecot 2.4.5 crashes when moving mail into shared folder

voelu28

New Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.82
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.82 Update 4, Web Pro Edition
Ubuntu 20.04.6 LTS x86_64
Dovecot 2.4.5 (0cbb641e3e), shipped with Plesk
Plesk Premium Email (Kolab) installed

PROBLEM DESCRIPTION
Since Plesk ships Dovecot 2.4.x, the imap process crashes whenever a mail is moved
into a folder that another mailbox has shared with the user (shared namespace,
"Other Users.<owner>.<folder>"). The folder share was created via Premium Email.

Apple Mail on iOS retries the failed MOVE on every reconnect, so the account ends up
in an endless "Connecting / Checking for mail" loop and no new mail arrives.
Within about an hour we had 1,146 panics for a single mailbox in /var/log/maillog.
Outlook on macOS was not affected, simply because it had no pending move.

No mailbox size limits are set on this server (doveadm quota get shows no limit).

STEPS TO REPRODUCE
1. [email protected] shares the folder "Invoices 2026" with [email protected]
(Premium Email sharing).
2. [email protected] sees it as "Other Users.invoices.Invoices 2026".
3. In iOS Mail (IMAP), move a message from [email protected]'s INBOX into that shared folder.

ACTUAL RESULT
The imap process dies, the client reconnects and retries the MOVE over and over:

dovecot: service=imap, user=[email protected], ip=[127.0.0.1]. Panic: file quota.c: line 516 (quota_root_is_visible): assertion failed: (box->list->ns->type == MAIL_NAMESPACE_TYPE_SHARED)
dovecot: service=imap, user=[email protected], ip=[127.0.0.1]. Error: Raw backtrace: libdovecot.so.0(backtrace_append+0x42) -> libdovecot.so.0(backtrace_get+0x26) -> libdovecot.so.0(+0x13fa22) -> libdovecot.so.0(+0x13fab7) -> libdovecot.so.0(+0x59fc1) -> lib10_quota_plugin.so(+0x643f) -> lib10_quota_plugin.so(quota_try_alloc+0x16b) -> lib10_quota_plugin.so(+0xeea5) -> lib10_quota_plugin.so(+0xf10f) -> lib01_acl_plugin.so(+0xeab0) -> libdovecot-storage.so.0(+0x610a1) -> libdovecot-storage.so.0(mailbox_move+0x64) -> imap(+0x1aaab) -> imap(command_exec+0x6c) -> ... -> imap(main+0x3ed) -> libc.so.6(__libc_start_main+0xf3) -> imap(_start+0x2e)
dovecot: service=imap, user=[email protected], ip=[127.0.0.1]. Fatal: master: service(imap): child 215229 killed with signal 6

After the workaround the private index of the shared folder was out of sync once
("Log synchronization error ... Append with UID 210, but next_uid = 211") and Dovecot
repaired it automatically (fscking index file).

EXPECTED RESULT
The message is moved into the shared folder, no crash.

ANY ADDITIONAL INFORMATION
Relevant part of doveconf -n (Plesk default):

namespace shared {
mail_index_path = /var/qmail/mailnames/%{user|domain}/%{user|username}/user/%{owner_user|username}/Maildir
mail_index_private_path = /var/qmail/mailnames/%{user|domain}/%{user|username}/user/%{owner_user|username}/Maildir
mail_path = /var/qmail/mailnames/%{user|domain}/%{owner_user|username}/Maildir
hidden = no
list = children
prefix = Other Users.$username.
separator = .
subscriptions = no
type = shared
}

This looks like the upstream bug discussed on the Dovecot mailing list in January 2026
(panic in quota.c with shared mailboxes on 2.4.x):

The workaround suggested there fixes it for us:

/etc/dovecot/conf.d/99-custom.conf
namespace shared {
quota_ignore = yes
}

systemctl reload dovecot -> no more panics, iOS Mail syncs normally again.

Not related to the imap-sieve crash from 18.0.76 (imap-sieve-storage.c:216),
different assertion and we are already on 2.4.5.

Two questions:
1. Can Plesk fix this in its Dovecot package or ship quota_ignore for the shared namespace by default?
2. Is it safe to keep a custom file that extends "namespace shared", or could the
namespace name change in a future update?
 
Back
Top