git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] docs: update sendmail docs to use more secure SMTP server for Gmail

From
Aditya Garg <gargaditya08@live.com>
Date
Aug 25, 2025, 06:55 UTC
Message-ID
<PN3PR01MB95973B72C16F68D63BE2B410B83EA@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>

Gmail's SMTP server also has a port 465 with SSL/TLS encryption. It is more secure than port 587 with STARTTLS encryption. Update the docs to reflect this change.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
---
 Documentation/git-send-email.adoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/git-send-email.adoc b/Documentation/git-send-email.adoc
index 5335502d68..c610909a92 100644
--- a/Documentation/git-send-email.adoc
+++ b/Documentation/git-send-email.adoc
@@ -521,10 +521,10 @@ edit `~/.gitconfig` to specify your account settings:
 
 ----
 [sendemail]
-	smtpEncryption = tls
+	smtpEncryption = ssl
 	smtpServer = smtp.gmail.com
 	smtpUser = yourname@gmail.com
-	smtpServerPort = 587
+	smtpServerPort = 465
 ----
 
 Gmail does not allow using your regular password for `git send-email`.
@@ -542,10 +542,10 @@ if you want to use `OAUTHBEARER`, edit your `~/.gitconfig` file and add
 
 ----
 [sendemail]
-	smtpEncryption = tls
+	smtpEncryption = ssl
 	smtpServer = smtp.gmail.com
 	smtpUser = yourname@gmail.com
-	smtpServerPort = 587
+	smtpServerPort = 465
 	smtpAuth = OAUTHBEARER
 ----
 
-- 
2.51.0
Next: Junio C Hamano
Message 1 of 4 in “docs: update sendmail docs to use more secure SMTP server for Gmail”
  1. docs: update sendmail docs to use more secure SMTP server for GmailAditya Garg, Aug 25, 2025
  2. Junio C HamanoAug 26, 2025
  3. Aditya GargAug 26, 2025
  4. docs: update sendmail docs to use more secure SMTP server for GmailAditya Garg, Aug 26, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.