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