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
+8
View File
@@ -0,0 +1,8 @@
# Sending mail through the Core's mail server with its own account (made
# by needs/email/setup): STARTTLS on port 587, user and password below
SMTP_HOST=mail.@DOMAIN@
SMTP_PORT=587
SMTP_SECURITY=starttls
SMTP_USER=coreapp-{{NAME}}
SMTP_PASSWORD=@SMTP_PASSWORD:RANDOM:LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL@
SMTP_FROM={{NAME}}@@DOMAIN@