Mail relay: review of 7d766b6 — R-1 to R-12, four mutations, two sentences
- R-1 a delivered token becomes the one in use only on 200 or a refusal given after authentication - R-2 a token of another site is refused by what /v1/status says (access-key field, scripts); docs for staging - R-3 the confirm route looks the nonce up first and counts only refused calls - R-4 one budget of time per message (10 s, 30 s with files), enrolment and retries included - R-5 'Disconnect' without the service's answer is not confirmed and keeps the token to try again - R-6 no enrolment without the confirm route in the config - R-7 half an SMTP set-up: one log line and a hint in the panel - R-8 to R-10, R-12 docs; R-11 the last failure stays in the state block - tests for redirect: manual, the candidate's nonce, the expectation taken back, one recipient only Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
0ee74ab2a4
commit
a2b07b1dc1
+4
-1
@@ -1321,6 +1321,7 @@ overrides per adapter; `resolveRelayOptions` reads what is in effect):
|
||||
| `kind` | — | kind of a message nobody marked |
|
||||
| `accountMail` | `{ perAddress: 5, perVisitor: 10, windowMinutes: 60 }` | the site's own limit on account mail; `false` = none |
|
||||
| `confirmRateLimit` | `{ max: 10, windowMs: 60000 }` | the public confirm route, per address |
|
||||
| `totalTimeoutMs` | 10 s, 30 s with files | all one message may take (a visitor waits for the form) — a number or `{ plain, files }` |
|
||||
| `timeoutMs`, `retryBackoffMs`, `fetchImpl` | 30 s, 1 s, `fetch` | one attempt; wait between attempts; tests |
|
||||
| `graphDeprecationWarning` | `true` | `false` = no start warning on a Graph site (`GRAPH_DEPRECATION_NOTICE`) |
|
||||
|
||||
@@ -1333,7 +1334,9 @@ the site itself just started an enrolment, rate-limited; allow it in any WAF or
|
||||
`relay-attachment-refused`, `relay-recipient-suppressed`, `relay-unreachable`, `relay-not-confirmed`, `relay-error`
|
||||
(and the warning `relay-name-replaced`) — what each means and what to do: `iapl-debug`, "E-mail". A send returns
|
||||
`RelaySendResult`; `confirmed: false` means the message **may** have been sent — do not send it again under
|
||||
another content; the same message sent again reuses its key and cannot double.
|
||||
another content. Inside one running process the same message sent again reuses its key and cannot double; after a
|
||||
restart, or from another instance, a repeat is a new message and can. One message has one budget of time
|
||||
(`totalTimeoutMs`: 10 s, 30 s with files) for enrolment, attempts and waits together.
|
||||
|
||||
**Limits** (the service's; per site): 30 messages an hour, 200 a day, 10 recipients a message, 10 MB of files —
|
||||
read from the service (`mailAttachmentLimit`, `relayAttachmentLimit`), never typed into a project. A site that
|
||||
|
||||
Reference in New Issue
Block a user