1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-23 22:04:47 +02:00

Document as suggested on #mailu-dev

This commit is contained in:
Florent Daigniere
2021-09-05 18:23:08 +02:00
parent a9a1b3e55e
commit 9888efe55d
2 changed files with 18 additions and 3 deletions

View File

@@ -80,9 +80,8 @@ 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", "w") as f:
for domain in ['example.com']:
f.write(f'{domain}\tsecure\n')
with open("/etc/postfix/tls_policy.map", "a") as f:
pass
os.system("postmap /etc/postfix/tls_policy.map")
if "RELAYUSER" in os.environ: