maketank-scripts from ansible
This commit is contained in:
21
roles/mkt-scripts/files/dovecot/quota-warning.sh
Executable file
21
roles/mkt-scripts/files/dovecot/quota-warning.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
PERCENT=$1
|
||||
FROM="postmaster@maketank.net"
|
||||
|
||||
msg="From: $FROM
|
||||
To: $USER
|
||||
To: postmaster@maketank.net
|
||||
Subject: Your email quota is $PERCENT% full
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
|
||||
Your mailbox is now $PERCENT% full.
|
||||
Please free up some space, or increase the quota settings for this account.
|
||||
|
||||
Regards,
|
||||
your IMAP-Mailbox.
|
||||
"
|
||||
|
||||
echo "$msg" | /usr/sbin/sendmail -f $FROM "$USER"
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user