mirror of
https://github.com/docker-mailserver/docker-mailserver
synced 2024-12-18 14:04:17 +01:00
15 lines
295 B
Bash
Executable File
15 lines
295 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Report a quota usage warning to an user
|
|
|
|
PERCENT="${1}"
|
|
USER="${2}"
|
|
DOMAIN="${3}"
|
|
|
|
cat << EOF | /usr/lib/dovecot/dovecot-lda -d "${USER}" -o "plugin/quota=maildir:User quota:noenforcing"
|
|
From: postmaster@${DOMAIN}
|
|
Subject: quota warning
|
|
|
|
Your mailbox is now ${PERCENT}% full.
|
|
EOF
|