On Feb 25, 2008, at 12:33 PM, Vusi wrote:
I need to know how to make a quota warning message from Dovecot or
Postfix. I'm using Dovecot 1.0.rc15 and Postfix 2.3.3. I didn't
installed the quota-warning patch cause i read that it doesn't work
with dovecot filesystem quotas (as i'm using). What else can i use
for this? I wanna warn users when they reach ..let's say 90% of
their quota by sending an e-mail to their address. I'm using maildir
format.
I think the only practical solution is to use post-login scripting: http://wiki.dovecot.org/PostLoginScripting
Check the disk usage using df and if the usage is >=90% send the mail.
This works of course only when user is logging in.
I guess it would be nice for quota warnings to work with filesystem
quota as well. I'll add to my TODO.