On 25.8.2012, at 1.49, Sven Hartge wrote:
How about just disabling the quota enforcing and doing a nightly run of some type of enforcing (sending notification email and/or disabling new mail delivery until user has more quota again)?
As a last resort, yes. If possible, I'd like to keep the feedback about mailbox size as direct as possible.
Disabling an account only once per night might be acceptable, but the reenabling of the account, once a user has freed some space, has to be instant or I would get constant complains from the users (the ones with the biggest mailboxes being the professors, which can be quite the pain to work with, if they believe they don't get what they think they are entitled to get).
You can use quota warning scripts to send warnings and enable account instantly when it goes under 100%.
So far, the description of the delete_to_trash plugin sounds promising, because I can already ignore the Trash (or add to the total quota for this folder and do a nightly expunge run for it), if only it would compile for dovecot 2.1.
I don't like the idea behind deleted_to_trash and won't offer any support for it if I don't have to.