SMTP settings on the Settings page, with a test (1.2.0)
SMTP server, port, user, password and from address are now Hub settings in the database instead of SMTP_* in .env. The password is encrypted with HUB_ENCRYPTION_KEY and never sent to the browser; a blank field keeps it. POST /api/admin/settings/smtp-test logs in with the form's values (saved or not) and sends a test email, returning the server's reason on failure; it is rate limited and audited. On first start an existing SMTP_* setup is copied into Settings once. The audit log no longer records the SMTP password. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls1vMaqhrehXcHJe32jLL9
This commit is contained in:
@@ -5,6 +5,23 @@ versions follow [Semantic Versioning](https://semver.org/).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.2.0] - 2026-10-28
|
||||
|
||||
### Added
|
||||
|
||||
- **Email (SMTP) on the Settings page**: server, port, username, password and from address, stored
|
||||
in the database (the password encrypted with `HUB_ENCRYPTION_KEY`, and never sent back to the
|
||||
browser). **Send test** logs in to the mail server with what's in the form, saved or not, and
|
||||
sends a test email, showing the server's reason if it fails. Tests and their results are in the
|
||||
audit log.
|
||||
|
||||
### Changed
|
||||
|
||||
- SMTP is no longer read from `backend/.env`. On first start, an existing `SMTP_*` setup is copied
|
||||
into Settings once; after that the `SMTP_*` lines can be removed. `ALERT_EMAIL` in
|
||||
`.env.example` was never used (the alert address is a setting) and is gone.
|
||||
- The audit log records that the SMTP password changed, never the password.
|
||||
|
||||
## [1.1.2] - 2026-10-27
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user