From 858251045db8da31327ba1578370bb2d63270b70 Mon Sep 17 00:00:00 2001 From: David Duque Date: Fri, 17 Apr 2020 23:39:52 +0100 Subject: [PATCH] Cleanup --- management/daemon.py | 2 +- management/templates/smtp-relays.html | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/management/daemon.py b/management/daemon.py index 5181c341..9d7902e3 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -550,7 +550,7 @@ def smtp_relay_set(): ("smtp_sasl_auth_enable", "yes" if config["SMTP_RELAY_AUTH"] else "no"), ("smtp_sasl_security_options", "noanonymous" if config["SMTP_RELAY_AUTH"] else "anonymous"), ("smtp_sasl_tls_security_options", "noanonymous" if config["SMTP_RELAY_AUTH"] else "anonymous"), - )) + ), False, False) if config["SMTP_RELAY_AUTH"]: # Edit the sasl password with open("/etc/postfix/sasl_passwd", "w") as f: diff --git a/management/templates/smtp-relays.html b/management/templates/smtp-relays.html index 50286cd7..d87ea363 100644 --- a/management/templates/smtp-relays.html +++ b/management/templates/smtp-relays.html @@ -129,11 +129,6 @@ show_modal_error("Done!", "The configuration has been updated and Postfix was restarted successfully. Please make sure everything is functioning as intended.", () => { return false }) - }, - (text, xhr) => { - if (xhr.status != 403) { - show_modal_error("Error", `
${xhr}

${text}

Welp, oof`) - } } ) }