maketank-scripts from ansible

This commit is contained in:
2025-08-25 10:40:17 +02:00
parent 8ec81febba
commit 30ce409c4e
15 changed files with 281 additions and 0 deletions

View 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