mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
Syntax errors.
This commit is contained in:
parent
430f6dab38
commit
5e080bedb6
@ -535,7 +535,7 @@ def smtp_relay_get():
|
|||||||
def smtp_relay_set():
|
def smtp_relay_set():
|
||||||
config = utils.load_settings(env)
|
config = utils.load_settings(env)
|
||||||
newconf = request.form
|
newconf = request.form
|
||||||
try
|
try:
|
||||||
# Write on Postfix config
|
# Write on Postfix config
|
||||||
# Write on daemon env
|
# Write on daemon env
|
||||||
config["SMTP_RELAY_ENABLED"] = "true" if newconf.get("enabled") else "false"
|
config["SMTP_RELAY_ENABLED"] = "true" if newconf.get("enabled") else "false"
|
||||||
@ -545,7 +545,7 @@ def smtp_relay_set():
|
|||||||
utils.write_settings(config, env)
|
utils.write_settings(config, env)
|
||||||
# Restart Postfix
|
# Restart Postfix
|
||||||
return "OK"
|
return "OK"
|
||||||
except Exception e:
|
except Exception as e:
|
||||||
return (str(e), 500)
|
return (str(e), 500)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user