Hello all - I have tried to set up stunnel to send emails through gmail from a legacy device that can only send to port 25. But I'm having no success. My config file seems correct, as it matches config files posted by others who appear able to send through gmail. This is what it looks like:
output = stunnel-log.txt debug = 7 Taskbar = yes
[gmail-imap] client = yes accept = 143 connect = imap.gmail.com:993 verifyChain = yes CAfile = ca-certs.pem checkHost = imap.gmail.com OCSPaia = yes
[gmail-smtp] client = yes accept = 25 connect = smtp.gmail.com:465 verifyChain = yes CAfile = ca-certs.pem checkHost = smtp.gmail.com OCSPaia = yes
I originally thought the problem was gmail's recent new security features, requiring app-passwords for apps that do not support gmail's latest security features. So I set up an app-password for use by stunnel but that didn't work, either. So I then turned on "allow less secure apps" in gmail and used the account's original password (not the app-password). But even that doesn't work. So I'm at a total loss and can't think of anything else to do. Can anyone assist?
Many thanks.
Hi,
Except for verification, that it always has been a pain unless you control de CA and the peers with certificate that connect to you, and so I haven't set them as you, it works for me.
Also I force TLS 1.2, but it is unnecessary as Google already negotiates 1.2 if you remove that from the config file.
Maybe your problem is in the security changes you did.
Unless they explicitly request it, as Yahoo/AOL is doing lately (change on October 20th) I wouldn't touch anything in the account.
And even then, if you do, the app-password is for your mail client, not for stunnel. Stunnel just provides the secure channel, not the authentication method.
Said that, check stunnel log, or post it here, because the main question is, does stunnel connect without errors? If so, nothing else can be done, regarding Stunnel.
It is impossible to contact Google, but you'll have to find a way to figure out what is going on with your account or your mail client.
Regards.
HiI have not installed stunnel on a legacy device yet.However, first setup gmail and see if it works.Then install stunnel and use gmail recommended port to configure your email.From what i setup to get gmail working, I am sure it used a different port order than 25, so you might want to contact Google.Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: lrogersjunk@gmail.com Date: 10/17/20 09:20 (GMT-06:00) To: stunnel-users@stunnel.org Subject: [stunnel-users] Can't Connect To Gmail Hello all - I have tried to set up stunnel to send emails through gmail from a legacy device that can only send to port 25. But I'm having no success. My config file seems correct, as it matches config files posted by others who appear able to send through gmail. This is what it looks like:output = stunnel-log.txtdebug = 7Taskbar = yes[gmail-imap]client = yesaccept = 143connect = imap.gmail.com:993verifyChain = yesCAfile = ca-certs.pemcheckHost = imap.gmail.comOCSPaia = yes[gmail-smtp]client = yesaccept = 25connect = smtp.gmail.com:465verifyChain = yesCAfile = ca-certs.pemcheckHost = smtp.gmail.comOCSPaia = yesI originally thought the problem was gmail's recent new security features, requiring app-passwords for apps that do not support gmail's latest security features. So I set up an app-password for use by stunnel but that didn't work, either. So I then turned on "allow less secure apps" in gmail and used the account's original password (not the app-password). But even that doesn't work. So I'm at a total loss and can't think of anything else to do. Can anyone assist? Many thanks._______________________________________________stunnel-users mailing list -- stunnel-users@stunnel.orgTo unsubscribe send an email to stunnel-users-leave@stunnel.org
Pedantically, port 25 is only for mailserver-to-mailserver communication (even though it has often been abused for client-server mail-submission over the last 4 decades). Perhaps Google is being stricter now, and requires client SMTP connection on port 587 these days?
-- Mike Spooner