Assume direct TLS if SMTP autoconfig finds port 465.
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 13 Apr 2017 07:06:30 +0000 (09:06 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 13 Apr 2017 07:06:30 +0000 (09:06 +0200)
commitdbec2c7256e5397238932f3d228dcb1eaf4e8d40
tree8ed115fb186f395b4a81fe0b408f43e9db966475
parent8e40e71a285b8cfcf49b33caa842dc2d4ed439f0
Assume direct TLS if SMTP autoconfig finds port 465.

Technically, this is incorrect:
A direct TLS-only SMTP service is against the standards,
and a "_submission._tcp" SRV record should have a port
that has a plaintext+STARTTLS service listening
(RFC 6186, section 3.1).

Port 465 shouldn't even be used for mail submission of
any kind, according to IANA:
(https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=465)

However, everyone ignores that, and port 465 is routinely
used for TLS-only SMTP service, and therefore it is safe to
assume direct TLS instead of STARTTLS.
src/gtk/gtkutils.c
src/prefs_account.c