- Timo Sirainen tss@iki.fi:
On Nov 26, 2009, at 8:20 AM, Ralf Hildebrandt wrote:
I'm using 1.2.6 with the managesieve patch and maildir++ quotas (via the maildirsite file). Again, I found that the quota warning is not bering triggered.
Testing via: smtp-source -4 -f sender@charite.de -t recipient@charite.de -m 1 -l 1000000 -C 1 mail.charite.de:submission
recipient@charite.de being a mailbox with a 10.0 MB limit. I attached dovecot -n and the quota warn script.
At least one problem is that the quota_warnings should be listed in reverse order.
Well, it USED to work at some point in time. Anyway, I can reverse the current order.
quota_warning = storage=90%% /usr/local/scripts/quota-warning 90 quota_warning2 = storage=95%% /usr/local/scripts/quota-warning 95 quota_warning3 = storage=99%% /usr/local/scripts/quota-warning 99
has been changed to: quota_warning = storage=99%% /usr/local/scripts/quota-warning 99 quota_warning2 = storage=95%% /usr/local/scripts/quota-warning 95 quota_warning3 = storage=90%% /usr/local/scripts/quota-warning 90
according to http://wiki.dovecot.org/MainConfig?highlight=%28quota\_warning%29
I think it should still trigger at least one of them though.. I probably should change those to be sorted internally.
Also try setting mail_debug=yes and seeing what it logs. Then it logs each time it attempts to execute quota warning: "quota: Executing warning: %s".
I will try that.
So, I reordered AND added debug = yes:
Successful delivery: Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Loading modules from directory: /usr/local/lib/dovecot/lda Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib10_quota_plugin.so Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib11_trash_plugin.so Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib20_fts_plugin.so Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib20_mail_log_plugin.so Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib21_fts_squat_plugin.so Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib90_sieve_plugin.so Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Quota root: name= backend=maildir args= Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Quota rule: root= mailbox=Trash bytes=2147483648 messages=0 Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Quota warning: bytes=0 (99%) messages=0 command=/usr/local/scripts/quota-warning 99 Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Quota warning: bytes=0 (95%) messages=0 command=/usr/local/scripts/quota-warning 95 Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Quota warning: bytes=0 (90%) messages=0 command=/usr/local/scripts/quota-warning 90 Dec 1 09:13:10 postamt dovecot: deliver(hau-po): Namespace: type=private, prefix=INBOX., sep=., inbox=yes, hidden=no, list=1, subscriptions=yes Dec 1 09:13:10 postamt dovecot: deliver(hau-po): maildir: data=/home/h/a/hau-po/Maildir Dec 1 09:13:10 postamt dovecot: deliver(hau-po): maildir++: root=/home/h/a/hau-po/Maildir, index=, control=, inbox=/home/h/a/hau-po/Maildir Dec 1 09:13:10 postamt dovecot: deliver(hau-po): trash plugin: Added 'spam' with priority 1 Dec 1 09:13:10 postamt dovecot: deliver(hau-po): trash plugin: Added 'Trash' with priority 2 Dec 1 09:13:10 postamt dovecot: deliver(hau-po): sieve: using sieve path for user's script: /home/h/a/hau-po/.dovecot.sieve Dec 1 09:13:10 postamt dovecot: deliver(hau-po): sieve: opening script /home/h/a/hau-po/.dovecot.sieve Dec 1 09:13:10 postamt dovecot: deliver(hau-po): sieve: executing compiled script /home/h/a/hau-po/.dovecot.sieve Dec 1 09:13:11 postamt dovecot: deliver(hau-po): Namespace INBOX.: Using permissions from /home/h/a/hau-po/Maildir: mode=0700 gid=-1 Dec 1 09:13:11 postamt dovecot: deliver(hau-po): copy: uid=1, box=Dovecot Delivery Mail, dest=INBOX, msgid=3842.0003.0000@mail.charite.de, size=988228 Dec 1 09:13:11 postamt dovecot: deliver(hau-po): sieve: msgid=3842.0003.0000@mail.charite.de: stored mail into mailbox 'INBOX' Dec 1 09:13:11 postamt postfix/local[10439]: 7EE2EC3C51: to=hau-po@postamt.charite.de, relay=local, delay=0.89, delays=0.08/0/0/0.81, dsn=2.0.0, status=sent (delivered to command: /usr/bin/maildrop)
And then:
Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Loading modules from directory: /usr/local/lib/dovecot/lda Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib10_quota_plugin.so Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib11_trash_plugin.so Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib20_fts_plugin.so Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib20_mail_log_plugin.so Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib21_fts_squat_plugin.so Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib90_sieve_plugin.so Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Quota root: name= backend=maildir args= Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Quota rule: root= mailbox=Trash bytes=2147483648 messages=0 Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Quota warning: bytes=0 (99%) messages=0 command=/usr/local/scripts/quota-warning 99 Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Quota warning: bytes=0 (95%) messages=0 command=/usr/local/scripts/quota-warning 95 Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Quota warning: bytes=0 (90%) messages=0 command=/usr/local/scripts/quota-warning 90 Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Namespace: type=private, prefix=INBOX., sep=., inbox=yes, hidden=no, list=1, subscriptions=yes Dec 1 09:17:15 postamt dovecot: deliver(hau-po): maildir: data=/home/h/a/hau-po/Maildir Dec 1 09:17:15 postamt dovecot: deliver(hau-po): maildir++: root=/home/h/a/hau-po/Maildir, index=, control=, inbox=/home/h/a/hau-po/Maildir Dec 1 09:17:15 postamt dovecot: deliver(hau-po): trash plugin: Added 'spam' with priority 1 Dec 1 09:17:15 postamt dovecot: deliver(hau-po): trash plugin: Added 'Trash' with priority 2 Dec 1 09:17:15 postamt dovecot: deliver(hau-po): sieve: using sieve path for user's script: /home/h/a/hau-po/.dovecot.sieve Dec 1 09:17:15 postamt dovecot: deliver(hau-po): sieve: opening script /home/h/a/hau-po/.dovecot.sieve Dec 1 09:17:15 postamt dovecot: deliver(hau-po): sieve: executing compiled script /home/h/a/hau-po/.dovecot.sieve Dec 1 09:17:15 postamt dovecot: deliver(hau-po): Namespace INBOX.: Using permissions from /home/h/a/hau-po/Maildir: mode=0700 gid=-1 Dec 1 09:17:15 postamt dovecot: deliver(hau-po): copy: uid=1, box=Dovecot Delivery Mail, dest=INBOX, msgid=3a63.0003.0000@mail.charite.de, size=99478 Dec 1 09:17:15 postamt dovecot: deliver(hau-po): sieve: msgid=3a63.0003.0000@mail.charite.de: stored mail into mailbox 'INBOX' Dec 1 09:17:15 postamt postfix/local[14570]: 2C40FC3C51: to=hau-po@postamt.charite.de, relay=local, delay=0.38, delays=0.05/0/0/0.33, dsn=2.0.0, status=sent (delivered to command: /usr/bin/maildrop)
With that mail I went from under 95% to 95.2%
bytes=0 ? messages=0 ??
Passing the first 90% threshold with a mail gives me: Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Loading modules from directory: /usr/local/lib/dovecot/lda Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib10_quota_plugin.so Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib11_trash_plugin.so Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib20_fts_plugin.so Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib20_mail_log_plugin.so Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib21_fts_squat_plugin.so Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Module loaded: /usr/local/lib/dovecot/lda/lib90_sieve_plugin.so Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Quota root: name= backend=maildir args= Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Quota rule: root= mailbox=Trash bytes=2147483648 messages=0 Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Quota warning: bytes=0 (99%) messages=0 command=/usr/local/scripts/quota-warning 99 Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Quota warning: bytes=0 (95%) messages=0 command=/usr/local/scripts/quota-warning 95 Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Quota warning: bytes=0 (90%) messages=0 command=/usr/local/scripts/quota-warning 90 Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Namespace: type=private, prefix=INBOX., sep=., inbox=yes, hidden=no, list=1, subscriptions=yes Dec 1 09:22:34 postamt dovecot: deliver(hau-po): maildir: data=/home/h/a/hau-po/Maildir Dec 1 09:22:34 postamt dovecot: deliver(hau-po): maildir++: root=/home/h/a/hau-po/Maildir, index=, control=, inbox=/home/h/a/hau-po/Maildir Dec 1 09:22:34 postamt dovecot: deliver(hau-po): trash plugin: Added 'spam' with priority 1 Dec 1 09:22:34 postamt dovecot: deliver(hau-po): trash plugin: Added 'Trash' with priority 2 Dec 1 09:22:34 postamt dovecot: deliver(hau-po): sieve: using sieve path for user's script: /home/h/a/hau-po/.dovecot.sieve Dec 1 09:22:34 postamt dovecot: deliver(hau-po): sieve: opening script /home/h/a/hau-po/.dovecot.sieve Dec 1 09:22:34 postamt dovecot: deliver(hau-po): sieve: executing compiled script /home/h/a/hau-po/.dovecot.sieve Dec 1 09:22:34 postamt dovecot: deliver(hau-po): Namespace INBOX.: Using permissions from /home/h/a/hau-po/Maildir: mode=0700 gid=-1 Dec 1 09:22:34 postamt dovecot: deliver(hau-po): copy: uid=1, box=Dovecot Delivery Mail, dest=INBOX, msgid=3e58.0003.0000@mail.charite.de, size=99478 Dec 1 09:22:35 postamt dovecot: deliver(hau-po): sieve: msgid=3e58.0003.0000@mail.charite.de: stored mail into mailbox 'INBOX'
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de