* [PATCH v2] docs: git-send-email: difference between ssl and tls smtp-encryption
@ 2022-10-11 16:49 sndanailov
2022-10-11 17:22 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: sndanailov @ 2022-10-11 16:49 UTC (permalink / raw)
To: git; +Cc: gitster, sandals, aaron, philipoakley, Sotir Danailov
From: Sotir Danailov <sndanailov@wired4ever.net>
New explanation for the difference between these values.
It's hard to understand what they do based only on the names.
New description of used default ports.
Signed-off-by: Sotir Danailov <sndanailov@wired4ever.net>
---
Changes since v1: Expanded explanation, covering more terms.
Link to v1: https://public-inbox.org/git/20221010172859.13832-1-sndanailov@wired4ever.net/
Documentation/git-send-email.txt | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
index 3290043053..d64a46fa87 100644
--- a/Documentation/git-send-email.txt
+++ b/Documentation/git-send-email.txt
@@ -178,9 +178,18 @@ Sending
for `sendmail` in `/usr/sbin`, `/usr/lib` and $PATH.
--smtp-encryption=<encryption>::
- Specify the encryption to use, either 'ssl' or 'tls'. Any other
- value reverts to plain SMTP. Default is the value of
- `sendemail.smtpEncryption`.
+ Valid values are 'ssl' and 'tls'. Any other value reverts to plain
+ (unencrypted) SMTP, which defaults to port 25.
+ Despite the names, both values will use the same newer version of TLS,
+ but for historic reasons have these names. The difference between the
+ two values for Git is the following. 'ssl' refers to "implicit"
+ encryption (sometimes called SMTPS), that uses port 465 by default.
+ 'tls' refers to "explicit" encryption (often known as STARTTLS),
+ that uses port 25 by default. Other ports might be used by the SMTP
+ server, which are not the default. Commonly found alternative port for
+ 'tls' and unencrypted is 587. You need to check your provider's
+ documentation or your server configuration to make sure
+ for your own case. Default is the value of `sendemail.smtpEncryption`.
--smtp-domain=<FQDN>::
Specifies the Fully Qualified Domain Name (FQDN) used in the
--
2.37.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] docs: git-send-email: difference between ssl and tls smtp-encryption
2022-10-11 16:49 [PATCH v2] docs: git-send-email: difference between ssl and tls smtp-encryption sndanailov
@ 2022-10-11 17:22 ` Junio C Hamano
2022-10-11 17:31 ` Sotir Danailov
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2022-10-11 17:22 UTC (permalink / raw)
To: sndanailov; +Cc: git, sandals, aaron, philipoakley
sndanailov@wired4ever.net writes:
> From: Sotir Danailov <sndanailov@wired4ever.net>
>
> New explanation for the difference between these values.
> It's hard to understand what they do based only on the names.
> New description of used default ports.
>
> Signed-off-by: Sotir Danailov <sndanailov@wired4ever.net>
> ---
> Changes since v1: Expanded explanation, covering more terms.
> Link to v1: https://public-inbox.org/git/20221010172859.13832-1-sndanailov@wired4ever.net/
>
> Documentation/git-send-email.txt | 15 ++++++++++++---
> 1 file changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
> index 3290043053..d64a46fa87 100644
> --- a/Documentation/git-send-email.txt
> +++ b/Documentation/git-send-email.txt
> @@ -178,9 +178,18 @@ Sending
> for `sendmail` in `/usr/sbin`, `/usr/lib` and $PATH.
>
> --smtp-encryption=<encryption>::
> - Specify the encryption to use, either 'ssl' or 'tls'. Any other
> - value reverts to plain SMTP. Default is the value of
> - `sendemail.smtpEncryption`.
> + Valid values are 'ssl' and 'tls'. Any other value reverts to plain
> + (unencrypted) SMTP, which defaults to port 25.
Please always start the description of a thing by explaining what
the thing is. After reading two lines, we learned what values to
plug <encryption> are valid, but we still do not know what good
giving --smtp-encryption=<encryption> is supposed to give us.
> + Despite the names, both values will use the same newer version of TLS,
> + but for historic reasons have these names. The difference between the
> + two values for Git is the following. 'ssl' refers to "implicit"
> + encryption (sometimes called SMTPS), that uses port 465 by default.
And we still haven't said what the option is about at this point,
even though the reader may be able to guess that this is about a
mechanism to specify something about encryption after reading this
much text.
None of what we see in the updated text may be wrong per-se, but the
readers need "what it is about" upfront to be motivated to read it
through.
Perhaps start the description like this?
Specify how SMTP connection should be entered into encrypted
mode. The valid values are 'ssl' and 'tls'. Any other value ...
> + 'tls' refers to "explicit" encryption (often known as STARTTLS),
> + that uses port 25 by default. Other ports might be used by the SMTP
> + server, which are not the default. Commonly found alternative port for
> + 'tls' and unencrypted is 587. You need to check your provider's
> + documentation or your server configuration to make sure
> + for your own case. Default is the value of `sendemail.smtpEncryption`.
I think the updated text is otherwise good, but it would be better
to remove "The difference between ... is the following." The text
is easier to read without that sentence.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] docs: git-send-email: difference between ssl and tls smtp-encryption
2022-10-11 17:22 ` Junio C Hamano
@ 2022-10-11 17:31 ` Sotir Danailov
2022-10-11 17:41 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Sotir Danailov @ 2022-10-11 17:31 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, brian m. carlson, aaron, philipoakley
On Tue 11 10 2022 19:22, Junio C Hamano wrote:
> Please always start the description of a thing by explaining what
> the thing is.
Wow I can't believe I missed that...sorry!
> I think the updated text is otherwise good, but it would be better
> to remove "The difference between ... is the following." The text
> is easier to read without that sentence.
I just wanted to make it clear that this is how Git interprets these values.
But yeah, you're right, it's unnecessary.
I will make a v3 tomorrow.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] docs: git-send-email: difference between ssl and tls smtp-encryption
2022-10-11 17:31 ` Sotir Danailov
@ 2022-10-11 17:41 ` Junio C Hamano
0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2022-10-11 17:41 UTC (permalink / raw)
To: Sotir Danailov; +Cc: git, brian m. carlson, aaron, philipoakley
Sotir Danailov <sndanailov@wired4ever.net> writes:
> On Tue 11 10 2022 19:22, Junio C Hamano wrote:
>> Please always start the description of a thing by explaining what
>> the thing is.
>
> Wow I can't believe I missed that...sorry!
>
>> I think the updated text is otherwise good, but it would be better
>> to remove "The difference between ... is the following." The text
>> is easier to read without that sentence.
>
> I just wanted to make it clear that this is how Git interprets these values.
> But yeah, you're right, it's unnecessary.
>
> I will make a v3 tomorrow.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-11 17:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-11 16:49 [PATCH v2] docs: git-send-email: difference between ssl and tls smtp-encryption sndanailov
2022-10-11 17:22 ` Junio C Hamano
2022-10-11 17:31 ` Sotir Danailov
2022-10-11 17:41 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).