From ffc8c044a3e25f9fa71d13c1f62e0579cd76ea84 Mon Sep 17 00:00:00 2001 From: kairosys-dev Date: Tue, 11 Nov 2025 19:35:01 +0000 Subject: [PATCH] Correct port 465 for SMTPS, not 587 for STARTTLS (#295) The SMTPS protocol uses port 465, not 587. Port 587 is instead used for STARTTLS. Helps getting administrators stuck in cryptic errors such as: Failed to send a testing email to "user@mydomain.com": could not initiate SMTP session: tls: first record does not look like a TLS handshake Reviewed-on: https://gitea.com/gitea/docs/pulls/295 Reviewed-by: Lunny Xiao Co-authored-by: kairosys-dev Co-committed-by: kairosys-dev --- docs/administration/email-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/administration/email-setup.md b/docs/administration/email-setup.md index 34048fe5..cc018c58 100644 --- a/docs/administration/email-setup.md +++ b/docs/administration/email-setup.md @@ -45,7 +45,7 @@ ENABLED = true FROM = gitea@mydomain.com PROTOCOL = smtps SMTP_ADDR = mail.mydomain.com -SMTP_PORT = 587 +SMTP_PORT = 465 USER = gitea@mydomain.com PASSWD = `password` ```