From 7f1bc8f8b3935099813f9f107165742679453ead Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 3 Dec 2019 13:43:43 +0000 Subject: [PATCH] Avoid infinite failure log in Amavis with SMTP_ONLY=1 Fix #801 by simply touching the file if it doesn't exist. @Tecnativa TT20505 --- target/start-mailserver.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 405d88a0..81819aff 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -1093,6 +1093,8 @@ function _setup_postfix_vhost() { if [ -f /tmp/vhost.tmp ]; then cat /tmp/vhost.tmp | sort | uniq > /etc/postfix/vhost && rm /tmp/vhost.tmp + elif [ ! -f /etc/postfix/vhost ]; then + touch /etc/postfix/vhost fi }