From 13b839cfda163f6efcc4c0bf0eec6403b8a62ace Mon Sep 17 00:00:00 2001 From: David D'Hauwe <43988646+daviddhauwe@users.noreply.github.com> Date: Tue, 14 Jun 2022 23:13:16 +0200 Subject: [PATCH] Smtp server security note and hide unrelevant fields (#924) * Email Mta Node added security and authentication * Documentation updated * Original formatting restored * email-mta added note for port security hide fields when not relevant --- social/email/61-email.html | 38 ++++++++++++++++++------ social/email/locales/en-US/61-email.html | 3 +- 2 files changed, 31 insertions(+), 10 deletions(-) diff --git a/social/email/61-email.html b/social/email/61-email.html index 8baadfb4..552e7bbe 100644 --- a/social/email/61-email.html +++ b/social/email/61-email.html @@ -316,19 +316,18 @@ -
+
-
+
-
@@ -382,11 +381,18 @@ }, oneditprepare: function () { let node = this; - // Expert settings - $("#node-input-expert").typedInput({ - type: "json", - types: ["json"] - }) + // Certificate settings + $("#node-input-secure").change(secVisibility); + $("#node-input-starttls").change(secVisibility); + function secVisibility() { + if ($("#node-input-secure").is(":checked") || $("#node-input-starttls").is(":checked")) { + $("#certRow").show(); + $("#keyRow").show(); + } else { + $("#certRow").hide(); + $("#keyRow").hide(); + } + } // User Management let cacheItemCount = 0; if (node.users && node.users.length > 0) { @@ -461,7 +467,21 @@ $("#node-input-email-users-container-div").scrollTop( $("#node-input-email-users-container-div").get(0).scrollHeight ); - }); + }); + $("#node-input-auth").change(function () { + if ($("#node-input-auth").is(":checked")) { + $("#node-input-email-users-add").show(); + $("#node-input-email-users-container-div").show(); + } else { + $("#node-input-email-users-add").hide(); + $("#node-input-email-users-container-div").hide(); + } + }); + // Expert settings + $("#node-input-expert").typedInput({ + type: "json", + types: ["json"] + }) }, oneditsave: function () { let node = this; diff --git a/social/email/locales/en-US/61-email.html b/social/email/locales/en-US/61-email.html index 9bd97cda..1eb79661 100644 --- a/social/email/locales/en-US/61-email.html +++ b/social/email/locales/en-US/61-email.html @@ -68,7 +68,8 @@

Security

When Secure connection is checked, the connection will use TLS. If not it is still possible to upgrade clear text socket to TLS socket by checking Start TLS. - If you do no specify your own certificate (path to file) then a pregenerated self-signed certificate is used. Any respectful client refuses to accept such certificate.

+ In most cases when using port 465, check Secure connection. For port 587 or 25 keep it disabled, use Start TLS instead.

+

If you do no specify your own certificate (path to file) then a pregenerated self-signed certificate is used. Any respectful client refuses to accept such certificate.

Authentication

Authentication can be enabled (PLAIN or LOGIN). Add at least one user.

Expert