1
0
дзеркало https://github.com/mail-in-a-box/mailinabox.git синхронізовано 2026-09-11 00:09:00 +02:00
Цей коміт міститься в:
David Duque
2020-04-17 18:09:43 +01:00
джерело 0e583b9e4f
коміт 25900758d1

Переглянути файл

@@ -539,10 +539,10 @@ def smtp_relay_set():
try: try:
# Write on Postfix config # Write on Postfix config
# Write on daemon env # Write on daemon env
config["SMTP_RELAY_ENABLED"] = newconf.get("enabled") config["SMTP_RELAY_ENABLED"] = (newconf.get("enabled") == "true")
config["SMTP_RELAY_HOST"] = (newconf.get("host") == "true") config["SMTP_RELAY_HOST"] = newconf.get("host")
config["SMTP_RELAY_AUTH"] = newconf.get("auth_enabled") config["SMTP_RELAY_AUTH"] = (newconf.get("auth_enabled") == "true")
config["SMTP_RELAY_USER"] = (newconf.get("user") == "true") config["SMTP_RELAY_USER"] = newconf.get("user") == "true"
utils.write_settings(config, env) utils.write_settings(config, env)
# Restart Postfix # Restart Postfix
return utils.shell("check_output", ["/usr/bin/systemctl", "restart", "postfix"], capture_stderr=True) return utils.shell("check_output", ["/usr/bin/systemctl", "restart", "postfix"], capture_stderr=True)