ignore more SSH errors
[ansible.git] / roles / email / templates / dovecot / quota-warning.sh
1 #!/bin/bash
2 set -e
3
4 PERCENT=$1
5 USER=$2
6 FROM="{{postfix.postmaster}}"
7
8 msg="From: $FROM
9 To: $USER
10 CC: $FROM
11 Subject: Dein Posteingang ist $PERCENT% voll / Your mailbox is $PERCENT% full
12 Content-Type: text/plain; charset=UTF-8
13
14 Dein Posteingang ist zu $PERCENT% voll. Bitte räume etwas auf!
15
16 Your mailbox is now $PERCENT% full. Please clean it up a bit!"
17
18 echo "$msg" | /usr/sbin/sendmail -f "$FROM" "$USER" "$FROM"
19
20 exit 0