I think i have quota setup correctly, but finally time arrived to check that ;) opensuse:/etc/dovecot # doveadm quota get -u luuk Quota name Type Value Limit % User quota STORAGE 571973 716800 79 User quota MESSAGE 45555 - 0 It seems i am at 79% of my quota so, i added a line to conf.d/90-quota.conf, to get a wraning when quota exceeds 10%: .... plugin { quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95 %u quota_warning2 = storage=90%% /usr/local/bin/quota-warning.sh 90 %u quota_warning3 = storage=10%% /usr/local/bin/quota-warning.sh 10 %u } .... But this message is never send, what am i missing (in my config)? Below is some info from a debug.log: 2012-05-12 10:40:51 imap(luuk): Debug: Effective uid=1000, gid=100, home=/home/luuk 2012-05-12 10:40:51 imap(luuk): Debug: Quota root: name=User quota backend=maildir args2012-05-12 10:40:51 imap(luuk): Debug: Quota rule: root=User quota mailbox=* bytes=734003200 messages=0 2012-05-12 10:40:51 imap(luuk): Debug: Quota warning: bytes=697303040 (95%) messages=0 reverse=no command=/usr/local/bin/quota-warning.sh 95 luuk 2012-05-12 10:40:51 imap(luuk): Debug: Quota warning: bytes=660602880 (90%) messages=0 reverse=no command=/usr/local/bin/quota-warning.sh 90 luuk 2012-05-12 10:40:51 imap(luuk): Debug: Quota warning: bytes=73400320 (10%) messages=0 reverse=no command=/usr/local/bin/quota-warning.sh 10 luuk 2012-05-12 10:40:51 imap(luuk): Debug: maildir++: root=/home/luuk/Maildir, index=, control=, inbox=/home/luuk/Maildir, alt=
On 12-05-2012 10:50, Luuk at dovecot wrote:> I think i have quota setup correctly, but finally time arrived to check > that ;) >...> But this message is never send, what am i missing (in my config)? >dovecot -n: # 2.0.16: /etc/dovecot/dovecot.conf # OS: Linux 3.1.10-1.9-desktop x86_64 openSUSE 12.1 (x86_64) auth_debug = yes auth_mechanisms = plain login cram-md5 info_log_path = /var/log/dovecot/dovecot-debug.log log_path = /var/log/dovecot/dovecot.log log_timestamp = "%Y-%m-%d %H:%M:%S " mail_debug = yes mail_location = maildir:~/Maildir mail_plugins = mail_log notify fts fts_squat quota managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave passdb { args = scheme=cram-md5 /etc/cram-md5.pwd driver = passwd-file } plugin { quota = maildir:User quota quota_rule = *:storage=700M quota_rule2 = *:messages=60000 quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95 %u quota_warning2 = storage=90%% /usr/local/bin/quota-warning.sh 90 %u quota_warning3 = storage=10%% /usr/local/bin/quota-warning.sh 10 %u sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap lmtp service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } process_min_avail = 0 service_count = 1 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = dovecot } user = dovecot } ssl_cert = </etc/ssl/certs/dovecot.pem ssl_key = </etc/ssl/private/dovecot.pem userdb { driver = passwd } verbose_proctitle = yes protocol imap { mail_plugins = mail_log notify fts fts_squat quota imap_quota }
On 05/12/2012 04:50 AM, Luuk at dovecot wrote:> It seems i am at 79% of my quota > so, i added a line to conf.d/90-quota.conf, to get a wraning when quota > exceeds 10%:Quota warnings are only sent when you _cross_ the limit, they are not sent (again) when you are already over the limit. So, in your case you will get your next warnings at 90% and 95%.