This seems a Bug. I’ve done some tests, and as @kunstlust and @samuel_grenier found, when a quota is set under Email → Mailboxes → disk space: apply quota, we get a warning and email messages are not deleted or are fetched again. (what follows is an excerpt):
Global setting mail_plugins won’t change the setting inside an earlier filter at /etc/dovecot/dovecot.conf
Problems might come from declaration of mail_plugins global setting in dovecot.conf…:
# Enable acl plugin for shared mailboxes,
# and listescape to extend allowable characters in mailbox names
mail_plugins = $mail_plugins acl listescape fts fts_lucene
protocol imap {
mail_plugins = $mail_plugins imap_acl
}
#
# Quota configuration is enabled
#
mail_plugins = $mail_plugins quota # <----
protocol imap {
mail_plugins = $mail_plugins quota imap_quota
}
[root@server ~]# dovecot -n
# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.24 (124e06aa)
doveconf: Warning: /etc/dovecot/dovecot.conf line 276: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 202 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 202)
doveconf: Warning: /etc/dovecot/dovecot.conf line 276: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 202 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 202)
doveconf: Warning: service auth { client_limit=2000 } is lower than required under max. load (2400)
# OS: Linux 3.10.0-957.1.3.el7.x86_64 x86_64 CentOS Linux release 7.6.1810 (Core)
...
'Re: delete command' - MARC
there is some sort of problem suddenly happened error when getmail hands over to dovecot deliver and it reports error which stops getmail sending delete command I guessYes. If your MDA (delivery program) fails, getmail doesn’t tell the server to delete the message, so it can try again next time.
'SOLVED: getmail 5.6: No deletion of getmail-ed emails anymore' - MARC
As dovecot-lda send these warnings to STDERR, getmails seems to treat them as error and DOES NOT DELETE the getmail-ed msgs anymore.
Similar to this older one: https://www.dovecot.org/list/dovecot/2016-April/103995.html