Dovecot Version:
2.3.17 (8414c38c5c)
Dear,
Some troubles occur while we delete a folder via IMAP ssl command or via a IMAP client (different clients tested).
When we want to delete subfolder we observe following issues.
some examples following:
we created a folder with subfolders x/y/z
a02 CREATE x.y.z
a02 OK Create completed (0.003 + 0.000 + 0.002 secs).
response from dovecot cli
x
x.y
x.y.z
then we try to delete the z subfolder of x
a04 DELETE x.y.z
a05 OK Delete completed (0.002 + 0.000 + 0.001 secs).
The IMAP console returns success and the dovecot listing is ok
response from dovecot cli =
x
x.y
But dovecot status on x.y returns the folder is not existent
response from dovecot cli=
doveadm(u...@domain.tld): Error: remote(192.168.1.1:24245): Mailbox x.y: Failed to lookup mailbox status: Mailbox doesn't exist: x.y
vsize=0
This lead that physically the folder and sub folders are still in our storage but can not be accessed by the dovecot service.
We could bypass this phenomena by recreating this x.y folder and then delete the y folder again with IMAP.
a04 CREATE x.y
a05 OK Create completed (0.002 + 0.000 + 0.001 secs).
and status shows the folder exists
response from dovecot cli =>
vsize=0
Then we retry deleting the y folder from x
a08 DELETE x.y
a08 OK Delete completed (0.002 + 0.000 + 0.001 secs).
status still not correct for the top folder
response from dovecot cli =
doveadm(u...@domain.tld): Error: remote(192.168.1.1:24245): Mailbox x: Failed to lookup mailbox status: Mailbox doesn't exist: x
vsize=0
But this time without recreating the x folder, the delete command is working
a10 DELETE x
a10 OK Delete completed (0.001 + 0.000 secs).
the dovecot command shows no x folder anymore as wanted
response from dovecot cli =
a
a.b
a.b.c
No x folder appear in the listing
Is this a Dovecot problem ? our did it not be engineered for deleting top folder by IMAP?
Thanks in advance
Kind Regards
Pascal
Pascal Bonny
onOffice GmbH
Charlottenburger Allee 5 | 52068 Aachen
Tel. 0241 44 6860 | Fax. 0241 44686 250
E-Mail: p.bo...@onoffice.de | Web: www.onOffice.com
Registergericht: Amtsgericht Aachen, HRB 21420
Geschäftsführer: Dipl.-Kfm. Stefan Mantl
Prokuristen: Janosch Reuschenbach, Kristina Andresen, Christian Mähringer, Marius Siegmund
DOVECOT CONF
# 2.3.17 (8414c38c5c): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.17 (44945af4)
# OS: Linux 5.13.0-27-generic x86_64 Ubuntu 20.04.3 LTS
# Hostname: mailserver.domain.tld
auth_mechanisms = plain login
auth_verbose = yes
default_process_limit = 250
director_mail_servers = 192.168.1.1@shard1 192.168.1.2@shard1
192.168.1.3@shard2 192.168.1.4@shard2 192.168.1.5@shard3 192.168.1.6@shard3
192.168.1.7@shard4 192.168.1.8@shard4
director_servers = 192.168.1.9 192.168.1.10 192.168.1.11
disable_plaintext_auth = no
doveadm_api_key = # hidden, use -P to show it
doveadm_password = # hidden, use -P to show it
doveadm_port = 24245
imap_logout_format = in=%i out=%o deleted=%{deleted} expunged=%{expunged}
trashed=%{trashed}
lmtp_proxy = yes
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_plugins = " quota"
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy
include variables body enotify environment mailbox date index ihave duplicate
mime foreverypart extracttext
metric auth_success {
filter = (event=auth_request_finished AND success=yes)
}
metric client_connections {
filter = event=client_connection_finished
}
metric imap_command {
filter = event=imap_command_finished
group_by = cmd_name tagged_reply_state
}
metric mail_delivery {
filter = event=mail_delivery_finished
group_by = duration:exponential:1:5:10
}
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
sieve = file:~/sieve;active=~/.dovecot.sieve
}
pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s,
deleted_bytes=%{deleted_bytes}
postmaster_address = postmas...@domain.tld
protocols = imap pop3 lmtp sieve
service anvil {
client_limit = 1003
}
service auth {
client_limit = 1500
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
}
service director {
fifo_listener login/proxy-notify {
mode = 0666
}
inet_liste