{"id":647,"date":"2025-02-02T21:18:26","date_gmt":"2025-02-02T20:18:26","guid":{"rendered":"https:\/\/xpam.pl\/blog\/?p=647"},"modified":"2025-02-02T21:18:26","modified_gmt":"2025-02-02T20:18:26","slug":"vbulletin-4-smtp-tls-fix","status":"publish","type":"post","link":"https:\/\/xpam.pl\/blog\/?p=647","title":{"rendered":"vBulletin 4 SMTP TLS fix"},"content":{"rendered":"<p>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:<\/p>\n<pre><code class=\"language-\">AH01071: Got error &#039;PHP message: PHP Warning: stream_socket_enable_crypto(): \nSSL operation failed with code 1. OpenSSL Error messages:\\nerror:0A00014D:SSL \nroutines::legacy sigalg disallowed or unsupported in \/var\/www\/forum\/includes\/class_mail.php on line 776<\/code>\r\nThe solution was to find that line in vBulletin code and replace this:\r\n\r\n<\/pre>\n<pre><code class=\"language-\">if (!stream_socket_enable_crypto($this-&gt;smtpSocket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT))<\/code>\r\nwith this:<\/pre>\n<pre><code class=\"language-\">if (!stream_socket_enable_crypto($this-&gt;smtpSocket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT))<\/code><\/pre>\n<div class=\"wp-post-signature\">\r\n<br \/>\r\n<br \/>\r\n<img src='https:\/\/xpam.pl\/aaaaff.png' title='Moonie' \/> Cen<br \/>\r\n<a href='https:\/\/github.com\/cen1'>GitHub<\/a><br \/>\r\n<a href='https:\/\/eurobattle.net'>Eurobattle.net<\/a><br \/>\r\n<a href='https:\/\/lagabuse.com'>Lagabuse.com<\/a><br \/>\r\n<a href='https:\/\/bnetdocs.org'>Bnetdocs<\/a><br \/>\r\n<\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>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 &#039;PHP message: PHP Warning: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-647","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=647"}],"version-history":[{"count":8,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/647\/revisions"}],"predecessor-version":[{"id":655,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/647\/revisions\/655"}],"wp:attachment":[{"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xpam.pl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}