blob: 5ffe4b87d5f368815b0a678bebb1d2a773e76358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
set -Eeu -o pipefail
PERCENT=$1
USER=$2
cat << EOF | /usr/libexec/dovecot/dovecot-lda -d "$USER" -o "plugin/quota=count:User quota:noenforcing"
From: postmaster@{{ dovecot_default_domain }}
Subject: Mailbox quota warning
This is an automatically generated message.
Your mailbox is now ${PERCENT}% full.
When your mailbox exceeds its quota, you will no longer receive new mail.
Please delete some messages to free up space.
EOF
|