Re: Connection setup for STARTTLS vs. SSL/TLS for POP3/SMTP mail servers?

Peter Pentchev <[email protected]>
Newsgroups gmane.network.stunnel.user
Message-ID <[email protected]>
On Fri, Oct 20, 2017 at 07:01:04AM +0200, Ben Stover wrote:
> In stunnels *.conf file I can specify the mail server name and the port for a connection.
> 
> How can I tell stunnel to use STARTTLS as connect type?
> How can I tell stunnel to use SSL/TLS as connect type?
> 
> Does stunnel support both connect types at all or only one?
> 
> Is the connect type for SMTP completely determined by port e.g.:
> 
> STARTTLS over port 587 and SSL/TLS over port 465
> or can both connect types use both ports?

Take a look at the excellent stunnel documentation (hint: "protocol").

> Assume I do not get the supported connect type information from my webhoster:

This is highly unlikely; how else are you supposed to configure your
e-mail client?  (assuming you are trying to setup a tunnel to your
provider's e-mail server)

> How can I find it out from my (client) side?

Still, there is a way: if you have somehow managed to guess the correct
hostname and port to connect to, you can use "nc -v" or "telnet".
If the port is 25, or if the server greets you with an SMTP banner
(usually "220 something" or "220-something"), then this is a cleartext
connection and you want to set up STARTTLS (you can test for it by
issuing a couple of SMTP commands and then trying STARTTLS).  If the
server just hangs there and waits for you to send something, then it's
probably a TLS connection; you can test for that by running:

  openssl s_client -connect hostname:port

Still, I do indeed find it highly unlikely that your hosting provider
will not have given you enough information.

> What are there error messages?

Not sure what this question refers to.

G'luck,
Peter

-- 
Peter Pentchev  [email protected] [email protected] [email protected]
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13

_______________________________________________
stunnel-users mailing list
[email protected]
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAlnpvMQACgkQZR7vsCUn
3xPErA/9HhCfSJLjRJkiFrqXyPh45Oh5IV29Q12FzT3hCM13V0p4dKeFw+ea7K/a
IT6LVYIsmDqtS8WBB6qu28+q8sf+z19XcAa+MBZdfhIXAV9d4p+my26qbuyxrthQ
2iORmPhsSXpbneIlAelAYT/paO15abgwycis3v2cJ6h8tFST7bdAA0TDFnNTIsF0
OjpC2svXBunm1lLIko8VOr2ZAs+BUgtQm0J+4iJRdD5cqEloCcUq3VIa9fZgrNpe
bqE1I7cEJ7IeK+KZ4UTxSWxT1AWXV4IxzqWXqQqfvjbvZpkx62MbqKFTG5TIs7Rw
LVS2amQQaxn8qtxDGkyQQokyhmXjNO3h73zP4hpsBPp7HeiybAYRYM6/77EecORy
8cEsovALdx+eAYMlrF5q1NSwQD1zNjAMAIQWhRN2XIVi5YL44qC5knvgF1z8U20g
NaSbW/yPBRe5ndlBGUlVIqcBWWX96UmdljB6adbZSv8QlvhGS61McE+YAVKx5sFZ
iezoJmhEseLhHc9IqXg+kLo1nouhjEhJhN/ayuLFYUFNFt+YZRdFafyS8MeMJGMr
1K7a9BPypit/NgyJzdrALpdLdXoiLbSomDlMts8ASZlTj6R7f6ZzDOpUqfiHY8Ug
I8fnE3zb18oo05bMG19iN2SCOIxBpgT8QhmHZUIjQ47HxNX7+n0=
=D6Ic
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.