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

  1. 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.
  2. Restart Forgejo and send a test email under Site Administration > Configuration > SMTP Mailer Configuration.
  3. 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.

Official documentation

Have Pilae operate Forgejo

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.