From 1e0458e3438b846edac78cd1f2cdf01d7d149e62 Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Sat, 31 Aug 2019 10:26:27 +0200 Subject: [PATCH] Add 'config/dovecot/quota-warning.sh' --- config/dovecot/quota-warning.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/dovecot/quota-warning.sh diff --git a/config/dovecot/quota-warning.sh b/config/dovecot/quota-warning.sh new file mode 100644 index 0000000..c8d6071 --- /dev/null +++ b/config/dovecot/quota-warning.sh @@ -0,0 +1,9 @@ +#!/bin/sh +PERCENT=$1 +USER=$2 +cat << EOF | /usr/lib/dovecot/dovecot-lda -d $USER -o "plugin/quota=dict:User quota::noenforcing:proxy::sqlquota" +From: postmaster@linuxize.com +Subject: Quota warning + +Your mailbox is now $PERCENT% full. +EOF \ No newline at end of file