mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-28 18:42:51 -05:00
admin: email: proofread and add links
This commit is contained in:
parent
d2daf216e5
commit
79266be552
1 changed files with 8 additions and 9 deletions
|
@ -4,11 +4,11 @@ license: 'Apache-2.0'
|
||||||
origin_url: 'https://github.com/go-gitea/gitea/blob/abe8fe352711601fbcd24bf4505f7e0b81a93c5d/docs/content/administration/email-setup.en-us.md'
|
origin_url: 'https://github.com/go-gitea/gitea/blob/abe8fe352711601fbcd24bf4505f7e0b81a93c5d/docs/content/administration/email-setup.en-us.md'
|
||||||
---
|
---
|
||||||
|
|
||||||
Forgejo has mailer functionality for sending transactional emails (such as registration confirmation). It can be configured to either use Sendmail (or compatible MTAs like Postfix and msmtp) or directly use SMTP server.
|
Forgejo can be set to send emails such as a registration confirmation, either with [Sendmail](https://man7.org/linux/man-pages/man8/sendmail.8.html) (or compatible MTAs like Postfix and msmtp) or by connecting to an SMTP server.
|
||||||
|
|
||||||
## Using SMTP
|
## Using SMTP
|
||||||
|
|
||||||
Directly use SMTP server as relay. This option is useful if you don't want to set up MTA on your instance but you have an account at email provider.
|
Directly use SMTP server as relay. This option is useful if you don't want to set up MTA on your instance but you have an account at an email provider.
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
[mailer]
|
[mailer]
|
||||||
|
@ -18,29 +18,28 @@ PROTOCOL = smtps
|
||||||
SMTP_ADDR = mail.example.com
|
SMTP_ADDR = mail.example.com
|
||||||
SMTP_PORT = 587
|
SMTP_PORT = 587
|
||||||
USER = forgejo@example.com
|
USER = forgejo@example.com
|
||||||
PASSWD = `password`
|
PASSWD = mysecurepassword
|
||||||
```
|
```
|
||||||
|
|
||||||
Restart Forgejo for the configuration changes to take effect.
|
Restart Forgejo for the configuration changes to take effect.
|
||||||
|
|
||||||
To send a test email to validate the settings, go to Forgejo > Site Administration > Configuration > SMTP Mailer Configuration.
|
To send a test email to validate the settings, go to Forgejo > Site Administration > Configuration > SMTP Mailer Configuration.
|
||||||
|
|
||||||
For the full list of options check the Config Cheat Sheet.
|
For the full list of options check the [Config Cheat Sheet](../config-cheat-sheet/#mailer-mailer).
|
||||||
|
|
||||||
Please note: authentication is only supported when the SMTP server communication is encrypted with TLS or `HOST=localhost`. TLS encryption can be through:
|
> **NOTE:** authentication is only supported when the SMTP server communication is encrypted with TLS or `HOST=localhost`. This is due to protections imposed by the Go internal libraries against STRIPTLS attacks. TLS encryption can be through:
|
||||||
|
|
||||||
- STARTTLS (also known as Opportunistic TLS) via port 587. Initial connection is done over cleartext, but then be upgraded over TLS if the server supports it.
|
- STARTTLS (also known as Opportunistic TLS) via port 587. Initial connection is done over cleartext, but then be upgraded over TLS if the server supports it.
|
||||||
- SMTPS connection (SMTP over TLS) via the default port 465. Connection to the server use TLS from the beginning.
|
- SMTPS connection (SMTP over TLS) via the default port 465. Connection to the server use TLS from the beginning.
|
||||||
- Forced SMTPS connection with `IS_TLS_ENABLED=true`. (These are both known as Implicit TLS.)
|
- Forced SMTPS connection with `IS_TLS_ENABLED=true`.
|
||||||
This is due to protections imposed by the Go internal libraries against STRIPTLS attacks.
|
|
||||||
|
|
||||||
Note that Implicit TLS is recommended by [RFC8314](https://tools.ietf.org/html/rfc8314#section-3) since 2018.
|
Both `SMTPS` and `STARTTLS` combined with `IS_TLS_ENABLED=true` are known as Implicit TLS and is recommended by [RFC8314](https://tools.ietf.org/html/rfc8314#section-3) since 2018.
|
||||||
|
|
||||||
## Using Sendmail
|
## Using Sendmail
|
||||||
|
|
||||||
Use `sendmail` command as mailer.
|
Use `sendmail` command as mailer.
|
||||||
|
|
||||||
Note: For Internet-facing sites consult documentation of your MTA for instructions to send emails over TLS. Also set up SPF, DMARC, and DKIM DNS records to make emails sent be accepted as legitimate by various email providers.
|
> **NOTE:** For Internet-facing sites consult the documentation of your MTA for instructions to send emails over TLS. Also set up SPF, DMARC, and DKIM DNS records to make emails sent be accepted as legitimate by various email providers.
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
[mailer]
|
[mailer]
|
||||||
|
|
Loading…
Reference in a new issue