mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-17 00:01:28 +02:00
Avoid infinite failure log in Amavis with SMTP_ONLY=1
Fix #801 by simply touching the file if it doesn't exist. @Tecnativa TT20505
This commit is contained in:
parent
2bb1a753e7
commit
7f1bc8f8b3
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue