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 "[email protected]": 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 <[email protected]>
Co-authored-by: kairosys-dev <[email protected]>
Co-committed-by: kairosys-dev <[email protected]>
This commit is contained in:
kairosys-dev
2025-11-11 19:35:01 +00:00
committed by Lunny Xiao
parent a77b0937cf
commit ffc8c044a3
+1 -1
View File
@@ -45,7 +45,7 @@ ENABLED = true
FROM = [email protected]
PROTOCOL = smtps
SMTP_ADDR = mail.mydomain.com
SMTP_PORT = 587
SMTP_PORT = 465
USER = [email protected]
PASSWD = `password`
```