Hi
Im trying to setup automatic quota warning in dovecot but somehow cant
get it to work
Quota usage is displayed properly in roundcube so quota plugin is working.
But somehow i cant get quota warning to work
my dovecot is 2.2.9 (stock version in ubuntu)
doveconf -n output in attached file
dovecot-quota-warning-sh is as found in wiki
Best regards
Przemys?aw Orzechowski
-------------- next part --------------
# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-29-generic x86_64 Ubuntu 14.04 LTS
auth_mechanisms = plain login
imap_client_workarounds = delay-newmail
mail_location =
maildir:~/Maildir:INDEX=/var/lib/dovecot-virtualmin/index/%u:CONTROL=/var/lib/dovecot-virtualmin/control/%u
mail_plugins = quota
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
plugin {
quota = fs:Limit_uzytkownika:user
quota2 = fs:Limit_domeny:group
quota_warning = storage=95%% quota-warning 95 %u
quota_warning01 = Limit_uzytkownika=95%% quota-warning 95 %u
quota_warning02 = Limit_uzytkownika=80%% quota-warning 80 %u
quota_warning2 = storage=90%% quota-warning 80 %u
}
postmaster_address = postmaster@
protocols = imap pop3 pop3
service imap-login {
inet_listener imap {
port = 0
}
inet_listener imaps {
address = *
port = 993
ssl = yes
}
}
service pop3-login {
inet_listener pop3 {
port = 0
}
inet_listener pop3s {
address = *
port = 995
ssl = yes
}
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
unix_listener quota-warning {
user = vmail
}
user = dovecot
}
ssl_ca = </etc/ssl/ca-bundle.crt
ssl_cert = </etc/ssl/ssl.crt
ssl_key = </etc/ssl/ssl.key
userdb {
driver = passwd
}
protocol lda {
mail_plugins = quota
}
protocol imap {
mail_plugins = quota imap_quota
service imap-login {
inet_listener imaps {
address = *
port = 993
}
}
}
I don't use fs, but,
service quota-warning {
executable = script /usr/local/scripts/quota-warning.sh
user = vmail
unix_listener quota-warning {
mode = 0666
<-------------------------------------------------
}
}
You also have
quota_warning2 = storage=90%% quota-warning 80 %u
shouldn't that be 90 / 90 or 80 / 80
Not sure on validity of those other "quota_warning02" (zero-%d) etc
since we dont use fs, suggest you check, we use maildir (and I dont
have time at present to read up on fs to offer any further help right
now - need sleep), but maybe try using maildir?
quota = maildir
quota_rule = *:storage=800M
quota_rule2 = Trash:storage=+100M
quota_rule3 = Junk:storage=+100M
On 6/27/14, Przemys?aw Orzechowski <przemek.orzechowski at makolab.pl>
wrote:> Hi
>
> Im trying to setup automatic quota warning in dovecot but somehow cant
> get it to work
> Quota usage is displayed properly in roundcube so quota plugin is working.
> But somehow i cant get quota warning to work
> my dovecot is 2.2.9 (stock version in ubuntu)
> doveconf -n output in attached file
> dovecot-quota-warning-sh is as found in wiki
>
> Best regards
> Przemys?aw Orzechowski
>