Mail relay: contract 1.6.0, the token tied to its host, IWSN in the panel

- contracts/mail-relay refreshed from IWDL 83af8c6 (1.6.0)
- an answer that is not the service's JSON is 'not confirmed' unless its status is 400 to 499
- a site with a token issued by hand does not enrol to heal: it stops and says what to ask Intecion for
- a store made on another host (a database copied to staging) is not used: the copy enrols as itself, nothing is revoked
- the panel calls the service IWSN (RELAY_SHORT_NAME); docs, logs and the doctor keep the full name

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 21:51:47 +01:00
co-authored by Claude Fable 5.2
parent 7d766b6d58
commit 0ee74ab2a4
36 changed files with 380 additions and 128 deletions
+5 -3
View File
@@ -121,7 +121,7 @@ the ready-to-send list is in **iapl-setup** stage 0 (iapl-site phase 0 uses the
| Languages | which locales, the default locale, URL structure (`/pl/…` for every language, or the default without a prefix) |
| Styling | a design system / `DESIGN.md` or plain Tailwind tokens, brand colours, fonts, light/dark theme |
| Content | the pages, the collections (blog, case studies, products…), archive pages |
| Forms | which forms, who receives them; e-mail: the built-in mail service by default — ask only whether the client wants its **own SMTP server and sender address** (never offer Microsoft Graph: deprecated) |
| Forms | which forms, who receives them; e-mail: the Intecion mail service (IWSN in the panel) by default — ask only whether the client wants its **own SMTP server and sender address** (never offer Microsoft Graph: deprecated) |
| Analytics and consent | GA4 / GTM / pixels, Consent Mode basic or advanced, cookie banner mode, cookie scan |
| SEO / GEO | market and local business data, AI crawler policy (llms.txt, Markdown, MCP, AI bots) |
| Data and media | database (Postgres or MongoDB) and its names (`<domain without dots>_prod` / `_dev` — derive, then confirm), media storage (R2 or local disk) |
@@ -1249,6 +1249,9 @@ add missing hosts with flags / `extra`; (3) change `mode` to `'enforce'` in both
### 7.2 E-mail — the mail service (default), SMTP (on request), Graph (deprecated)
The service is the **Intecion Notifications Webservice**; the admin panel calls it **IWSN** (constant
`RELAY_SHORT_NAME`) — say "IWSN" when you tell a client what the panel shows.
**What you wire — three lines, every site:**
```ts
@@ -1281,8 +1284,7 @@ the mail service → nothing (`mail: { relay: false }` and no SMTP). A site with
the mail service that is where replies go; the service's own address has no mailbox.
5. Intecion has listed the host; otherwise the site enrols and waits for approval (`relay-pending`).
**Verify:** Site integrations → E-mail sending → the block "How e-mails are sent" says "Connected to the built-in
mail service"; **Send test e-mail** answers "through the built-in mail service, as <name>"; the mail arrives from
**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
`notification@webservices.intecion.net` with the client's name and `Reply-To` the client's address; `iapl-doctor
--deep --url <site>` reports no `mail-*` finding. On `localhost` the plugin refuses to enrol (nothing leaves the machine): test
mail locally with SMTP (Mailpit) or `createFakeRelay()`.