You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use the selected protocol's username for pooled OAuth connections #966
An SMTPS Session can contain a different username for unused SMTP configuration. With the batch module present, the underlying pool selects that unused SMTP username when opening an OAuth connection. The direct connection path uses the selected SMTPS account instead.
This affects published 9.3.9. Its fixed-token API can reach the problem without an access-token callback:
The selected SMTPS connection should authenticate as current@example.org. Adding pooling must not make the inactive mail.smtp.user setting authoritative. Keep both Session properties intact, preserve the selected provider's ordinary username fallback, and apply the same selection to fixed tokens and connection-time providers, including reconnections.
SMTP Connection Pool #38 owns the compatible underlying correction. Adopt its published patch for unreleased SJM 10.0.0 rather than inserting synthetic SMTP credentials into supplied Sessions. Existing public APIs, callback laziness, authentication failures, TLS settings and transport ownership remain unchanged.
This follows ADR 0015, ADR 0038 and ADR 0039. #421 introduced fixed-token OAuth; #692 added providers, and #698 owns the standalone batch integration. The separate stale credential-alias behavior after Session reuse is outside this correction.
Available on the codex/10.0.0 development branch with SMTP Connection Pool 4.4.1. Pooled OAuth connections now preserve the selected provider's username resolution, so an inactive SMTP username does not override the SMTPS account. Fixed tokens and callbacks retain normal username fallback and connection-time behavior without rewriting the original Session properties.
Activity
docs(oauth): explain pooled protocol username selection (#966)
fix(pool): preserve selected OAuth account with pooling (#966)
docs(oauth): align selected-protocol pooling guidance (#966)
bbottema commentedon Nov 5, 2026
Available on the
codex/10.0.0development branch with SMTP Connection Pool 4.4.1. Pooled OAuth connections now preserve the selected provider's username resolution, so an inactive SMTP username does not override the SMTPS account. Fixed tokens and callbacks retain normal username fallback and connection-time behavior without rewriting the original Session properties.Delivered in 6d328dd0, with aligned architecture and migration guidance and website examples.
The correction follows ADR 0015, ADR 0038 and ADR 0039.
chore(review): register pooled OAuth cleanup paths (#966)
chore(review): retain remaining pooled OAuth cleanup commands (#966)