Forgejo outgoing mail
Enable Forgejo’s SMTP mailer and verify delivery after a sender or relay change.
Last updated
On this page (5)
Forgejo · Outgoing mail
Before you start
- Access to Forgejo app.ini or equivalent deployment settings and site administration.
- Reachable SMTP relay with a permitted From address and a test local account.
Procedure
- In [mailer], set ENABLED=true, FROM, SMTP_ADDR and SMTP_PORT. Select PROTOCOL to match the relay, such as smtps on port 465 for implicit TLS, and supply USER and PASS securely if required.
- Restart Forgejo and send a test email under Site Administration > Configuration > SMTP Mailer Configuration.
- Trigger a password reset for a disposable local account to verify a real application-generated message.
Verify the result
- The SMTP test reaches the intended mailbox and the account reset link uses the public Forgejo address and works.
- Expected sender and relay acceptance are visible; no TLS downgrade is needed to make mail work.
