xpam.pl

vBulletin 4 SMTP TLS fix

I still keep around a vBulleting 4 forum due to historic reasons and have to deal with things slowly decaying due to age. This time it was our SMTP provider deprecating TLS 1.0 and 1.1 which resulted in this error whenever an email was about to be sent:

AH01071: Got error 'PHP message: PHP Warning: stream_socket_enable_crypto(): 
SSL operation failed with code 1. OpenSSL Error messages:\nerror:0A00014D:SSL 
routines::legacy sigalg disallowed or unsupported in /var/www/forum/includes/class_mail.php on line 776
The solution was to find that line in vBulletin code and replace this:

if (!stream_socket_enable_crypto($this->smtpSocket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT))
with this:
if (!stream_socket_enable_crypto($this->smtpSocket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT))
3198 Total Views 10 Views Today


Cen
GitHub
Eurobattle.net
Lagabuse.com
Bnetdocs

Posted

in

by

Tags: