self-hosting/roles/mailserver_dovecot/templates/quota-warning.sh.j2

14 lines
413 B
Text
Raw Normal View History

2024-01-09 19:25:44 +01:00
#!/bin/sh
PERCENT=$1
USER=$2
cat << EOF | /usr/lib/dovecot/dovecot-lda -d "$USER" -o "plugin/quota=maildir:User quota:noenforcing"
2024-01-12 20:44:44 +01:00
From: postmaster@{{ ansible_hostname }}.{{ virtual_domain }}
2024-01-09 19:25:44 +01:00
Subject: Quota warning - $PERCENT% reached
Your mailbox can only store a limited amount of emails.
Currently it is $PERCENT% full. If you reach 100% then
new emails cannot be stored. Thanks for your understanding.
EOF