Add the email need: each app gets its own sending-only mail account

needs = ["email"] (coreapp new --email) makes an LDAP account
coreapp-<name> (not a person, no mailbox) and adds SMTP_* settings.
Teardown removes it only if it's the app's; the installer warns about
an entry it left alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 15:01:11 -07:00
co-authored by Claude Opus 5.5
parent bef3b86970
commit 6ab1db839b
12 changed files with 173 additions and 13 deletions
+4 -1
View File
@@ -42,7 +42,10 @@ keep its values and add new ones):
`needs = ["postgres"]` adds `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER` and
`DB_PASSWORD`; `needs = ["sso"]` adds `OIDC_ISSUER`, `OIDC_CLIENT_ID` and
`OIDC_CLIENT_SECRET`.
`OIDC_CLIENT_SECRET`; `needs = ["email"]` adds `SMTP_HOST`, `SMTP_PORT`
(587), `SMTP_SECURITY` (`starttls`), `SMTP_USER`, `SMTP_PASSWORD` and
`SMTP_FROM` (`{{NAME}}@<domain>`): the app's own account on the Core's mail
server, for sending.
Its files: `/data` in the container is kept on the Core
(`/federated/apps/{{NAME}}/data`) across updates and restarts.
+1 -1
View File
@@ -19,5 +19,5 @@ port = 8080
health = "/"
# What it needs from the Core: "postgres" (its own database), "sso"
# (sign-in with Core accounts through Authelia)
# (sign-in with Core accounts through Authelia), "email" (sending mail)
needs = []