X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/46730acf42cbde7d087b887eb78c3f06dc27d9ca..34cf4db2749cb9993eb062f6f4a32c1f4067a6b3:/roles/email/templates/dovecot/quota-warning.sh?ds=inline diff --git a/roles/email/templates/dovecot/quota-warning.sh b/roles/email/templates/dovecot/quota-warning.sh index 00c09f8..96951b5 100644 --- a/roles/email/templates/dovecot/quota-warning.sh +++ b/roles/email/templates/dovecot/quota-warning.sh @@ -1,8 +1,9 @@ -#!/bin/sh +#!/bin/bash set -e PERCENT=$1 -FROM="{{postfix.dovecot.postmaster}}" +USER=$2 +FROM="{{postfix.postmaster}}" msg="From: $FROM To: $USER @@ -14,6 +15,6 @@ Dein Posteingang ist zu $PERCENT% voll. Bitte räume etwas auf! Your mailbox is now $PERCENT% full. Please clean it up a bit!" -echo -e "$msg" | /usr/sbin/sendmail -f "$FROM" "$USER" "$FROM" +echo "$msg" | /usr/sbin/sendmail -f "$FROM" "$USER" "$FROM" exit 0