Hi, Is there a way with dovecot to warn users who are close to reach their quota? Although I never used it, I think cyrus supports something like that by droping a warning message into the INBOX when delivering a message that brings the total size over a certain percentage. Would it be feasible to implement something like that with an extra plugin or by changing the quota plugin? Cheers, Nicolas
Hi List, I recently installed dovecot 1.0rc15 on centos, installation went fine, it installed under /usr/local/ but I cannot start the dovecot service automatically. I tried with chkconfig but it told me the dovecot service is not supported by chkconfig. Can anybody give me a tip about how to get done with this? I will appreciate any help. Regards, --Ivan. "Look both ways before crossing the Net"
On Wed, 2007-02-14 at 11:48 +0100, Nicolas Boullis wrote:> Is there a way with dovecot to warn users who are close to reach their > quota?No.> Although I never used it, I think cyrus supports something like that by > droping a warning message into the INBOX when delivering a message that > brings the total size over a certain percentage. > > Would it be feasible to implement something like that with an extra > plugin or by changing the quota plugin?Yes, I think it should be somewhat easy to implement into the quota plugin. Go ahead ;) Although you'd have to somehow also check if the mailbox already has such a warning. But I guess it should be pretty easy too by searching for a message with the same subject. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070215/579a53c9/attachment.bin>
Hi, As suggested by Timo, I have tried to implement some warning when the user gets close to his quota limit. The patch is attached. It is configured in the plugin section of the configuration file: quota_warning = 80:0:/usr/local/bin/quota_warning.sh With this one, /usr/local/bin/quota_warning.sh is executed each time a mail brings the total size from below 80% to 80% or above. The second number serves as a limit for the count. The /usr/local/bin/quota_warning.sh script builds the warning message and delivers it with cat << EOF | /usr/lib/dovecot/deliver -c /etc/dovecot-nowarning.conf where /etc/dovecot-nowarning.conf is the same as my normal configuration file, except that it lacks the quota warning option (that is required in a situation where the warning message is large enough to bring over the 80% limit, to avoid a warning loop). Comments are welcome. Cheers, Nicolas Boullis -------------- next part -------------- A non-text attachment was scrubbed... Name: dovecot_quota.patch.gz Type: application/gzip Size: 1764 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20070227/120e0809/attachment-0002.bin>