bwjohnson1
Forum Replies Created
-
UPDATE @sanzeeb3 :
The issue was that inside my active Apache virtual hosts configuration file (000-default.conf), I was using ‘$domain’, as opposed to the domain itself, for the ServerName under 80 and 443.
Once I replaced this in both locations the test email was sent successfully.
Hi @sanzeeb3 ,
The username and password of the Office 365 account I’m authenticating with are both correct.
Notice that the EHLO command with “$domain” fails and gives the response “501 5.5.4 Invalid domain name [MN2PR17CA0032.namprd17.prod.outlook.com]” (I’ve seen this same error with other SMTP WordPress plugins as well).
Thanks for your help.
I have the free version of the WP Mail SMTP plugin (1.5.2) and have noticed that emails have been failing to send (even though the SMTP settings are correct).
Error Log from Test Email:
Versions:
WordPress: 5.2.2
WordPress MS: No
PHP: 7.2.19-0ubuntu0.18.04.1
WP Mail SMTP: 1.5.2Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not connect to SMTP host.
Host: smtp.office365.com
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)Server:
OpenSSL: OpenSSL 1.1.0g 2 Nov 2017
Apache.mod_security: No
SMTP Debug:2019-08-13 20:34:32 Connection: opening to smtp.office365.com:587, timeout=300, options=array (
)
2019-08-13 20:34:32 Connection: opened
2019-08-13 20:34:32 SERVER -> CLIENT: 220 MN2PR17CA0032.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 13 Aug 2019 20:34:31 +0000
2019-08-13 20:34:32 CLIENT -> SERVER: EHLO $domain
2019-08-13 20:34:37 SERVER -> CLIENT: 501 5.5.4 Invalid domain name [MN2PR17CA0032.namprd17.prod.outlook.com]
2019-08-13 20:34:37 SMTP ERROR: EHLO command failed: 501 5.5.4 Invalid domain name [MN2PR17CA0032.namprd17.prod.outlook.com]
2019-08-13 20:34:37 CLIENT -> SERVER: HELO $domain
2019-08-13 20:34:42 SERVER -> CLIENT: 501 5.5.4 Invalid domain name [MN2PR17CA0032.namprd17.prod.outlook.com]
2019-08-13 20:34:42 SMTP ERROR: HELO command failed: 501 5.5.4 Invalid domain name [MN2PR17CA0032.namprd17.prod.outlook.com]
2019-08-13 20:34:42 CLIENT -> SERVER: STARTTLS
2019-08-13 20:34:47 SERVER -> CLIENT: 503 5.5.2 Send hello first [MN2PR17CA0032.namprd17.prod.outlook.com]
2019-08-13 20:34:47 SMTP ERROR: STARTTLS command failed: 503 5.5.2 Send hello first [MN2PR17CA0032.namprd17.prod.outlook.com]
2019-08-13 20:34:47 SMTP Error: Could not connect to SMTP host.
2019-08-13 20:34:47 CLIENT -> SERVER: QUIT
2019-08-13 20:34:47 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2019-08-13 20:34:47 Connection: closed
2019-08-13 20:34:47 SMTP Error: Could not connect to SMTP host.Seems like there may be an issue with the client passing in “$domain”, rather than the domain of my webpage.
Let me know if there is any immediate solution.
Thanks!
- This reply was modified 5 years, 6 months ago by bwjohnson1.