ignore more SSH errors
[ansible.git] / roles / email / templates / dovecot / quota-warning.sh
index 00c09f828e45a6d15697dfaf569797c7f8283198..96951b5c4c6df01c00b233193be516d9001a9896 100644 (file)
@@ -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