From 7aa403573d61ed8a2492089d0bbeae8da7859bdd Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sun, 5 Sep 2021 19:06:20 +0200 Subject: [PATCH] no with here --- core/postfix/start.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/postfix/start.py b/core/postfix/start.py index 9f35cf73..3de83a63 100755 --- a/core/postfix/start.py +++ b/core/postfix/start.py @@ -80,8 +80,7 @@ if os.path.exists("/overrides/mta-sts-daemon.yml"): conf.jinja("/etc/mta-sts-daemon.yml", os.environ, "/etc/mta-sts-daemon.yml") if not os.path.exists("/etc/postfix/tls_policy.map.lmdb"): - with open("/etc/postfix/tls_policy.map", "a") as f: - pass + open("/etc/postfix/tls_policy.map", "a").close() os.system("postmap /etc/postfix/tls_policy.map") if "RELAYUSER" in os.environ: