identity-email-notifications: SMTP-host per site en open punten voor Operations

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-08 20:11:15 +01:00
co-authored by Claude Sonnet 5.5
parent 70c6d49e7a
commit 57e77edcf9
@@ -32,3 +32,19 @@ smtp4dev (already installed) on `localhost:25`: `Email__Smtp__Host=localhost`, `
## No other infrastructure
No new service, port, queue or storage. One additive table (`SiteSettings`) in the existing database.
## Per-host SMTP server (update 2026-11-08, from Bryan via "CMS & API")
The SMTP settings are per host (all in that host's `shared/env`), so each site can use its own mail server:
| Site | SMTP host | Sender domain | Status |
|---|---|---|---|
| SlpSoftware | `mail.slpsoftware.nl` (the host SimpleDeckApp uses) | `@slpsoftware.nl` | as before |
| ASF (test, later production) | probably `mail.andreaslop.nl` (not `mail.slpsoftware.nl`) | `@andreaslop.nl` | **to be confirmed** |
Read-only checks done from the developer PC (by "CMS & API"): `mail.andreaslop.nl` and `andreaslop.nl` both resolve to 217.121.250.215; the MX of `andreaslop.nl` is `mail.andreaslop.nl` (preference 10); TCP 587 is reachable. This fits the published SPF (`a mx`): a mail sent by that server for `@andreaslop.nl` is SPF-aligned, which the earlier plan (`mail.slpsoftware.nl` for ASF) would not have been.
**Open points (Operations plan, no code needed):**
1. Which mailbox/account on `mail.andreaslop.nl` is used, and whether it may send with `no-reply@andreaslop.nl` (or another address) as `From`. Then ASF sets `Email__FromAddress` and `Email__AllowedFromAddresses__n` accordingly (the committed ASF default `no-reply@slpsoftware.nl` is only a placeholder until then). SlpSoftware keeps `mail.slpsoftware.nl`.
2. Port and TLS: not yet confirmed that the server offers STARTTLS on 587 (`Email__Smtp__EnableSsl=true`); if it needs implicit TLS (465) or none, the sender must be adapted (it supports STARTTLS or plain today) and a plain connection would not be acceptable beyond a private network.
3. DKIM: a `dkim._domainkey.andreaslop.nl` record exists; confirm the server signs with that key. DMARC is `p=none` (monitoring only).
4. Credentials for that account go into the ASF test unit's `shared/env` by whoever manages the host (not by this feature's code or by chat).