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

10
files/quota-warning.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/sh
PERCENT=$1
USER=$2
cat << EOF | /usr/lib/dovecot/dovecot-lda -d $USER -o "plugin/quota=maildir:User quota:noenforcing"
From: postmaster@cccv.de
Subject: Quota warning
Your mailbox is now $PERCENT% full.
Please consider archiving larger files in Nextcloud - a mail server is not a document archive.
EOF