Hi, people ! Set up global quota according to docs to 2 Mb. Send more than ten Mb on the box. Mail still getting put in the box, no bounces, no error messages in logs, nothing to prevent mail to be delivered in overflooded mailbox. quota settings are: mail_plugins = quota lmtp_rcpt_check_quota = yes quota_full_tempfail = yes protocol lmtp { postmaster_address = postmaster # required mail_plugins = $mail_plugins sieve } protocol lda { mail_plugins = $mail_plugins sieve } protocol imap { mail_plugins = $mail_plugins imap_quota } plugin { quota = maildir:"User quota" quota_rule = *:storage=10M quota_rule3 = INBOX.Trash:storage=+10%% quota_exceeded_message = "552 5.2.2 Mailbox is full" } doveconf -n is attached. # doveadm quota get Quota name Type Value Limit % "User quota" STORAGE 0 10240 0 "User quota" MESSAGE 0 - # doveadm quota get -u vadim Quota name Type Value Limit % "User quota" STORAGE 0 10240 0 "User quota" MESSAGE 0 - # du -sh /var/mail/vadim/ 23M /var/mail/vadim/ I tried to pass quota_rule as an argument to userdb, quota is being parsed, but still doesn't work. I think problem is that dovecot can't (re)calculate the actual quota on disc (cant calculate how disk space mailbox is used), despite the fact that quota limit itself is configured correctly, since dovecot shows it in log and doveconf -n. What I am dong wrong ? -------------- next part -------------- A non-text attachment was scrubbed... Name: dove.conf Type: application/octet-stream Size: 2641 bytes Desc: not available URL: <https://dovecot.org/pipermail/dovecot/attachments/20170901/2d5ccd6e/attachment-0001.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: sending_mail_trace.log Type: text/x-log Size: 7656 bytes Desc: not available URL: <https://dovecot.org/pipermail/dovecot/attachments/20170901/2d5ccd6e/attachment-0001.bin>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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> quota_exceeded_message = "552 5.2.2 Mailbox is full" > } > > > doveconf -n is attached. > > # doveadm quota get > Quota name Type Value Limit % > "User quota" STORAGE 0 10240 0 > "User quota" MESSAGE 0 -> # doveadm quota get -u vadim > Quota name Type Value Limit % > "User quota" STORAGE 0 10240 0 > "User quota" MESSAGE 0 -This looks like the userdb is setting the correct data, because the number matches your config. Try doveadm quota recalc -u vadim if you get sensible current values or errors.> I think problem is that dovecot can't (re)calculate the actual quota > on disc (cant calculate how disk space mailbox is used), despite the > fact that quota limit itself is configured correctly, since dovecot > shows it in log and doveconf -n.If vadim got flooded with messages, the question is, why storage's value is "0". It might be wrong, but not 0. How do you deliver the messages? - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBWa5gH3z1H7kL/d9rAQJ7VggArquitNsVYlxw/d3Qwrz4i/g9lL26lRrL aJ6W3CLExaJ7pBJ4X7Clt5jokbiF7BLLgqHsM3i+DW5L/HSkgBPB0mFhf/g/gmYs SO8csYcxjSNjKAXrfYKZhywZ7QELzBIgPtcGkzDzS0LPRumGz6bKsmm4SNN5pbOF yjujYC3HUhSN79L+XhvpO52h7ukk1ST1+5u68dUk9KbpzRr4jWKFZqz0Ey6NiazP sb/qKt0sCiinPkk/G9gOuIgh1r/M0kirLDf0GI04Vj8v3j6HD6+NG63dRAoEpCJ/ TaNOzQCHp6AzmvRcH0I8N+E0seoVU3AF7NabBGZxFZ5AmWrk8oYKcw==wLq2 -----END PGP SIGNATURE-----
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
Got it ! The issue is in the 'type = public' parameter. I removed it from my namespace definition and quota got counted as expected ! Problem solved. 2017-09-01 21:34 GMT+05:00 ????? ????? <master at remort.net>:> Hi, people ! > Set up global quota according to docs to 2 Mb. > Send more than ten Mb on the box. > Mail still getting put in the box, no bounces, no error messages in > logs, nothing to prevent mail to be delivered in overflooded mailbox. > > quota settings are: > > mail_plugins = quota > lmtp_rcpt_check_quota = yes > quota_full_tempfail = yes > > protocol lmtp { > postmaster_address = postmaster # required > mail_plugins = $mail_plugins sieve > } > > protocol lda { > mail_plugins = $mail_plugins sieve > } > > protocol imap { > mail_plugins = $mail_plugins imap_quota > } > > plugin { > quota = maildir:"User quota" > quota_rule = *:storage=10M > quota_rule3 = INBOX.Trash:storage=+10%% > quota_exceeded_message = "552 5.2.2 Mailbox is full" > } > > > doveconf -n is attached. > > # doveadm quota get > Quota name Type Value Limit > > % > "User quota" STORAGE 0 10240 > > 0 > "User quota" MESSAGE 0 - > > # doveadm quota get -u vadim > Quota name Type Value Limit > > % > "User quota" STORAGE 0 10240 > > 0 > "User quota" MESSAGE 0 - > > # du -sh /var/mail/vadim/ > 23M /var/mail/vadim/ > > I tried to pass quota_rule as an argument to userdb, quota is being > parsed, but still doesn't work. > > I think problem is that dovecot can't (re)calculate the actual quota > on disc (cant calculate how disk space mailbox is used), despite the > fact that quota limit itself is configured correctly, since dovecot > shows it in log and doveconf -n. > > What I am dong wrong ?
Possibly Parallel Threads
- can't get quota working. I use static userdb driver.
- Dovecot dsync not replicating ".dovecot.sieve -> .sieve/managesieve.sieve" / setactive
- imap-login: Fatal: pipe() failed: Too many open files
- can't get quota working. I use static userdb driver.
- TLS config check