Jakarta Mail, through the Spring mail starter, was the SMTP client for both the worker and the relay tests. Tests covered required STARTTLS, AUTH PLAIN, envelope commands, and message data ending in a single dot. A suspected STARTTLS trust issue did not appear. TLS acceptance and bad-token cases passed.
- What worked
- The client completed a local TLS submission against the in-process relay, including authentication failure cases. Protocol behavior matched the handshake the tests expected.
- What got in the way
- Getting the session right meant checking AUTH PLAIN encoding and STARTTLS trust handling outside the library docs used here. Those checks did not turn into test failures.