• Resolved katrankor

    (@katrankor)


    Hello Sir,

    Unfortunately, I am having the error message while trying to use SMTP Yandex. I could not convince my hosting provideer about the problem. They always blame the Yandex..

    Please guide me to solve this problem.

    Versions:
    WordPress: 5.2.4
    WordPress MS: No
    PHP: 7.1.33
    WP Mail SMTP: 1.7.1
    
    Params:
    Mailer: smtp
    Constants: Yes
    ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Host: smtp.yandex.com.tr
    Port: 465
    SMTPSecure: ssl
    SMTPAutoTLS: bool(false)
    SMTPAuth: bool(true)
    
    Server:
    OpenSSL: OpenSSL 1.0.2t 10 Sep 2019
    Apache.mod_security: No
    SMTP Debug:
    2019-12-11 16:37:07 Connection: opening to ssl://smtp.yandex.com.tr:465, timeout=300, options=array (
    )
    2019-12-11 16:37:07 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): Peer certificate CN=<code>ns7.akwebhostingi.com' did not match expected CN=</code>smtp.yandex.com.tr'
    2019-12-11 16:37:07 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): Failed to enable crypto
    2019-12-11 16:37:07 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to ssl://smtp.yandex.com.tr:465 (Unknown error)
    2019-12-11 16:37:07 SMTP ERROR: Failed to connect to server: (0)
    2019-12-11 16:37:07 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    Regards
    Katran

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter katrankor

    (@katrankor)

    Hello,

    I really need your comment @slaffik

    Thanks

    Hi @katrankor,

    The error indicates the issue with your certificate that your web server is serving. Please contact your hosting company support to fix the certificate of a server for you.

    Alternatively, you can disable the certificate verification with this custom code. You should not do this unless you have to, it’s compromising your security.

    In case it helps, here’s a tutorial on where and how to add custom codes like that.

    I hope this helps!

    Thread Starter katrankor

    (@katrankor)

    Hello,

    Thanks for your quick response @sanzeeb3 // Could you please expend more your solution way? I have requested many times from hosting provider but they always blame the yandex..

    Unfortunately the code you shared messed up my website.. I could notopen my website when I have added this workaround code..

    Anyway, I also want this to be solved via certificate. What should they add in their cert? Please let me know more before getting touching them.

    Thanks
    Katran

    Hi Katran,

    There seems to be some issue with the server while using the Yandex SMTP host, but you can read this topic to fix your server. It seems the problem occurs on CentOS 6.

    I hope that helps!

    Hi @katrankor – We haven’t heard from you in about a week, so I’m going to go ahead and mark this ticket resolved. If you still have questions, though, please feel welcome to continue the conversation.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Peer certificate CN=`ns7.akwebhostingi.com’ did not match expected CN=`..’ is closed to new replies.