add quota warnings

This commit is contained in:
Morre 2020-10-02 14:50:20 +02:00
parent 202f9bdb4c
commit 35f5fbb65a
No known key found for this signature in database
GPG key ID: 5D9B9B1B8F424BBC
3 changed files with 35 additions and 0 deletions

View file

@ -109,4 +109,20 @@ service quota-status {
}
client_limit = 1
}
plugin {
quota_warning = storage=10%% quota-warning 10 %u
quota_warning2 = storage=80%% quota-warning 80 %u
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
# use some unprivileged user for executing the quota warnings
user = vmail
unix_listener quota-warning {
user = vmail
group = vmail
}
}
{% endif %}