SMTP config: MaxRetries/RetryDelay not settable via management API, CLI or UI #149

Closed
opened 2026-11-25 10:41:59 -05:00 by dohertj2 · 1 comment
Owner

SmtpConfiguration.MaxRetries / RetryDelay drive the Notification Outbox Email retry policy (NotificationOutboxActor.ResolveSmtpPolicyAsync), but nothing in the product can set them:

  • UpdateSmtpConfigCommand / CreateSmtpConfigCommand (Commons/Messages/Management/NotificationCommands.cs) carry no retry fields.
  • CLI notification smtp create|update has no --max-retries / --retry-delay-seconds (the SMS commands do).
  • The Central UI SMTP page doesn't expose them either.

So every SMTP row is created with 0 / 00:00:00, which the outbox clamps to the fallback 10 retries / 1 min and logs a Warning about on every policy resolve. (ConnectionTimeoutSeconds and MaxConcurrentConnections show 0 in smtp list as well — check whether they have the same gap.)

Observed 2026-11-25 on DEV vd03: the row was 0 / 0. Setting it to 10 / 1 min had to be done by a direct SQL UPDATE SmtpConfigurations against the ConfigDb.

Ask:

  • Add optional, additive MaxRetries / RetryDelay to the create/update commands. When omitted, keep the existing values (same rule as TlsMode).
  • Add matching CLI options, mirroring notification sms update --max-retries/--retry-delay-seconds.
  • Add fields to the Central UI SMTP form.
  • Update the README and Component-NotificationService.md.
  • Add tests: the authz matrix is unaffected (same command); round-trip and preserve-on-omit.
`SmtpConfiguration.MaxRetries` / `RetryDelay` drive the Notification Outbox Email retry policy (`NotificationOutboxActor.ResolveSmtpPolicyAsync`), but nothing in the product can set them: - `UpdateSmtpConfigCommand` / `CreateSmtpConfigCommand` (`Commons/Messages/Management/NotificationCommands.cs`) carry no retry fields. - CLI `notification smtp create|update` has no `--max-retries` / `--retry-delay-seconds` (the SMS commands do). - The Central UI SMTP page doesn't expose them either. So every SMTP row is created with `0 / 00:00:00`, which the outbox clamps to the fallback 10 retries / 1 min and logs a Warning about on every policy resolve. (`ConnectionTimeoutSeconds` and `MaxConcurrentConnections` show `0` in `smtp list` as well — check whether they have the same gap.) **Observed 2026-11-25 on DEV vd03:** the row was `0 / 0`. Setting it to 10 / 1 min had to be done by a direct SQL `UPDATE SmtpConfigurations` against the ConfigDb. **Ask:** - Add optional, additive `MaxRetries` / `RetryDelay` to the create/update commands. When omitted, keep the existing values (same rule as `TlsMode`). - Add matching CLI options, mirroring `notification sms update --max-retries/--retry-delay-seconds`. - Add fields to the Central UI SMTP form. - Update the README and `Component-NotificationService.md`. - Add tests: the authz matrix is unaffected (same command); round-trip and preserve-on-omit.
dohertj2 added the type:featurepriority:p3 labels 2026-11-25 10:41:59 -05:00
Author
Owner

Fixed in a4523e09 (pushed to main): optional MaxRetries/RetryDelay/ConnectionTimeoutSeconds/MaxConcurrentConnections on Create/UpdateSmtpConfigCommand (preserve-if-null, negatives refused), CLI notification smtp create|update --max-retries --retry-delay-seconds --connection-timeout-seconds --max-concurrent-connections, Central UI form fields (new rows pre-fill 10 / 60 s), README + Component-NotificationService. Not yet deployed to DEV/QA; vd03's row is already 10 / 1 min via the earlier SQL fix.

Fixed in a4523e09 (pushed to main): optional MaxRetries/RetryDelay/ConnectionTimeoutSeconds/MaxConcurrentConnections on Create/UpdateSmtpConfigCommand (preserve-if-null, negatives refused), CLI `notification smtp create|update --max-retries --retry-delay-seconds --connection-timeout-seconds --max-concurrent-connections`, Central UI form fields (new rows pre-fill 10 / 60 s), README + Component-NotificationService. Not yet deployed to DEV/QA; vd03's row is already 10 / 1 min via the earlier SQL fix.
Sign in to join this conversation.