Re: stunnel not working properly on Redhat linux (fresh install)

Peter Pentchev <[email protected]> Fri, 4 Jan 2019 17:03:10 +0200
Newsgroups gmane.network.stunnel.user
Message-ID <[email protected]>
On Fri, Jan 04, 2019 at 03:14:27PM +0100, Klaus Kloeser wrote:
> Hi,
> 
>  
> 
> I have set up Stunnel as SSL Wrapper for googlemail on a Redhat Enterprise Linux 7.2 installation.
> 
> The stunnel.conf:
> 
> output = /var/log/stunnel.log 
> cert = /etc/pki/tls/certs/2019stunnel.pem 
> client = yes 
> sslVersion = TLSv1 
> ;fips=no 
> 
> [ssmtp] 
> accept = 1925
> connect=smtp.googlemail.com:587

If you want stunnel to accept plaintext (unencrypted) connections and to
establish an encrypted (SSL/TLS) connection to smtp.googlemail.com, you
will either need to change the port from 587 (the "submission" service,
a kind of simplified SMTP protocol) to 465 (SMTP over TLS), or, if you
really insist on connecting to the submission service and then starting
a TLS session, you will need to tell stunnel to start by speaking SMTP
and issuing a STARTTLS command by also specifying "protocol = smtp".
Either option (changing the connect line to specify port 465 or adding
a "protocol = smtp" line) should work, I just tested them on my Debian
setup.

Hope that helps!

G'luck,
Peter

-- 
Peter Pentchev  roam@{ringlet.net,debian.org,FreeBSD.org} [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-----

iQIzBAABCAAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAlwvdagACgkQZR7vsCUn
3xOTaA/8DJriHNKzjP6lCSmjKlfjruxN+XSihKsOSXwVpP4PqJyFusXSdAYJvhFK
0YgxjdQ/fRBukVJArkyMy5Z4baoAvOwB2fenceOwyf+bM7k2cesZNYIuFf/I+y/k
bm2m8PmZ8iQC12BM/8b0wXz/9ufdCQTvoHhNFoqlkTran6RjAaOLwrpYnAYtbH02
O0HYc82dL2BX37V9JrEXrVJJUlbQNHpuCghgiBWKFZtJAbOciMLUtL6JIfOChUkc
riwDQ+n80XIG2ZqDTicm0YWt8svDDZb1inINTrkCI25fitvdLHFU+4qY6IuJ/KGB
HxQKAMIaRYDVHavHzGipBp5JKQvEbVh7wcLxImJQndl2Ct4wVY2BHs1KrqpNmh12
ZV0RjmcB6V88PrRHd8d/oN3+9qBHzIihIKwhAeR5/hyxZqekcRr1hLJKZPz6d3qZ
QI8W4YBSDTSX9k6/xGgfeDp8GP0qamygrzvpXEeTLBkJRURuRJbdPHpsZDpX9VMR
eLFuFhRk41GBHGfj/4H8W4xJYaI23eXhIwpO82OEFhJykIHlOX3dMg3/euZT8IkO
RynZDsh2NQjTZ9xWkPUWdyjrckUR+cYOgMbi2fppNNts9IlOs7xqwbUUp1SZ2bag
1zlwXEnTfC3KzayS7kT47YnSWdfLm/+qQ7n1VwAWEg/GHQAOEz4=
=X6su
-----END PGP SIGNATURE-----