Mail relay: review round 2 — the store is keyed by host, a copied database does not enrol by itself
- Q-1 one entry per host (iapl:mail-relay:site:<host>); a read never deletes or writes; another host's
entry is neither used nor touched (a developer's process on the live database, www and apex, a copy)
- a database that holds another host's connection and none of this site's does not enrol by itself:
"Connect again" does, once; mail.relay.otherHosts ('wait' | 'enrol' | the site's own other hosts);
panel text and doctor finding; a site with an empty store enrols by itself as before
- Q-2 the file limit answers from what is stored and never asks the service
- Q-3 a file whose mail was not confirmed is not reported as a wrong file, and no notice mail follows
- Q-4 its own text when the access-key field is off
- D-1 docs for open enrolment; staging, copies and several hosts
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
edee3a321f
commit
85ed92bb89
+7
-3
@@ -54,9 +54,13 @@ Mail needs **no variable**. A site with no SMTP server in the panel sends throug
|
||||
- **That route reachable from the internet** — no basic auth on the Coolify app, no firewall or WAF rule in front of
|
||||
`/api/iapl/`; behind Cloudflare leave it uncached and unchallenged.
|
||||
- **Outbound HTTPS** to `webservices.intecion.net`.
|
||||
- A staging copy on its own domain enrols as its own site (its own token, its own limits, its own approval) —
|
||||
**also when its database is a copy of production's**: the stored token is tied to production's host and is not
|
||||
used on another one. A staging copy that must not send: `iapl({ mail: { relay: false } })` or SMTP to a catcher.
|
||||
- **Staging.** A site is active as soon as it enrols, so a staging site sends real mail. A staging site made from a
|
||||
**copy of production's database** does not connect by itself (its data is production's; it stays "not connected"
|
||||
until an admin presses "Connect again") and never uses or touches production's connection. The safe set-up for a
|
||||
copy that must not send: `iapl({ mail: { relay: false } })` or SMTP to a catcher ([email.md](./email.md)
|
||||
"Staging, copies and several hosts").
|
||||
- **A domain move** (the same database under a new host): press "Connect again" once after the move, or set
|
||||
`mail: { relay: { otherHosts: ['old-domain.example'] } }` before it.
|
||||
- Several containers of one site share the database, so they share the token; a restore of an old database dump
|
||||
brings back an old token — the site then enrols again by itself on its next e-mail.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user