ansible-role-dovecot/files/quota-warning.sh
2020-10-02 14:50:20 +02:00

10 lines
313 B
Bash

#!/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