Jost Krieger
2012-Sep-18 11:40 UTC
[Dovecot] Changing Quota downward for special Mailboxes? (2.1.6)
It seems there is no way to correct te quota limit downward for some mailboxes, like: quota_rule9 = UCE-TMP:storage=-10%% The idea is to not eat up the users storage with spam, so that spam stays in the queue (for some time) while real mail gets delivered. There *is* a line } else if (*value != '-' && relative_rule) { in quota.c, but nothing else handles it, starting with quota_rule_parse_percentage. Yours Jost Krieger -- | Jost.Krieger+sig at ruhr-uni-bochum.de Please help stamp out spam! | | Postmaster, JAPH, resident answer machine at RUB Comp. Center | | Sincere words are not sweet, sweet words are not sincere. | | Lao Tse, Tao Te King 81 |
Timo Sirainen
2012-Sep-18 16:17 UTC
[Dovecot] Changing Quota downward for special Mailboxes? (2.1.6)
On 18.9.2012, at 14.40, Jost Krieger wrote:> It seems there is no way to correct te quota limit downward for some > mailboxes, like: > > quota_rule9 = UCE-TMP:storage=-10%% > > The idea is to not eat up the users storage with spam, so that spam > stays in the queue (for some time) while real mail gets delivered.Interesting idea. This was pretty easy to fix: http://hg.dovecot.org/dovecot-2.1/rev/74d639b2a5bf Now, the next problem is that if LDA can't save the message to UCE-TMP because of quota failure it saves it to INBOX. I'm not really sure how that should be fixed, since generally it's a good idea to do it..