Files
zira-etc/dovecot/quota-warning.sh
2021-05-24 22:18:33 +03:00

12 lines
247 B
Bash
Executable File

#!/bin/bash
PERCENT=$1
USER=$2
cat << EOF | /usr/libexec/dovecot/dovecot-lda -d $USER -o "plugin/quota=dict:User quota::noenforcing:proxy::sqlquota"
From: postmaster@898.ro
Subject: Mailbox quota warning
Your mailbox is now $PERCENT% full.
EOF