Ho un server Linux versione UBUNTU server 16.04 su cui ho installato la versione MOODLE3.8 con php 7.2 e certificati SSL forniti da GoDaddy. non riesco ad inviare le mail
Ho provato a verificare l'invio attraverso il plugin "Test email" ed il risultato visualizzato dal debug è il seguente:
2021-01-05 11:13:49 Connection: opening to smtp.office365.com:587, timeout=300, options=array()
2021-01-05 11:13:49 Connection: opened
2021-01-05 11:13:49 SERVER -> CLIENT: 220 ZR0P278CA0057.outlook.office365.com ESMTP Service ready
2021-01-05 11:13:49 CLIENT -> SERVER: EHLO xxxxx.yyyyy.it
2021-01-05 11:13:49 SERVER -> CLIENT: 250-Requested mail action okay, completed
250-SIZE 20000000
250-8BITMIME
250-STARTTLS
250 OK
2021-01-05 11:13:49 CLIENT -> SERVER: STARTTLS
2021-01-05 11:13:49 SERVER -> CLIENT: 220 Ready to start TLS
2021-01-05 11:13:49 Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [/var/www/html/moodle/lib/phpmailer/src/SMTP.php line 405]
2021-01-05 11:13:49 SMTP Error: Could not connect to SMTP host.
2021-01-05 11:13:49 CLIENT -> SERVER: QUIT
2021-01-05 11:13:49 SERVER -> CLIENT: ,( c������6%:�
�����^߃�^�rG{V�o}^*@i2��س��\~��8@+���������"�������i�,��:��[##��j��hǽ��\fl�A���E�M��n\�\,9��h�j7ֹ��\��S^g�!=+�T_��1��G[���˖�:�Cj⋮`B*��|��0pn����":pލ�Y�m����
�ٸ@%����}W��)|5{_S�4b�I*9�ډ�;4����FT�V��9�@�Zj�p����1;p�^�u�,c$�Q
2021-01-05 11:13:49 SMTP ERROR: QUIT command failed: ,( c������6%:�
�����^߃�^�rG{V�o}^*@i2��س��\~��8@+���������"�������i�,��:��[##��j��hǽ��\fl�A���E�M��n\�\,9��h�j7ֹ��\��S^g�!=+�T_��1��G[���˖�:�Cj⋮`B*��|��0pn����":pލ�Y�m����
�ٸ@%����}W��)|5{_S�4b�I*9�ډ�;4����FT�V��9�@�Zj�p����1;p�^�u�,c$�Q
2021-01-05 11:13:49 Connection: closed
2021-01-05 11:13:49 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingHo cercato sia sul blog che in generale su Internet, ma non ho trovato soluzioni valide.Come si può risolvere?