PDA

View Full Version : "Email Options" Set this to SSL/TLS with PHP 5.6?


Nirjonadda
09-19-2015, 12:22 PM
I am getting error from Diagnostics Email test if "Email Options" Set this to SSL/TLS with PHP 5.6, If i am set Email Options setting to None then vBulletin Email Test are working but why i am cannot get working "Email Options" Set this to SSL/TLS with PHP 5.6? PHP 5.5 are still working With SSL/TLS. Please any one can help me ?


------------------------------------------
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:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 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 ssl://na.nirmoladda.com:465 (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 716

Dave
09-19-2015, 01:05 PM
Well the error states "certificate verify failed" which means that the SSL/TLS certificate of the mail server is either invalid/expired/does not exist.

I believe the certificate check can be disabled, but that requires a modification to the class_mail.php file of vBulletin.

Nirjonadda
09-19-2015, 01:33 PM
Please can you let me know, How to reinstalling the certificate mail server for cPanel? I am not using https. Can you post here the modification to the class_mail.php file of vBulletin for disable the certificate check?

153369

Dave
09-19-2015, 01:41 PM
Looked at the function but I don't think it can be disabled since it's built into the fsockopen function of PHP.

Other people managed to solve it by making some other changes:
http://forum.directadmin.com/showthread.php?t=50885
http://akrabat.com/ssl-certificate-verification-on-php-5-6/

Nirjonadda
09-19-2015, 01:44 PM
I am already doing this steps but this does not help. Please, do you have any other Suggestions?

Nirjonadda
09-22-2015, 03:15 PM
Have any one can help me ? Please ....

Kesha
09-22-2015, 03:26 PM
Make sure ca-certificates is up to date and then try running the command `update-ca-certificates` as root in Terminal. If that still doesn't work for you, as Dave explained, take a look at those URLs. If not, you may want to check out alternative ways to send emails.

Nirjonadda
09-22-2015, 05:02 PM
Not working the command `update-ca-certificates` as root in Terminal.

login as: root
Using keyboard-interactive authentication.
Password:
Last login: Tue Sep 22 14:59:26 2015 from 151.55.154.92
root@aa [~]# update-ca-certificates
-bash: update-ca-certificates: command not found
root@aa [~]#

Dave
09-22-2015, 06:46 PM
Are you using CentOS? This link (https://labs.bitpay.com/t/how-to-update-the-root-ca-cert-bundle-on-your-webserver-if-you-are-getting-curl-ssl-errors/315) explains how to do it on different operating systems.

Also you probably want to remove your IP address from that post.

Nirjonadda
09-23-2015, 05:24 PM
Doing all thing but does not get fixed.

Zachery
09-24-2015, 10:41 PM
Are you sure you need it to be on?