• Resolved francsim4194

    (@francsim4194)


    Hello,

    I’m having an issue with WP Mail SMTP when I try to use the “Other SMTP” setting to connect with an Exchange 2010 mail relay server. After saving the settings and trying to send a test email I get the following error log:

    `Versions:
    WordPress: 4.9.19
    WordPress MS: No
    PHP: 7.2.18
    WP Mail SMTP: 1.5.2

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not connect to SMTP host.
    Host: 10.253.31.8
    Port: 25
    SMTPSecure: tls
    SMTPAutoTLS:
    C:\wamp64\www\wp-content\plugins\wp-mail-smtp\src\Debug.php:107:boolean true

    SMTPAuth:
    C:\wamp64\www\wp-content\plugins\wp-mail-smtp\src\Debug.php:107:boolean true

    Server:
    OpenSSL: OpenSSL 1.1.1b 26 Feb 2019
    Apache.mod_security: No
    SMTP Debug:
    2022-02-28 10:27:43 Connection: opening to 10.253.31.8:25, timeout=300, options=array (
    )
    2022-02-28 10:27:43 Connection: opened
    2022-02-28 10:27:43 SERVER -> CLIENT: 220 relay.akshi.gov.al Microsoft ESMTP MAIL Service ready at Mon, 28 Feb 2022 11:27:43 +0100
    2022-02-28 10:27:43 CLIENT -> SERVER: EHLO aspa.gov.al
    2022-02-28 10:27:43 SERVER -> CLIENT: 250-relay.akshi.gov.al Hello [10.253.64.130]
    250-SIZE 41943040
    250-PIPELINING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-STARTTLS
    250-AUTH LOGIN
    250-8BITMIME
    250-BINARYMIME
    250 CHUNKING
    2022-02-28 10:27:43 CLIENT -> SERVER: STARTTLS
    2022-02-28 10:27:43 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
    2022-02-28 10:27:43 SMTP Error: Could not connect to SMTP host.
    2022-02-28 10:27:43 CLIENT -> SERVER: QUIT
    2022-02-28 10:27:43 SERVER -> CLIENT:
    2022-02-28 10:27:43 SMTP ERROR: QUIT command failed:
    2022-02-28 10:27:43 Connection: closed
    2022-02-28 10:27:43 SMTP Error: Could not connect to SMTP host.`

    If I use Sendgrid on the other hand, emails are sent without issue.

    I have contacted my provider and they confirm that there are no firewall or security policy issues, and when I try to telnet from my server to the mail relay server and test SMTP everything works fine.

    Any idea on what might be causing this?

    Thanks,
    Franc

Viewing 1 replies (of 1 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @francsim4194,

    Thanks for reaching out! According to the error log, your server is blocking SMTP connection requests.

    Could you please try to authenticate your SMTP connection by using a 3rd party email client like Mozilla Thunderbird, and see whether your SMTP configurations are correct.

    This will provide you with an idea of what might be going on.

    I hope this helps. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘SMTP Error: Could not connect to SMTP host’ is closed to new replies.