From 27c9a8597f4cda6547cd0d5c4c2306fdabb00949 Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Tue, 4 Apr 2023 09:49:47 +0300 Subject: [PATCH 1/2] Added setting for TLS version --- docs/control-panel/settings/email.md | 8 ++++++++ docs/general/system-configuration-overrides.md | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/docs/control-panel/settings/email.md b/docs/control-panel/settings/email.md index cd8fd652b..a6f7dbf21 100755 --- a/docs/control-panel/settings/email.md +++ b/docs/control-panel/settings/email.md @@ -49,6 +49,14 @@ The username used to log in to your SMTP server. Not all SMTP servers require yo The password used to log in to your SMTP server. Not all SMTP servers require you to _authenticate_, but many of them do. In those cases you will need to specify the username (above) and password. +### Connection type + +Cryptographic protocol for SMTP. Can be set to Unencrypted (not recommended), SSL or TLS + +### TLS version + +When using TLS, provide the version that you can find in instructions from your SMTP provider. Version 1.2 is the most commonly used + ### Mail format When you send email via the Communicate section of your Control Panel, you are able to send HTML formatted emails. This preference sets whether the Communicate section has "Plain text" or "HTML" selected by default. diff --git a/docs/general/system-configuration-overrides.md b/docs/general/system-configuration-overrides.md index a940556f5..a75db4de0 100755 --- a/docs/general/system-configuration-overrides.md +++ b/docs/general/system-configuration-overrides.md @@ -3062,6 +3062,22 @@ Example Usage: **Also found in CP:** `Settings --> Access Throttling`: [Time Interval](control-panel/settings/throttling.md#time-interval) +### `tls_crypto_method` + +Stream encryption method, when using TLS for sending emails over SMTP. + +| Value | Behavior | +| ------------------------------------------ | -------------------------- | +| STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | TLS v1.0 | +| STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | TLS v1.1 | +| STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | TLS v1.2 (default) | +| STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT | TLS v1.3 (as of PHP 7.4.0) | + + +Example Usage: + + $config['tls_crypto_method'] = STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT; + ### `un_min_len` Set the minimum number of characters allowed for member usernames. From 874f9f11b7922aa68d89201e106aeee796e06473 Mon Sep 17 00:00:00 2001 From: Tom Jaeger Date: Tue, 4 Apr 2023 17:16:38 -0400 Subject: [PATCH 2/2] Update email.md --- docs/control-panel/settings/email.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/control-panel/settings/email.md b/docs/control-panel/settings/email.md index a6f7dbf21..084515e2d 100755 --- a/docs/control-panel/settings/email.md +++ b/docs/control-panel/settings/email.md @@ -55,7 +55,7 @@ Cryptographic protocol for SMTP. Can be set to Unencrypted (not recommended), SS ### TLS version -When using TLS, provide the version that you can find in instructions from your SMTP provider. Version 1.2 is the most commonly used +When using TLS, provide the version that you can find in the instructions from your SMTP provider. Version 1.2 is the most commonly used ### Mail format