Repository navigation
Description
SMTP callers need to know what the server accepted, when a retry could duplicate mail, and what happened when a connection failed. This tracks the independently reviewable improvements now documented in the architecture topic index and concurrency catalogue. Completed local plans have been retired into maintained guides and dated research reports.
The project builds on the 10.0.0 submission receipts (#710), terminal observer (#712), and exact EML support (#713). It does not add automatic retries, a durable spool, or mailbox-delivery guarantees.
All five phases are complete and accepted. Phase 4 includes per-attempt ENVID correlation (#736), recipient NOTIFY with automatic ORCPT (#738), per-email onward delivery TLS requirements (#741), per-message SMTPUTF8/8BITMIME negotiation with explicit legacy-server support (#742), and SIZE enforcement against finalized transmitted content (#748). The related DKIM/S/MIME Email-policy consolidation (#737) is also complete. Phase 5 (#747) adds the reproducible scripted-fault and pinned Postfix/Exim conformance suite, independent protected-content checks and the CI release gate. Code and matching website documentation are committed and pushed to the 10.0.0 development branches; none of this is a 10.0.0 release. Phase 1's leftover open issue (#723) has been reconciled with its previously pushed implementation.
Progress: all 10 original steps complete (100% by step count), all five phases complete, and all 14 child issues closed. Execution views (#734), the configuration/recipient refinements (#737/#738), and the performance audit (#749) are additional child issues, not additional original steps. All work targets 10.0.0 and is pushed to the development branches; the release itself is still pending. #749 reduced content-inspection and provider-discovery overhead; the accepted decision retains current SIZE behavior and all content/security checks, with no performance-control API or further fine-tuning without a demonstrated workload.
Current send architecture
This maps the accepted pooled asynchronous send path, including the completed #726 implementation. The layers explain responsibilities; they are not a lock-order diagram.
Steps
| Step | Child issue | Planned release | Shipped release | User-visible result |
|---|---|---|---|---|
| 1 | #723 | 10.0.0 | — | Per-recipient replies and conservative retry guidance |
| 2 | #725 | 10.0.0 | — | Bounded async demand and visible overflow |
| 3 | #726 | 10.0.0 | — | Deadlines and protocol-aware cancellation |
| 4 | #733 | 10.0.0 | — | SMTP capability diagnostics through Java and CLI (complete; unreleased) |
| 4a | #734 | 10.0.0 | — | Explicit sync/async execution views and unified receipt-returning sends (complete; unreleased) |
| 5 | #735 | 10.0.0 | — | Reject contradictory mandatory STARTTLS settings; keep opportunistic SMTP as the default (complete; unreleased) |
| 6 | #736 | 10.0.0 | — | ENVID send correlation (complete; unreleased) |
| 6a | #737 | 10.0.0 | — | Shared DKIM/S/MIME Email configuration and defaults/overrides (complete; unreleased) |
| 6b | #738 | 10.0.0 | — | Recipient NOTIFY preferences and automatic ORCPT (complete; unreleased) |
| 7 | #741 | 10.0.0 | — | Per-email onward delivery REQUIRETLS (complete; unreleased) |
| 8 | #742 | 10.0.0 | — | Per-message SMTPUTF8/8BITMIME negotiation and opt-in legacy-server support (complete; unreleased) |
| 9 | #748 | 10.0.0 | — | SIZE against finalized transmitted bytes (complete; unreleased) |
| 10 | #747 | 10.0.0 | — | Reproducible conformance and fault-injection tests (complete; unreleased) |
| Follow-up | #749 | 10.0.0 | — | Reduced inspection/discovery overhead; current SIZE behavior retained with no performance controls (complete; unreleased) |
All scheduled steps and additional child issues are complete. PIPELINING/CHUNKING remain parked separately under #699 and are not included in this completion claim. The synthetic performance audit and accepted no-new-API decision remain recorded in #749. The conformance runner guide and dated verification report retain the final step's procedures and evidence.
Keep the overview current
The canonical image lives at docs/concurrency/assets/inside-a-mail-send.png. The concurrency catalogue uses that master, the website uses an identical copy, and this issue embeds the master through the development branch.
Future work affecting this path must review the pictured class names, responsibilities, transport paths, cancellation boundaries, and outcome reporting. Record either an update or why the overview remains accurate; do not add proposed behavior or expand the picture for changes that still fit its existing layers.
- Phase 2: reviewed unchanged on 11 September 2026; the pictured cleanup and outcome boundaries match the completed implementation.
- Execution-view migration (Make Mailer execution mode explicit with sync and async views #734): reviewed unchanged on 13 September 2026; the cached views add no resource ownership or synchronization boundary.
- SMTP capability probe (Explain SMTP connection capabilities and TLS negotiation #733): reviewed unchanged at completion on 15 September 2026. Java/CLI probing and its partial-provider boundary stay outside the illustrated send, pool-lease and observer path.
- Phase 3: reviewed unchanged at completion on 15 September 2026. The Reject extra properties that disable mandatory STARTTLS #735 construction-time guard runs before send-operation, proxy, lifecycle and pool setup; it adds no send owner, lock, state transition or probe-to-send dependency. The catalogue, website copy and this embed retain the approved overview.
- ENVID-only slice (Add DSN envelope identifiers for send correlation #736): reviewed unchanged on 15 September 2026. A fresh per-message provider wrapper and capability check fit the existing transport layer; pool ownership, cancellation and observer ordering are unchanged. Implementation is accepted and delivered.
- DSN/configuration follow-up (Unify DKIM and S/MIME configuration through Email defaults and overrides #737 and Add recipient DSN NOTIFY preferences and automatic ORCPT #738): reviewed unchanged at acceptance on 17 September 2026. Recipient policy and ORCPT use the existing preparation, managed transport monitor and result path; no new resource owner, worker or lock is introduced.
- Per-email REQUIRETLS (Add per-email REQUIRETLS for protected onward delivery #741): reviewed unchanged at acceptance on 17 September 2026. The Email flag follows the existing preparation and provider-envelope path. Angus validates the actual TLS connection and post-TLS capability under the existing transport send monitor, then reports actual
MAIL FROMuse through the existing result and receipt path. No new owner, lock, worker or resource lifetime was introduced. - SMTP content negotiation (Negotiate SMTP content per message, with opt-in legacy server support #742): reviewed unchanged at acceptance on 25 September 2026. Per-message declarations and the selected server's legacy permission use the existing preparation and managed transport layers. No new owner, lock, worker, pool or reconnect was introduced; exact/protected content and security requirements are unchanged.
- Phase 4: reviewed unchanged at acceptance on 28 September 2026. Finalized SIZE measurement uses the existing managed transport monitor and outcome path. Complete operational EHLO parsing is independent of bounded probe diagnostics; neither introduces a new owner, worker, lock or resource lifetime. Validate SMTP SIZE using finalized transmitted content #748 completes the phase.
- Performance follow-up (Profile mail-send overhead and evaluate opt-in/opt-out controls #749): reviewed unchanged at acceptance on 28 September 2026. Body inspection stays attempt-local. Loader-scoped discovery caches factories only; initialization synchronization is outside adapter construction/calls and owns no send state or transport resources. Workers, leases, cancellation, SIZE behavior and outcome ordering retain their existing boundaries. The master, website copy and this embed remain accurate.
- Phase 5 (Publish reproducible SMTP conformance and fault-injection evidence #747): reviewed unchanged at acceptance on 29 September 2026. The scenarios exercise existing preparation, provider, lease, cancellation and observer boundaries. Test peers, real-server delivery captures and CI jobs add no production resource owner, lock or state transition.
- End-of-plan reconciliation, 29 September 2026: the implementation responsibilities, catalogue, website component and this embed remain consistent; both published PNG copies have revision
6678f77dd107.
Repeat the overview review and required verification against the eventual release commit, as required by the maintainer workflow. Completing this implementation plan does not approve or publish the 10.0.0 release.
When the artwork changes, update the master, website copy, and this existing embed together. Refresh the image URL's revision query to avoid a cached older image; do not add a separate competing diagram attachment.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone

Activity
bbottema commentedon Sep 8, 2026
The supporting-library part of #726 shipped on 8 September 2026: Generic Object Pool 2.5.0, Clustered Object Pool 4.1.0, and SMTP Connection Pool 4.1.0.
The release narrative is stopping abandoned jobs while they wait for pooled resources, with opt-in controls, one acquisition budget, safe ownership handoff and observable cleanup. SMTP additionally offers an explicit capability for providers that can safely abort their own transport.
This is supporting infrastructure, not yet a Simple Java Mail send-cancellation feature: downstream integration remains under #726, and built-in Angus physical abort is still unsupported. These additions are separate from the earlier waiter-wake-up patch releases.
docs(concurrency): add mail-send architecture infographic (#722)
feat(smtp): preserve recipient replies and retry guidance (#723)
build(batch): adopt released pool controls (#726)
build(javadoc): document the multi-release source layout
feat(mailer): bound async work and drain accepted sends (#725)
docs(smtp): record accepted work and deferred cancellation
docs(smtp): explain send results and async backpressure
docs(smtp): explain send execution and cancellation (#726)
feat(smtp): add cancellation control and managed Angus abort (#726)
42 remaining items
feat(diagnostics): separate SIZE facts from bounded capability reports (
feat(smtp): enforce and report finalized message sizes (#748)
test(smtp): isolate lifecycle fixtures from DNS and idle expiry (#748)
docs(smtp): document SIZE behavior and close Phase 4 (#748)
docs(smtp): explain SIZE checks and receipt diagnostics (#748)
perf(smtp): streamline content inspection without dropping checks (#749)
perf(provider): cache loader-scoped mail adapter discovery (#749)
test(performance): add reproducible loopback mail-send audit (#749)
docs(performance): record audit results and retain SIZE behavior (#749)
docs(conformance): retain hosted evidence and retire completed plan (#…
bbottema commentedon Sep 29, 2026
All 10 original steps, five phases and 14 linked child issues are complete and pushed for 10.0.0. #747 finishes the plan with a reproducible SMTP conformance suite; the runner guide explains how to run it.
The architecture overview remains accurate. PIPELINING/CHUNKING stay parked separately under #699. This closes the implementation plan, not the 10.0.0 release.