mirror of
https://github.com/docker-mailserver/docker-mailserver
synced 2026-09-04 15:44:11 +02:00
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
16 lines
326 B
Bash
Executable File
16 lines
326 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Report a quota usage warning to a user.
|
|
# Dovecot invokes this as: <percent-or-below> %{user}
|
|
|
|
PERCENT="${1}"
|
|
USER="${2}"
|
|
DOMAIN="${USER#*@}"
|
|
|
|
cat << EOF | /usr/lib/dovecot/dovecot-lda -d "${USER}" -o quota_enforce=no
|
|
From: postmaster@${DOMAIN}
|
|
Subject: quota warning
|
|
|
|
Your mailbox is now ${PERCENT}% full.
|
|
EOF
|