Replies: 0
Goodday to you all,
I have been using the WP SMTP Mailer plugin for about half a year. In this time, I have used it on WordPress instances that were hosted on our corporate network, with an SMTP server that was also hosted on the same network. I got the connection info from our support guy, and the plugin worked.
Now, the WordPress instance for production is hosted outside our corporate network. I first tried to connect to the internally hosted SMTP server, which did not work unfortunately. So, our support guy created a new SMTP server that would work with our production WordPress environment… Or so we thought.
He and I have tried a lot of different configurations in the plugin, but they either result in “could not reach host”, or the error below. I have scoured through some pages, as well as the support forum here, but I couldn’t find an instance of this problem, or anything related to it either.
The SMTP server has been tested and works fine. So there has to be some kind of configuration that we’re missing that makes the connection fail. Below is the error log, for your viewing pleasure.
Versions:
WordPress: 5.0.3
WordPress MS: Yes
PHP: 7.2.10-0ubuntu0.18.04.1
WP Mail SMTP: 1.4.1
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Host: webmail.dynagroup.nl
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
Server:
OpenSSL: OpenSSL 1.1.0g 2 Nov 2017
SMTP Debug:
2019-02-25 15:26:45 Connection: opening to webmail.dynagroup.nl:587, timeout=300, options=array (
)
2019-02-25 15:26:45 Connection: opened
2019-02-25 15:26:45 SERVER -> CLIENT: 220 mail.dynafix.com Microsoft ESMTP MAIL Service ready at Mon, 25 Feb 2019 16:26:45 +0100
2019-02-25 15:26:45 CLIENT -> SERVER: EHLO https://www.dynagroup.nl
2019-02-25 15:26:50 SERVER -> CLIENT: 501 5.5.4 Invalid domain name
2019-02-25 15:26:50 SMTP ERROR: EHLO command failed: 501 5.5.4 Invalid domain name
2019-02-25 15:26:50 CLIENT -> SERVER: HELO https://www.dynagroup.nl
2019-02-25 15:26:55 SERVER -> CLIENT: 501 5.5.4 Invalid domain name
2019-02-25 15:26:55 SMTP ERROR: HELO command failed: 501 5.5.4 Invalid domain name
2019-02-25 15:26:55 CLIENT -> SERVER: STARTTLS
2019-02-25 15:27:00 SERVER -> CLIENT: 503 5.5.2 Send hello first
2019-02-25 15:27:00 SMTP ERROR: STARTTLS command failed: 503 5.5.2 Send hello first
2019-02-25 15:27:00 SMTP Error: Could not connect to SMTP host.
2019-02-25 15:27:00 CLIENT -> SERVER: QUIT
2019-02-25 15:27:00 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2019-02-25 15:27:00 Connection: closed
2019-02-25 15:27:00 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
I hope you can help me out with this problem. Let me know if you need any more info.
With kind regards,
Björn Broer