Announcement

Collapse
No announcement yet.

TLS support?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TLS support?

    We currently use SparkPost to send emails via SMTP on our vB4.2.5 board. SparkPost are about to depreciate TLS 1.0. I've just tested their new non-TLS 1.0 server and, using TLS legacy, I received the following error:

    Code:
    The mailing function returned an error while trying to send the mail.
    The following errors were outputted by PHP when attempting to send mail:
    
    
    PHP Warning: stream_socket_enable_crypto(): SSL: Success in ..../includes/class_mail.php on line 776
    
    PHP User Warning: Unable to negotitate TLS handshake. in ..../includes/class_mail.php on line 715
    The email log reports the following: "FAILED: Unable to negotitate TLS handshake."

    If I switch to the other TLS option (TLS Native) I get this:

    Code:
    The mailing function returned an error while trying to send the mail.
    The following errors were outputted by PHP when attempting to send mail:
    
    
    PHP Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number in ..../includes/class_mail.php on line 757
    
    PHP Warning: fsockopen(): Failed to enable crypto in ..../includes/class_mail.php on line 757
    
    PHP Warning: fsockopen(): unable to connect to tls://no-tlsv1-test-smtp.sparkpostmail.com:587 (Unknown error) in ..../includes/class_mail.php on line 757
    
    PHP User Warning: Unable to connect to SMTP server in ..../includes/class_mail.php on line 715
    In this case, the email log reports the following: "​​​​​​​FAILED: Unable to connect to SMTP server."

    Is vB compatible with TLS 1.1 or above or is the problem due to the server configuration?

  • #2
    Hunting around, it seems that "STREAM_CRYPTO_METHOD_TLS_CLIENT" on line 776 of class_mail.php doesn't include TLS 1.2 from PHP 5.6.7. Changing this to STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT seems to resolve the issue.

    Comment


    • #3
      Quite likely vB4 didn't have this support, and it is no longer being developed. I believe vB5 has it but I'd need to check.
      MARK.B | vBULLETIN SUPPORT

      TalkNewsUK - My vBulletin 5.7.0 Demo
      AdminAmmo - My Cloud Demo

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X