From 0e583b9e4f44cda10e914cd4b72b714523c9092e Mon Sep 17 00:00:00 2001 From: David Duque Date: Fri, 17 Apr 2020 18:06:16 +0100 Subject: [PATCH] Booleans are passed as strings --- management/daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/daemon.py b/management/daemon.py index 49034f55..ccff65b3 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -540,9 +540,9 @@ def smtp_relay_set(): # Write on Postfix config # Write on daemon env config["SMTP_RELAY_ENABLED"] = newconf.get("enabled") - config["SMTP_RELAY_HOST"] = newconf.get("host") + config["SMTP_RELAY_HOST"] = (newconf.get("host") == "true") config["SMTP_RELAY_AUTH"] = newconf.get("auth_enabled") - config["SMTP_RELAY_USER"] = newconf.get("user") + config["SMTP_RELAY_USER"] = (newconf.get("user") == "true") utils.write_settings(config, env) # Restart Postfix return utils.shell("check_output", ["/usr/bin/systemctl", "restart", "postfix"], capture_stderr=True)