{"thread":{"id":"64028","subject":"[PATCH] docs: update sendmail docs to use more secure SMTP server for Gmail","startedAt":"2025-08-25T06:55:35Z","lastAt":"2025-08-26T15:09:31Z","messageCount":4,"participants":["Aditya Garg","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"524854","messageId":"PN3PR01MB95973B72C16F68D63BE2B410B83EA@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM","threadId":"64028","inReplyTo":null,"subject":"[PATCH] docs: update sendmail docs to use more secure SMTP server for Gmail","fromName":"Aditya Garg","fromEmail":"gargaditya08@live.com","sentAt":"2025-08-25T06:55:15Z","receivedAt":"2025-08-25T06:55:35Z","isPatch":true,"sender":{"key":"gargaditya08@live.com","avatar":"https://avatars.githubusercontent.com/u/85610623?v=4"},"body":"Gmail's SMTP server also has a port 465 with SSL/TLS encryption. It is\nmore secure than port 587 with STARTTLS encryption. Update the docs to\nreflect this change.\n\nSigned-off-by: Aditya Garg <gargaditya08@live.com>\n---\n Documentation/git-send-email.adoc | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/Documentation/git-send-email.adoc b/Documentation/git-send-email.adoc\nindex 5335502d68..c610909a92 100644\n--- a/Documentation/git-send-email.adoc\n+++ b/Documentation/git-send-email.adoc\n@@ -521,10 +521,10 @@ edit `~/.gitconfig` to specify your account settings:\n \n ----\n [sendemail]\n-\tsmtpEncryption = tls\n+\tsmtpEncryption = ssl\n \tsmtpServer = smtp.gmail.com\n \tsmtpUser = yourname@gmail.com\n-\tsmtpServerPort = 587\n+\tsmtpServerPort = 465\n ----\n \n Gmail does not allow using your regular password for `git send-email`.\n@@ -542,10 +542,10 @@ if you want to use `OAUTHBEARER`, edit your `~/.gitconfig` file and add\n \n ----\n [sendemail]\n-\tsmtpEncryption = tls\n+\tsmtpEncryption = ssl\n \tsmtpServer = smtp.gmail.com\n \tsmtpUser = yourname@gmail.com\n-\tsmtpServerPort = 587\n+\tsmtpServerPort = 465\n \tsmtpAuth = OAUTHBEARER\n ----\n \n-- \n2.51.0\n\n"},{"id":"524958","messageId":"xmqqcy8im8zd.fsf@gitster.g","threadId":"64028","inReplyTo":"PN3PR01MB95973B72C16F68D63BE2B410B83EA@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM","subject":"Re: [PATCH] docs: update sendmail docs to use more secure SMTP server for Gmail","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2025-08-26T14:51:50Z","receivedAt":"2025-08-26T14:51:52Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Aditya Garg <gargaditya08@live.com> writes:\n\n> Gmail's SMTP server also has a port 465 with SSL/TLS encryption. It is\n> more secure than port 587 with STARTTLS encryption. Update the docs to\n> reflect this change.\n\n\"Update the docs to reflect this change\"?  When there is no change\nother than the changes this patch is making to the documentation,\nthat is a very strange thing to say.\n\nI would have explained it this way instead, perhaps.\n\n    Earlier recommendation by IETF with RFC 2595 was to deprecate\n    implicit TLS in preference for upgrade an initially unencrypted\n    connection with STARTTLS command.  These days, however, IETF\n    recommends that connections be made using \"Implicit TLS\", in\n    preference to STARTTLS and the like, completely reversing their\n    earlier position, in RFC8314.\n\n    Update the GMail example to use the implicit TLS to match the\n    current recommendation at port 465.\n\n\n\n\n> Signed-off-by: Aditya Garg <gargaditya08@live.com>\n> ---\n>  Documentation/git-send-email.adoc | 8 ++++----\n>  1 file changed, 4 insertions(+), 4 deletions(-)\n>\n> diff --git a/Documentation/git-send-email.adoc b/Documentation/git-send-email.adoc\n> index 5335502d68..c610909a92 100644\n> --- a/Documentation/git-send-email.adoc\n> +++ b/Documentation/git-send-email.adoc\n> @@ -521,10 +521,10 @@ edit `~/.gitconfig` to specify your account settings:\n>  \n>  ----\n>  [sendemail]\n> -\tsmtpEncryption = tls\n> +\tsmtpEncryption = ssl\n>  \tsmtpServer = smtp.gmail.com\n>  \tsmtpUser = yourname@gmail.com\n> -\tsmtpServerPort = 587\n> +\tsmtpServerPort = 465\n>  ----\n>  \n>  Gmail does not allow using your regular password for `git send-email`.\n> @@ -542,10 +542,10 @@ if you want to use `OAUTHBEARER`, edit your `~/.gitconfig` file and add\n>  \n>  ----\n>  [sendemail]\n> -\tsmtpEncryption = tls\n> +\tsmtpEncryption = ssl\n>  \tsmtpServer = smtp.gmail.com\n>  \tsmtpUser = yourname@gmail.com\n> -\tsmtpServerPort = 587\n> +\tsmtpServerPort = 465\n>  \tsmtpAuth = OAUTHBEARER\n>  ----\n"},{"id":"524962","messageId":"PN3PR01MB959704D84DCD379442A9D053B839A@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM","threadId":"64028","inReplyTo":"xmqqcy8im8zd.fsf@gitster.g","subject":"Re: [PATCH] docs: update sendmail docs to use more secure SMTP server for Gmail","fromName":"Aditya Garg","fromEmail":"gargaditya08@live.com","sentAt":"2025-08-26T15:07:28Z","receivedAt":"2025-08-26T15:07:35Z","isPatch":true,"sender":{"key":"gargaditya08@live.com","avatar":"https://avatars.githubusercontent.com/u/85610623?v=4"},"body":"\n\nOn 26/08/25 8:21 pm, Junio C Hamano wrote:\n>     Earlier recommendation by IETF with RFC 2595 was to deprecate\n>     implicit TLS in preference for upgrade an initially unencrypted\n>     connection with STARTTLS command.  These days, however, IETF\n>     recommends that connections be made using \"Implicit TLS\", in\n>     preference to STARTTLS and the like, completely reversing their\n>     earlier position, in RFC8314.\n> \n>     Update the GMail example to use the implicit TLS to match the\n>     current recommendation at port 465.\n\nFixed in v2\n\n"},{"id":"524963","messageId":"20250826150919.5239-1-gargaditya08@live.com","threadId":"64028","inReplyTo":"PN3PR01MB95973B72C16F68D63BE2B410B83EA@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM","subject":"[PATCH v2] docs: update sendmail docs to use more secure SMTP server for Gmail","fromName":"Aditya Garg","fromEmail":"gargaditya08@live.com","sentAt":"2025-08-26T15:09:22Z","receivedAt":"2025-08-26T15:09:31Z","isPatch":true,"sender":{"key":"gargaditya08@live.com","avatar":"https://avatars.githubusercontent.com/u/85610623?v=4"},"body":"Earlier recommendation by IETF with RFC 2595 was to deprecate\nimplicit TLS in preference for upgrade an initially unencrypted\nconnection with STARTTLS command.  These days, however, IETF\nrecommends that connections be made using \"Implicit TLS\", in\npreference to STARTTLS and the like, completely reversing their\nearlier position, in RFC8314.\n\nUpdate the GMail example to use the implicit TLS to match the\ncurrent recommendation at port 465.\n\nSigned-off-by: Aditya Garg <gargaditya08@live.com>\n---\n Documentation/git-send-email.adoc | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/Documentation/git-send-email.adoc b/Documentation/git-send-email.adoc\nindex daddaae36d..8aa54e36e7 100644\n--- a/Documentation/git-send-email.adoc\n+++ b/Documentation/git-send-email.adoc\n@@ -565,10 +565,10 @@ edit `~/.gitconfig` to specify your account settings:\n \n ----\n [sendemail]\n-\tsmtpEncryption = tls\n+\tsmtpEncryption = ssl\n \tsmtpServer = smtp.gmail.com\n \tsmtpUser = yourname@gmail.com\n-\tsmtpServerPort = 587\n+\tsmtpServerPort = 465\n ----\n \n Gmail does not allow using your regular password for `git send-email`.\n@@ -586,10 +586,10 @@ if you want to use `OAUTHBEARER`, edit your `~/.gitconfig` file and add\n \n ----\n [sendemail]\n-\tsmtpEncryption = tls\n+\tsmtpEncryption = ssl\n \tsmtpServer = smtp.gmail.com\n \tsmtpUser = yourname@gmail.com\n-\tsmtpServerPort = 587\n+\tsmtpServerPort = 465\n \tsmtpAuth = OAUTHBEARER\n ----\n \n\nRange-diff against v1:\n-:  ---------- > 1:  6b73d4bb6c docs: update sendmail docs to use more secure SMTP server for Gmail\n-- \n2.51.0\n\n"}]}