From c1d31e776f8c309aa5d5aa2f6441f665a1cfd90a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 27 Oct 2023 18:18:48 +0200 Subject: [PATCH] fix quota emails --- roles/email/templates/dovecot/quota-warning.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/email/templates/dovecot/quota-warning.sh b/roles/email/templates/dovecot/quota-warning.sh index f834d1c..96951b5 100644 --- a/roles/email/templates/dovecot/quota-warning.sh +++ b/roles/email/templates/dovecot/quota-warning.sh @@ -1,7 +1,8 @@ -#!/bin/sh +#!/bin/bash set -e PERCENT=$1 +USER=$2 FROM="{{postfix.postmaster}}" msg="From: $FROM @@ -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 -- 2.30.2