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