1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-25 22:12:28 +02:00

handle DEFER_ON_TLS_ERROR as bool

use /conf/mta-sts-daemon.yml when override is missing
This commit is contained in:
Alexander Graf
2021-09-09 17:30:46 +02:00
parent d464187477
commit b02ceab72f
4 changed files with 5 additions and 5 deletions

View File

@@ -76,8 +76,9 @@ for map_file in glob.glob("/overrides/*.map"):
os.remove(destination)
if os.path.exists("/overrides/mta-sts-daemon.yml"):
shutil.copyfile("/overrides/mta-sts-daemon.yml", "/etc/mta-sts-daemon.yml")
conf.jinja("/etc/mta-sts-daemon.yml", os.environ, "/etc/mta-sts-daemon.yml")
conf.jinja("/overrides/mta-sts-daemon.yml", os.environ, "/etc/mta-sts-daemon.yml")
else:
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()