From 05c79b0e3c31f3cdfbddc8f7ffe64d332eb6f128 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 9 Sep 2021 18:45:39 +0200 Subject: [PATCH] copy (and not parse) mta sts override config --- core/postfix/start.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/postfix/start.py b/core/postfix/start.py index 361ef3ba..12610bd0 100755 --- a/core/postfix/start.py +++ b/core/postfix/start.py @@ -76,9 +76,9 @@ for map_file in glob.glob("/overrides/*.map"): os.remove(destination) if os.path.exists("/overrides/mta-sts-daemon.yml"): - conf.jinja("/overrides/mta-sts-daemon.yml", os.environ, "/etc/mta-sts-daemon.yml") + shutil.copyfile("/overrides/mta-sts-daemon.yml", "/etc/mta-sts-daemon.yml") else: - conf.jinja("/conf/mta-sts-daemon.yml", os.environ, "/etc/mta-sts-daemon.yml") + conf.jinja("/conf/mta-sts-daemon.yml", os.environ, "/etc/mta-sts-daemon.yml") if not os.path.exists("/etc/postfix/tls_policy.map.lmdb"): open("/etc/postfix/tls_policy.map", "a").close()