On 4/19/23 09:48, Benny Pedersen wrote:
David Koski skrev den 2023-04-19 18:19:

plugin {
  quota_rule = *:storage=1M
  quota_rule2 = INBOX.Trash:storage=+100M
  quota_grace = 10%%
}

Re: "..just says that you can save additional 100M to Trash."

In addition to what?  What would be a practical example?  If it
provides 100M additional to trash, what is the total?

in the above example trash can have totaly 101M, while other only in total can have 1M

My observations differ using same plugin config as above.  With folder usage:

4.0K    ./Maildir/tmp
80K    ./Maildir/.Sent
32K    ./Maildir/.Sent Messages
920K    ./Maildir/.Trash
28K    ./Maildir/.Junk
28K    ./Maildir/.Drafts
4.0K    ./Maildir/new
20K    ./Maildir/cur
1.3M    ./Maildir
1.3M    .



Sending an 172kB file to accoount fails due to over quota.  Debug log:

Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: Quota root: name=User quota backend=maildir args=
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: Quota rule: root=User quota mailbox=* bytes=1048576 messages=0
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: Quota rule: root=User quota mailbox=INBOX.Trash bytes=+104857600 messages=0
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: Quota warning: bytes=996147 (95%) messages=0 reverse=no command=quota-warning 95 dkoski@example.com
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: Quota warning: bytes=838860 (80%) messages=0 reverse=no command=quota-warning 80 dkoski@example.com
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: Quota grace: root=User quota bytes=104857 (10%)
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: Namespace inbox: type=private, prefix=INBOX., sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/lib/vmail/example.com/dkoski/Maildir
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: maildir++: root=/var/lib/vmail/example.com/dkoski/Maildir, index=, indexpvt=, control=, inbox=/var/lib/vmail/example.com/dkoski/Maildir, alt=
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: Namespace : type=private, prefix=, sep=, inbox=no, hidden=yes, list=no, subscriptions=no location=fail::LAYOUT=none
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: quota: quota_over_flag check: quota_over_script unset - skipping
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: quota: quota_over_flag check: quota_over_script unset - skipping
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: Destination address: <dkoski@example.com> (source: user@hostname)
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: Debug: Mailbox INBOX: Mailbox opened because: lib-lda delivery
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: msgid=<8f99bfe7-02e5-cbc4-9af3-112fbe27831d@mymail.com>: save failed to INBOX: Quota exceeded (mailbox for user is full)
Apr 21 14:52:15 examplemail dovecot: lda(dkoski@example.com)<2038><eZo1D48FQ2T2BwAAtQZAyw>: msgid=<8f99bfe7-02e5-cbc4-9af3-112fbe27831d@mymail.com>: rejected: Quota exceeded (mailbox for user is full)

Regards,
David Koski
dkoski@sutinen.com

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-leave@dovecot.org