mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 01:55:29 +02:00
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:
parent
c1118af66d
commit
60656aec49
8 changed files with 35 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue