From aa1e03476d25b43659a973bcace5de1f08de9ba4 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 4 Feb 2019 23:59:31 +0100 Subject: [PATCH] [Dovecot] Enable quota notifications --- data/conf/dovecot/dovecot.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data/conf/dovecot/dovecot.conf b/data/conf/dovecot/dovecot.conf index e723edcdb..8ef3373d5 100644 --- a/data/conf/dovecot/dovecot.conf +++ b/data/conf/dovecot/dovecot.conf @@ -325,6 +325,8 @@ plugin { imapsieve_mailbox2_causes = COPY imapsieve_mailbox2_before = file:/usr/local/lib/dovecot/sieve/report-ham.sieve # END + quota_warning = storage=95%% quota-warning 95 %u + quota_warning2 = storage=80%% quota-warning 80 %u sieve_pipe_bin_dir = /usr/local/lib/dovecot/sieve sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.execute +vacation-seconds sieve_max_script_size = 1M @@ -351,6 +353,14 @@ plugin { mail_log_fields = uid box msgid size mail_log_cached_only = yes } +service quota-warning { + executable = script /usr/local/bin/quota_notify.py + # use some unprivileged user for executing the quota warnings + user = vmail + unix_listener quota-warning { + user = vmail + } +} dict { sqlquota = mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-quota.conf sieve_after = mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-sieve_after.conf