[OJS 3.1.0.1 --> 3.1.1.4] No emails are being sent using 'SMTP = on'

Hi! After upgrading to 3.1.1.4 no emails can be sent. We’ve tried to debug. Here is the log:

[Tue Oct 09 13:52:18.767776 2018] [:error] [pid 19796] [client **...:] Connection: opening to ms-frontend.hse.ru:25, timeout=300, options=array (\n), referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.874087 2018] [:error] [pid 19796] [client **.
.
.
:] Connection: opened, referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.875917 2018] [:error] [pid 19796] [client **.
.
.
:
] SERVER → CLIENT: 220 ms-frontend.hse.ru\r\n, referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.876363 2018] [:error] [pid 19796] [client **.
.
.
:] CLIENT → SERVER: EHLO ojs.hse.ru\r\n, referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.877657 2018] [:error] [pid 19796] [client **.
.
.
:
] SERVER → CLIENT: 250-ms-frontend.hse.ru\r\n250-PIPELINING\r\n250-SIZE 268435456\r\n250-ETRN\r\n250-STARTTLS\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250 DSN\r\n, referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.877862 2018] [:error] [pid 19796] [client **.
.
.
:] CLIENT → SERVER: STARTTLS\r\n, referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.879958 2018] [:error] [pid 19796] [client **.
.
.
:
] SERVER → CLIENT: 220 2.0.0 Ready to start TLS\r\n, referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.895854 2018] [:error] [pid 19796] [client **.
.
.
:] Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [/var/www/ojs-3.1.1-4/lib/pkp/lib/vendor/phpmailer/phpmailer/class.smtp.php line 375], referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.896206 2018] [:error] [pid 19796] [client **.
.
.
:
] SMTP Error: Could not connect to SMTP host., referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.896281 2018] [:error] [pid 19796] [client **.
.
.
:] CLIENT → SERVER: QUIT\r\n, referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.897114 2018] [:error] [pid 19796] [client **.
.
.
:
] SERVER → CLIENT: \x16\x03\x03\x01M\x0c, referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.897197 2018] [:error] [pid 19796] [client **.
.
.
:] SMTP ERROR: QUIT command failed: \x16\x03\x03\x01M\x0c, referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.897765 2018] [:error] [pid 19796] [client **.
.
.
:
] Connection: closed, referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.897993 2018] [:error] [pid 19796] [client **.
.
.
:] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub , referer: https://ojs.hse.ru/index.php/test2/management/settings/access
[Tue Oct 09 13:52:18.898067 2018] [:error] [pid 19796] [client **.
.
.
:
***] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub , referer: https://ojs.hse.ru/index.php/test2/management/settings/access

We urgently need help to troubleshoot this. Any feedback would be greatly appreciated. Many journals’ workflow is blocked.

Hi,
read this:

The key log line is:
**[Tue Oct 09 13:52:18.895854 2018] [:error] [pid 19796] [client . . . : ] Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [/var/www/ojs-3.1.1-4/lib/pkp/lib/vendor/phpmailer/phpmailer/class.smtp.php line 375], referer: https://ojs.hse.ru/index.php/test2/management/settings/access

1 Like

Thank you very much for this. However, the problem is, it wasn’t even supposed to go through STARTTLS/SSL at all. It was just set up to use the 25-th port:

smtp = On
smtp_server = ms-frontend.***.ru
smtp_port = 25

How do you have smtp_auth configured in config.inc.php?