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
Make STARTTLS mandatory: support starttls.required in external.email #246
EmailClient never sets mail.smtp.starttls.required, so STARTTLS is opportunistic. When the server's EHLO reply does not advertise STARTTLS, javax.mail 1.4.7's SMTPTransport throws only if mail.smtp.starttls.required is true. Otherwise it continues in clear and goes on to AUTH.
An on-path attacker who strips STARTTLS from the EHLO reply therefore gets the SMTP credentials and the message in clear, and the certificate checks added in #206 never run. The current behaviour is documented (chap-mail.adoc: "If the server does not support STARTTLS, the connection continues without the use of TLS").
Activity
Add starttls.required to make STARTTLS mandatory for external email