• Resolved legalaffair

    (@legalaffair)


    Hi, when i try to send test mail i get the following error

    Versions:
    WordPress: 5.4.1
    WordPress MS: No
    PHP: 7.3.18
    WP Mail SMTP: 2.1.1

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not connect to SMTP host.
    Host: mail.shanus.in
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)

    Server:
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
    Apache.mod_security: No

    Debug:
    Mailer: Other SMTP
    SMTP Error: Could not connect to SMTP host.

    SMTP Debug:
    2020-06-10 16:28:02 Connection: opening to mail.shanus.in:587, timeout=300, options=array ()

    2020-06-10 16:28:02 Connection: opened

    2020-06-10 16:28:02 SERVER -> CLIENT: 220 host.kathir.biz ESMTP Exim 4.93.0.4 Wed, 10 Jun 2020 21:28:02 +0500

    2020-06-10 16:28:02 CLIENT -> SERVER: EHLO shanus.in

    2020-06-10 16:28:02 SERVER -> CLIENT: 250-host.kathir.biz Hello shanus.in [209.141.60.76]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN250-STARTTLS250 HELP

    2020-06-10 16:28:02 CLIENT -> SERVER: STARTTLS

    2020-06-10 16:28:02 SERVER -> CLIENT: 220 TLS go ahead

    2020-06-10 16:28:02 Connection failed. Error #2: stream_socket_enable_crypto(): Peer certificate CN=host.kathir.biz' did not match expected CN=mail.shanus.in’ [/home/shanus/domains/shanus.in/public_html/wp-includes/class-smtp.php line 374]

    SMTP Error: Could not connect to SMTP host.

    2020-06-10 16:28:02 CLIENT -> SERVER: QUIT

    2020-06-10 16:28:02

    2020-06-10 16:28:02

    2020-06-10 16:28:02 Connection: closed

    SMTP Error: Could not connect to SMTP host.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • We are experiencing this same issue. Looking for fix.

    Hi @legalaffair,

    The error log indicates the certificate issue, it seems your host is intercepting the SMTP traffic and transparently redirecting to their own server and so the hostname does not match the certificate server presented. Please contact your webhost to fix the issue, you can provide the SMTP debug for them.

    @bmgadmin425 – Unless your site is on same host and connecting to same SMTP host, the issue may be different. Please share the full error log by creating a new support post.

    I hope this helps!

    Hi @legalaffair – 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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SMTP Error: Could not connect to SMTP host’ is closed to new replies.