Merge pull request #1332 from Tecnativa/amavis-touch-vhost

Avoid infinite failure log in Amavis with SMTP_ONLY=1
This commit is contained in:
Erik Wramner 2019-12-06 07:20:29 +01:00 committed by GitHub
commit e08274a87d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1093,6 +1093,8 @@ function _setup_postfix_vhost() {
if [ -f /tmp/vhost.tmp ]; then if [ -f /tmp/vhost.tmp ]; then
cat /tmp/vhost.tmp | sort | uniq > /etc/postfix/vhost && rm /tmp/vhost.tmp cat /tmp/vhost.tmp | sort | uniq > /etc/postfix/vhost && rm /tmp/vhost.tmp
elif [ ! -f /etc/postfix/vhost ]; then
touch /etc/postfix/vhost
fi fi
} }