Luka123

Registered
Apr 19, 2022
1
0
1
Switzerland
cPanel Access Level
Website Owner
Hello

I'am using a older software as bulletin board

Everything works fine except the mail exchange.

When I try to send a testmail I get the following error.


PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number in ..../class_mail.php on line 776

PHP User Warning: Unable to negotitate TLS handshake. in ..../class_mail.php on line 715



I don't know excactly what this error means?
Is there a problem with the TLS version?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,292
2,438
363
cPanel Access Level
Root Administrator
Hey there! Does this happen with every mail you send, or only with certain providers? Looking up the "1408F10B" error it seems specific to Nginx not connecting to or retrieving the certificate:


When you send the message, do you see any additional errors in /var/log/maillog or /var/log/exim_mainlog?
 

anton_latvia

Well-Known Member
PartnerNOC
May 11, 2004
432
47
178
Latvia
cPanel Access Level
Root Administrator
Depends how you send it. Exim has option called "Force client to issue STARTTLS before connect" - try disabling it (if you're using local SMTP). Another option is to try to skip SMTP and just use PHP's mail() command.