W1zzard
Well-known member
When using a self-signed SSL certificate on your e-mail server, you'll see the following error in your logs if you use PHP >5.6:
The underlying issue is that PHP verifies certificates on SSL connection starting with version 5.6.
My fix:
edit: /library/Zend/Mail/Protocol/Smtp.php, find the line with stream_socket_enable_crypto(, add a line before
Code:
ErrorException: Email to foo@bar.com failed: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed - library/Zend/Mail/Protocol/Smtp.php:207
and
ErrorException: Email to foor@bar.com failed (after retry): stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed - library/Zend/Mail/Protocol/Smtp.php:207
The underlying issue is that PHP verifies certificates on SSL connection starting with version 5.6.
My fix:
edit: /library/Zend/Mail/Protocol/Smtp.php, find the line with stream_socket_enable_crypto(, add a line before
Code:
stream_context_set_option($this->_socket, 'ssl', 'verify_peer', false);