Thank you for your answers. I fixed config to:
plugin { sieve_default = /mnt/rw_disc/dovecot/sieve/default.sieve sieve_global = /mnt/rw_disc/dovecot/sieve/
quota = maildir:User quota_rule = *:storage=10M # quota_rule2 = INBOX.Trash:storage=+10%% quota_max_mail_size = 3M quota_exceeded_message = "552 5.2.2 Mailbox is full" }
The mail_location is actually maildir:/var/spool/mail/%u, mdbox was a misspelling (i tried migration from maildir to mdbox before). I've deleted mailboxes from file system. Dovecot created them again on login. I sent some mails to get over 10Mb in both mailboxes.
Quota still cant'be calculated.
# doveadm quota recalc -u vadim # doveadm quota get -u vadim Quota name Type Value Limit
%
User STORAGE 0 10240
0
User MESSAGE 0 -
# du -sh /var/mail/vadim/ 14M /var/mail/vadim/
doveconf -n is in attachement.
Thunderbird has a quota plugin and shows quota on the box from my corporate mailbox and doesn't show quota on my testing installation at all. Screenshots are attached too.
2017-09-05 13:49 GMT+05:00 Aki Tuomi aki.tuomi@dovecot.fi:
On 05.09.2017 11:28, Steffen Kaiser wrote:
On Fri, 1 Sep 2017, Вадим Бажов wrote:
plugin { quota = maildir:"User quota" quota_rule = *:storage=10M quota_rule3 = INBOX.Trash:storage=+10%% ^^ this should spell quota_rule2 but is not the issue right now
actually dovecot probably stops looking after it fails to see quota_rule2.
Aki