[quoted text, click to view] > I will try using just the 1 VS first. In doing it this way, if I only =
=
[quoted text, click to view] > open port 465 on the firewall to the IIS server and not port 25, this =
=
[quoted text, click to view] > should achieve what I need - or is it
> the case that port 25 needs to be open for initial communication?
The idea behind STARTTLS is that you initialize secure communications ov=
er =
an existing application-level connection, then restart the =
application-level conversation. The TCP/IP port does not change.
A session that invokes encryption via SMTP's STARTTLS extension uses =
*only* TCP 25 if a public MX record is used for mailrouting, or if that'=
s =
the port coded in a private mailroute. If an initial, unencrypted SMTP =
=
conversation is allowed to start on TCP 465, followed by STARTTLS, then =
=
*only* TCP 465 will be used. But TCP 465 and STARTTLS have no special =
relationship: conversely, because TCP 465 and SMTPS (see below) *do* hav=
e =
a well-known-port relationship, it's a very bad/misleading practice to =
have an SMTP server that does not *require* start-to-finish encryption =
listening on TCP 465!
Contrast the STARTTLS "as needed" mechanism with a full SSL/TLS connecti=
on =
to a web server listening on TCP 443, where the entire connection is =
encrypted: both sides need to negotiate encryption immediately, and both=
=
sides need to know from the start what they're getting into.
And just as with HTTP, an SMTP + full SSL/TLS ( =3D SMTPS) connection ca=
n be =
created which is completely encrypted (TCP 465 by default) before any SM=
TP =
commands are sent. Just as the https:// prefix tells the web browser to=
=
what it's getting into, the remote SMTP client connecting to 465 would =
need to be pre-configured to start the encryption handshake immediately,=
=
instead of sending any plain-text at all.
Which method is used -- SMTP + STARTTLS or SMTPS -- depends on both =
servers' capabilities.