Mail relay: development hosts are known by pattern, with no env - built in: *.dev.netscale.pl
The launch rule called a site non-public only when IAPL_NOINDEX was set (or the project named its hosts).
The owner's development sites set nothing, so production's database copied onto a development address
counted as a launch and would have mailed real people.
- iapl({ developmentHosts }): host patterns of development addresses. Default DEFAULT_DEVELOPMENT_HOSTS =
['*.dev.netscale.pl'], Intecion's own development domain; a project replaces the list or empties it.
mail.relay.developmentHosts overrides it for the mail service.
- a site whose host matches is non-public exactly as with IAPL_NOINDEX=1; either signal is enough
- siteNonPublicSignal, matchDevelopmentHost, isDevelopmentHost, pluginDevelopmentHosts exported
- panel state: nonPublicBy, nonPublicPattern; doctor: mail-non-public (info) names the signal
- every case of the launch table runs with no env on the built-in pattern
- docs, AGENT.md, skills, changelog draft
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
634908eb57
commit
14abf369da
+9
-7
@@ -1290,14 +1290,16 @@ the mail service → nothing (`mail: { relay: false }` and no SMTP). A site with
|
||||
approval, is the exception — the panel says so).
|
||||
6. **Launch needs nobody:** a site enrolled on its development address and then served on the real domain (or moved
|
||||
to another domain) enrols by itself on its first e-mail. **A non-public copy does not send by itself:** a site
|
||||
with `IAPL_NOINDEX=1` — set it on every staging, preview and test copy — or on a host matched by
|
||||
`mail: { relay: { developmentHosts: ['*.dev.agency.example'] } }`, whose database holds another host's
|
||||
whose host matches `iapl({ developmentHosts })` — default `['*.dev.netscale.pl']`, Intecion's development
|
||||
domain, so the team's development addresses need **no env and no option**; replace the list with the project's
|
||||
own patterns, `[]` empties it — or that has `IAPL_NOINDEX=1`, and whose database holds another host's
|
||||
connection (staging made from production; production's data copied back onto the development address), neither
|
||||
enrols nor sends until an admin presses "Connect again". **A copy with neither mark sends to the real addresses
|
||||
in its data** — the plugin cannot tell it from launch day; the doctor's deep run notes it (`mail-relay-state`,
|
||||
enrols nor sends until an admin presses "Connect again". **A copy on another host without `IAPL_NOINDEX=1` sends to the real
|
||||
addresses in its data** — the plugin cannot tell it from launch day; the doctor's deep run notes it (`mail-relay-state`,
|
||||
info). A production site that kept `IAPL_NOINDEX=1` sends nothing until the variable is removed. For a copy that
|
||||
must never send: `mail: { relay: false }` or SMTP to a catcher. If the project's development addresses share a
|
||||
pattern, set `developmentHosts` in its config. Verify: on the copy, Site integrations → E-mail sending says "The
|
||||
must never send: `mail: { relay: false }` or SMTP to a catcher. If the project's copies live on other hosts than
|
||||
`*.dev.netscale.pl`, name them in `developmentHosts`. The doctor's deep run says which signal applies
|
||||
(`mail-non-public`). Verify: on the copy, Site integrations → E-mail sending says "The
|
||||
data comes from another site (…)" and a test e-mail is refused; on the launched site it says "Connected to IWSN".
|
||||
|
||||
**Verify:** Site integrations → E-mail sending → the block "How e-mails are sent" says "Connected to IWSN"; **Send test e-mail** answers "through IWSN, as <name>"; the mail arrives from
|
||||
@@ -1332,7 +1334,7 @@ overrides per adapter; `resolveRelayOptions` reads what is in effect):
|
||||
| `url` | `RELAY_BASE_URL` | a relay of your own (same contract) |
|
||||
| `host` | host of `serverURL` (`relayHost`, `isPublicHost`) | the public host the service calls back |
|
||||
| `otherHosts` | `'auto'` | a database holding another host's connection: a public site enrols by itself (launch, a move), a non-public one (`IAPL_NOINDEX=1` / `developmentHosts`) neither enrols nor sends until "Connect again"; a list of the site's own other hosts; `'wait'` (a public site without a connection waits too); `'enrol'` (no rule) |
|
||||
| `developmentHosts` | `[]` | host patterns (`*`) of development and staging addresses: a site there is non-public for `otherHosts` (`siteIsNonPublic`) |
|
||||
| `developmentHosts` | `iapl({ developmentHosts })`, default `DEFAULT_DEVELOPMENT_HOSTS` = `['*.dev.netscale.pl']` (`pluginDevelopmentHosts`) | host patterns (`*`) of development and staging addresses, for the mail service alone: a site there is non-public for `otherHosts` with no env (`siteIsNonPublic`, `siteNonPublicSignal` → `NonPublicSignal`, `matchDevelopmentHost`, `isDevelopmentHost`); `[]` = none |
|
||||
| `enrol` | `'auto'` | `'manual'` (only "Connect again" / `enrolRelay`), `false` (token from `token` / `setRelayToken`) |
|
||||
| `accessKeyField` | `false` | `true`: admins get "Enter an access key" in the state block (a hand-issued token) |
|
||||
| `token` | — | a token from elsewhere; nothing is stored, the site does not enrol |
|
||||
|
||||
Reference in New Issue
Block a user