diff options
author | zeripath <art27@cantab.net> | 2020-05-24 23:56:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-24 23:56:18 +0100 |
commit | 02a52d683b32e2670f746d898bd0041954390e7b (patch) | |
tree | 5245ab2a1f5431587906ec5a585d8d81756df014 /custom | |
parent | 39b792f42498cb43e2f7fd4faced08bc90a93489 (diff) | |
download | gitea-02a52d683b32e2670f746d898bd0041954390e7b.tar.gz gitea-02a52d683b32e2670f746d898bd0041954390e7b.zip |
Add warning to mailer documentation about authentication (#11563)
* Add warning to mailer documentation about authentication
References #7966
Signed-off-by: Andrew Thornton <art27@cantab.net>
* As per @guillep2k and @mrsdizzie
* as per @mrsdizzie
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.ini.sample | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index c50dd68f1f..5e150172d5 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -627,7 +627,8 @@ SUBJECT_PREFIX = ; Mail server ; Gmail: smtp.gmail.com:587 ; QQ: smtp.qq.com:465 -; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used. +; Using STARTTLS on port 587 is recommended per RFC 6409. +; Note, if the port ends with "465", SMTPS will be used. HOST = ; Disable HELO operation when hostnames are different. DISABLE_HELO = @@ -639,11 +640,13 @@ SKIP_VERIFY = USE_CERTIFICATE = false CERT_FILE = custom/mailer/cert.pem KEY_FILE = custom/mailer/key.pem -; Should SMTP connection use TLS +; Should SMTP connect with TLS, (if port ends with 465 TLS will always be used.) +; If this is false but STARTTLS is supported the connection will be upgraded to TLS opportunistically. IS_TLS_ENABLED = false ; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format FROM = ; Mailer user name and password +; Please Note: Authentication is only supported when the SMTP server communication is encrypted with TLS (this can be via STARTTLS) or `HOST=localhost`. USER = ; Use PASSWD = `your password` for quoting if you use special characters in the password. PASSWD = |