mirror of
https://gitea.com/gitea/docs.git
synced 2026-03-27 05:58:30 +07:00
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 <xiaolunwen@gmail.com> Co-authored-by: kairosys-dev <me@arch-on.top> Co-committed-by: kairosys-dev <me@arch-on.top>
This commit is contained in:
@@ -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`
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user