Replies: 0
Trying to get wp Mail SMTP to use our local e-mail server to send e-mail. Getting the following error:
Versions:
WordPress: 5.6.2
WordPress MS: No
PHP: 7.4.15
WP Mail SMTP: 2.6.0
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not authenticate.
Host: mailserver
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
Server:
OpenSSL: OpenSSL 1.1.1d 10 Sep 2019
Apache.mod_security: No
Debug:
Mailer: Other SMTP
SMTP Error: Could not authenticate.
SMTP Debug:
2021-02-23 12:58:49 Connection: opening to mailserver:587, timeout=300, options=array()
2021-02-23 12:58:49 Connection: opened
2021-02-23 12:58:49 SERVER -> CLIENT: 220 mailserver ESMTP Postcow
2021-02-23 12:58:49 CLIENT -> SERVER: EHLO www.domain.tld
2021-02-23 12:58:49 SERVER -> CLIENT: 250-mailserver250-PIPELINING250-SIZE 104857600250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250-SMTPUTF8250 CHUNKING
2021-02-23 12:58:49 CLIENT -> SERVER: STARTTLS
2021-02-23 12:58:49 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2021-02-23 12:58:49 CLIENT -> SERVER: EHLO www.domain.tld
2021-02-23 12:58:49 SERVER -> CLIENT: 250-mailserver250-PIPELINING250-SIZE 104857600250-ETRN250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250-SMTPUTF8250 CHUNKING
2021-02-23 12:58:49 CLIENT -> SERVER: AUTH LOGIN
2021-02-23 12:58:49 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2021-02-23 12:58:49 CLIENT -> SERVER: [credentials hidden]
2021-02-23 12:58:49 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2021-02-23 12:58:49 CLIENT -> SERVER: [credentials hidden]
2021-02-23 12:58:51 SERVER -> CLIENT: 535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6
2021-02-23 12:58:51 SMTP ERROR: Password command failed: 535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6
SMTP Error: Could not authenticate.
2021-02-23 12:58:51 CLIENT -> SERVER: QUIT
2021-02-23 12:58:51 SERVER -> CLIENT: 221 2.0.0 Bye
2021-02-23 12:58:51 Connection: closed
SMTP Error: Could not authenticate.
The particular entry “authentication failed: UGFzc3dvcmQ6” basically means that it failed on the password. However, the password is correct. I have tested sending e-mail using Thunderbird without any problems. Here’s how thunderbird is configured, if it helps:
Port: 587
Authentication method: Normal Password
Connection Security: STARTTLS
I’ve tried with both SSL and TLS as well as toggling Auto TLS. Nothing is working. I would appreciate some assistance.