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
@@ -40,6 +40,13 @@ export const RELAY_DEFAULTS = {
|
||||
refusalCooldownMs: 15 * 60_000,
|
||||
/** How long the limits read from `/v1/status` are used before they are read again. */
|
||||
statusTtlMs: 60 * 60_000,
|
||||
/**
|
||||
* Everything a send may take, enrolment and retries included: somebody waits for the request that sends
|
||||
* the mail (a form's visitor). After it the message is reported and nothing more is tried.
|
||||
*/
|
||||
totalTimeoutMs: 10_000,
|
||||
/** The same for a message with files: a 10 MB upload has to fit. */
|
||||
totalTimeoutWithFilesMs: 30_000,
|
||||
/** Other calls (status, rotate, revoke). */
|
||||
timeoutMs: 10_000,
|
||||
/** Waiting between the attempts for one message, in all. Wins over `retryAfter`. */
|
||||
|
||||
Reference in New Issue
Block a user