• Resolved mbagheri

    (@mbagheri)


    Hello
    To connect a mail server that is currently running smoothly on two other sites but has trouble connecting to another site on the plugin

    All the information entered to configure the plugin has been checked several times

    The output log of the plugin is as follows:

    Versions:
    WordPress: 5.9.3
    WordPress MS: No
    PHP: 7.4.21
    WP Mail SMTP: 3.4.0
    
    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not connect to SMTP host.
    Host: mail.mydomain.com
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)
    
    Server:
    OpenSSL: OpenSSL 1.1.1d 10 Sep 2019
    Apache.mod_security: No
    
    Debug:
    Email Source: WP Mail SMTP
    Mailer: Another SMTP
    SMTP Error: Could not connect to SMTP host.
    
    SMTP Debug:
    2022-05-16 09:44:19 Connection: opening to mail.mydomain.com:587, timeout=300, options=array()
    
    2022-05-16 09:44:19 Connection: opened
    
    2022-05-16 09:44:19 SERVER -> CLIENT: 220 mailserverdomain.com ESMTP Exim 4.95 Mon, 16 May 2022 14:14:19 +0430
    
    2022-05-16 09:44:19 CLIENT -> SERVER: EHLO mydomain.com
    
    2022-05-16 09:44:19 SERVER -> CLIENT: 550 Bad HELO - Host impersonating domain name [mydomain.com]
    
    2022-05-16 09:44:19 SMTP ERROR: EHLO command failed: 550 Bad HELO - Host impersonating domain name [mydomain.com]
    
    2022-05-16 09:44:19 CLIENT -> SERVER: HELO mydomain.com
    
    2022-05-16 09:44:19 SERVER -> CLIENT: 550 Bad HELO - Host impersonating domain name [mydomain.com]
    
    2022-05-16 09:44:19 SMTP ERROR: HELO command failed: 550 Bad HELO - Host impersonating domain name [mydomain.com]
    
    2022-05-16 09:44:19 CLIENT -> SERVER: STARTTLS
    
    2022-05-16 09:44:19 SERVER -> CLIENT: 503 STARTTLS command used when not advertised
    
    2022-05-16 09:44:19 SMTP ERROR: STARTTLS command failed: 503 STARTTLS command used when not advertised
    
    SMTP Error: Could not connect to SMTP host.
    
    2022-05-16 09:44:19 CLIENT -> SERVER: QUIT
    
    2022-05-16 09:44:20 SERVER -> CLIENT: 221 mailserverdomain.com closing connection
    
    2022-05-16 09:44:20 Connection: closed
    
    SMTP Error: Could not connect to SMTP host.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    I don’t know how you find this log. Can you tell me how to find it?

    I seem to have the same issue with mailjet as SMTP server

    Regards

    Thread Starter mbagheri

    (@mbagheri)

    Hello @kundaweb12
    Inside the plugin
    After sending a test email, if sending is a problem, you can see the log at the bottom of the page.

    Plugin Support Darshana

    (@darshanaw)

    Hi @mbagheri,

    Thanks for reaching out! Most probably your server’s Firewall or ModSecurity rules are blocking your SMTP connection requests. Could you please get in touch with your hosting support with the error log and they should be able to assist you accordingly.

    I hope this helps. Thanks!

    Plugin Support Darshana

    (@darshanaw)

    Hi @kundaweb12,

    When you send a test email from WP Mail SMTP > Tools area, you should be able to see the full error. Here’s a screenshot of the option to get a full error log. This will provide you with an idea of what might be going on.

    Thanks!

    Thread Starter mbagheri

    (@mbagheri)

    Hello @darshanaw
    thanks for your help
    This was because the mail server and site domain were the same
    I solved my problem by changing the phpmailer file and changing the domain address

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem connecting mail server to plugin’ is closed to new replies.