Report sender (#965)

* added REPORT_SENDER env variable to the container.
* integration test for REPORT_SENDER
* added tests for default REPORT_SENDER
This commit is contained in:
ixeft 2018-05-01 19:57:31 +02:00 committed by Johan Smits
parent c1118af66d
commit 60656aec49
8 changed files with 35 additions and 3 deletions

View file

@ -2,7 +2,7 @@
HOSTNAME=$1
RECIPIENT=$2
SENDER=$3
errex() {
echo -e "$@" 1>&2
exit 1
@ -23,7 +23,7 @@ The $HOSTNAME Mailserver"
fi
sendmail -t <<EOF
From: mailserver-report@$HOSTNAME
From: $SENDER
To: $RECIPIENT
Subject: Postfix Summary for $HOSTNAME
Content-Transfer-Encoding: 8bit