14 lines
307 B
Bash
Executable file
14 lines
307 B
Bash
Executable file
#!/bin/bash
|
|
PERCENT=$1
|
|
USER=$2
|
|
cat << EOF | /usr/sbin/sendmail $USER -O "plugin/quota=maildir:User quota:noenforcing"
|
|
From: postmaster@example.com
|
|
Subject: User mailbox quota warning $PERCENT% used.
|
|
|
|
Hello $USER,
|
|
|
|
Your mailbox is now $PERCENT% used.
|
|
Please remove old mails to send and receive mails.
|
|
|
|
EOF
|
|
|