quota warning configuration problem

Przemysław Orzechowski przemek.orzechowski at makolab.pl
Thu Jun 26 14:52:21 UTC 2014


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
    }
  }
}


More information about the dovecot mailing list