quentinsf / IMAPdedup

IMAP message de-duplicator
https://quentinsf.com/software/imapdedup
GNU General Public License v2.0
321 stars 57 forks source link

Add an option to make STARTTLS mandatory #48

Closed grawity closed 4 years ago

grawity commented 4 years ago

Some IMAP servers (mail providers) make secure connections only available via STARTTLS but not via separate-port TLS.

However, the current "opportunistic" implementation is susceptible to downgrade attacks, that is, a client can be fooled into thinking the server doesn't support it – and will happily continue with the rest of the connection in plaintext.

Adding this option allows STARTTLS mode to provide the same level of security (resilience to downgrade attacks) as TLS on separate port does.

quentinsf commented 4 years ago

Looks good - thanks!