Hi,
I've been using Stunnel for many years without a problem but I just changed my email provider and now my mail client can't send emails.
Receiving via POP is still fine, but sending via SMTP is giving the error "SSL_connect: ssl/record/ssl3_record.c:354: error:0A00010B:SSL routines::wrong version number"
The old SMTP server was on port 465 whereas the new server (hotmail) is on port 587 so that may be the source of the problem.
My config file is quite simple:
socket = l:TCP_NODELAY=1 socket = r:TCP_NODELAY=1 client = yes
[pop] accept = 110 connect = outlook.office365.com:995
[smtp] accept = 25 connect = smtp-mail.outlook.com:587
I just changed the POP and SMTP server details to the new ones. POP is still on port 995 as it was before but SMTP has changed from 465 to 587.
I was running an older version of Stunnel but updating to latest version hasn't helped.
Does anyone have any ideas? I'd hate to have to lose my old Email client which has so many messages stored so it would be great to get it working fully with hotmail.
Thanks!
Graham.
Hi,
Port 465 is typically for implicit-SSL, whereas port 587 is for explicit-SSL (ie: requires the client to issue a STARTTLS command after connecting).
I'm not sure exactly what stunnel config changes are needed to deal with that different protocol, but that is where you shoukd start looking.
Regards, Mike
On 12/17/23 12:39, Mike Spooner wrote:
Hi,
Port 465 is typically for implicit-SSL, whereas port 587 is for explicit-SSL (ie: requires the client to issue a STARTTLS command after connecting).
I'm not sure exactly what stunnel config changes are needed to deal with that different protocol, but that is where you shoukd start looking.
"protocol = smtp" needs to be added to the stunnel.conf section in order to enable the explicit (STARTTLS) SMTP negotiation.
Best regards, Mike
Hi,
"protocol = smtp" needs to be added to the stunnel.conf section in order to enable the explicit (STARTTLS) SMTP negotiation.
Thanks all!
Yes, I added the "protocol = smtp" and also username, password and authentication commands, so it now looks like this:
[smtp] accept = 25 protocol = smtp protocolUsername = xxxxxxxxxx protocolPassword = xxxxxxxxxx protocolAuthentication = login connect = smtp-mail.outlook.com:587
That stopped it giving the error but it still wouldn't send, with the mail client giving an error. So also had to disable SMTP authentication in the mail client program and now it works. :)
Thanks again for your help.