From 4d7bb26874140af8ff0e8419147daff7bf4f339a Mon Sep 17 00:00:00 2001 From: andryyy Date: Fri, 1 Sep 2017 12:22:29 +0200 Subject: [PATCH] [Postfix] Add null rcpt for watchdog --- data/Dockerfiles/postfix/postfix.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/Dockerfiles/postfix/postfix.sh b/data/Dockerfiles/postfix/postfix.sh index 9837eeef8..2456f3d9d 100755 --- a/data/Dockerfiles/postfix/postfix.sh +++ b/data/Dockerfiles/postfix/postfix.sh @@ -3,6 +3,10 @@ trap "postfix stop" EXIT [[ ! -d /opt/postfix/conf/sql/ ]] && mkdir -p /opt/postfix/conf/sql/ +if [[ -z $(grep null /etc/aliases) ]]; then + echo null: /dev/null >> /etc/aliases; + newaliases; +fi cat < /opt/postfix/conf/sql/mysql_relay_recipient_maps.cf user = ${DBUSER}