• Resolved rero40104

    (@rero40104)


    Hi I’ve been getting this error and have tried everything but can’t get the plugin to work. Can you help, please?

    Here’s the debug log:

    Versions:
    WordPress: 5.5.3
    WordPress MS: No
    PHP: 7.4.9
    WP Mail SMTP: 2.5.1
    
    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not connect to SMTP host.
    Host: mail.example.com
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)
    SMTPOptions: {"ssl":{"verify_peer":false,"verify_peer_name":false,"allow_self_signed":true}}
    
    Server:
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
    
    Debug:
    Mailer: Other SMTP
    SMTP Error: Could not connect to SMTP host.
    
    SMTP Debug:
    2020-12-02 22:05:11 Connection: opening to mail.example.com:587, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
    
    2020-12-02 22:05:12 Connection: opened
    
    2020-12-02 22:05:12 SERVER -> CLIENT: 220 LH034.hostexample.com ESMTP Exim 4.94 Thu, 03 Dec 2020 01:33:11 +0330
    
    2020-12-02 22:05:12 CLIENT -> SERVER: EHLO example.com
    
    2020-12-02 22:05:12 SERVER -> CLIENT: 550 Bad HELO - Host impersonating domain name [example.com]
    
    2020-12-02 22:05:12 SMTP ERROR: EHLO command failed: 550 Bad HELO - Host impersonating domain name [example.com]
    
    2020-12-02 22:05:12 CLIENT -> SERVER: HELO example.com
    
    2020-12-02 22:05:12 SERVER -> CLIENT: 550 Bad HELO - Host impersonating domain name [example.com]
    
    2020-12-02 22:05:12 SMTP ERROR: HELO command failed: 550 Bad HELO - Host impersonating domain name [example.com]
    
    2020-12-02 22:05:12 CLIENT -> SERVER: STARTTLS
    
    2020-12-02 22:05:12 SERVER -> CLIENT: 503 STARTTLS command used when not advertised
    
    2020-12-02 22:05:12 SMTP ERROR: STARTTLS command failed: 503 STARTTLS command used when not advertised
    
    SMTP Error: Could not connect to SMTP host.
    
    2020-12-02 22:05:12 CLIENT -> SERVER: QUIT
    
    2020-12-02 22:05:12 SERVER -> CLIENT: 221 LH034.hostexample.com closing connection
    
    2020-12-02 22:05:12 Connection: closed
    
    SMTP Error: Could not connect to SMTP host.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @rero40104,

    Thanks for the error log. The error is all about your DNS misconfiguration, possibly because the web server and mail server having the same hostname (not SMTP Host). It looks like this generally happens on website migration and causes this because of duplicate records on both sites.

    Please contact your server support with the above SMTP debug to look into this. Also, you should not disable SSL verification and use a self-signed certificate – instead fix your mail server.

    I hope this helps!

    Hi @rero40104 – 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.

    Hello,

    First of all, thank you for this plug-in.

    I have exactly the same issue. I think it can be fixed, please see: https://github.com/PHPMailer/PHPMailer/issues/1095

    If I understand it correctly, it can be fixed by setting/overriding the ‘$mail->Hostname’ variable.

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