Hello,
today i got an error notification from wp mail smtp plugin that my email can’t be sent due to a Misconfigured server certificate, everything was fine yesterday i don’t know what happened suddenly but i got that error and here is the full error log:
Versions:
WordPress: 6.0
WordPress MS: No
PHP: 7.4.29
WP Mail SMTP: 3.4.0
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Host: mail.mydomain.com
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
Server:
OpenSSL: OpenSSL 1.1.1f 31 Mar 2020
Apache.mod_security: No
Debug:
Email Source: WP Mail SMTP
Mailer: Other SMTP
SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
SMTP Debug:
2022-06-02 08:48:18 Connection: opening to mail.mydomain.com:587, timeout=300, options=array()
2022-06-02 08:48:18 Connection: opened
2022-06-02 08:48:18 SERVER → CLIENT: 220 mail.mydomain.com ESMTP Postfix
2022-06-02 08:48:18 CLIENT → SERVER: EHLO mydomain.com
2022-06-02 08:48:18 SERVER → CLIENT: 250-mail.mydomain.com250-PIPELINING250-SIZE 30720000250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250 CHUNKING
2022-06-02 08:48:18 CLIENT → SERVER: STARTTLS
2022-06-02 08:48:18 SERVER → CLIENT: 220 2.0.0 Ready to start TLS
2022-06-02 08:48:18 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 [/home/mydomain.com/public_html/wp-includes/PHPMailer/SMTP.php line 468]
SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
2022-06-02 08:48:18 CLIENT → SERVER: QUIT
2022-06-02 08:48:18
2022-06-02 08:48:18
2022-06-02 08:48:18 Connection: closed
SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
can anyone help me pls to fix this?!
thanks.