From 02c26575695e8088c54014bbf2b1b301e9daef6a Mon Sep 17 00:00:00 2001 From: David Duque Date: Fri, 17 Apr 2020 19:06:19 +0100 Subject: [PATCH] Oops --- management/daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/daemon.py b/management/daemon.py index f33345ae..5181c341 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -556,7 +556,7 @@ def smtp_relay_set(): with open("/etc/postfix/sasl_passwd", "w") as f: f.write(f"[{config['SMTP_RELAY_HOST']}]:587 {config['SMTP_RELAY_USER']}:{newconf.get('pass')}") utils.shell("check_output", ["/usr/bin/chmod", "600", "/etc/postfix/sasl_passwd"], capture_stderr=True) - utils.shell("check_output", ["postma", "/etc/postfix/sasl_passwd"], capture_stderr=True) + utils.shell("check_output", ["/usr/sbin/postmap", "/etc/postfix/sasl_passwd"], capture_stderr=True) # Restart Postfix return utils.shell("check_output", ["/usr/bin/systemctl", "restart", "postfix"], capture_stderr=True) except Exception as e: