SMTP Error: Not Authorised (happened after changing password)
-
Hi there,
Firstly, awesome plugin. Worked fine for a number of weeks and alleviated a massive headache of mine.
Unfortunately, over the last few days our emails on our WordPress site have ceased to work again and after checking the error log it appears to be caused by an authentication error.
I actually changed the gmail account being used’s password recently and as far as I know this shouldn’t matter but I can’t help but think it might be related.
I’ve tried creating new credentials and deactivating / reactivating the plugin but to no avail.
Anyone have any idea how to get it back working?
Thanks
Here is the log and server info:
2018-06-22 16:10:27 Connection: opening to smtp.gmail.com:587, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),) 2018-06-22 16:10:27 Connection: opened 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "220 smtp.gmail.com ESMTP q17-v6sm9375112wro.30 - gsmtp" 2018-06-22 16:10:27 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP q17-v6sm9375112wro.30 - gsmtp 2018-06-22 16:10:27 CLIENT -> SERVER: EHLO fyldegrass.co.uk 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-SIZE 35882577" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-8BITMIME" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-STARTTLS" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-STARTTLS" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-PIPELINING" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-CHUNKING" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250 SMTPUTF8" 2018-06-22 16:10:27 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8 2018-06-22 16:10:27 CLIENT -> SERVER: STARTTLS 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS" 2018-06-22 16:10:27 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS 2018-06-22 16:10:27 CLIENT -> SERVER: EHLO fyldegrass.co.uk 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-SIZE 35882577" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-8BITMIME" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-PIPELINING" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-CHUNKING" 2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING" 2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250 SMTPUTF8" 2018-06-22 16:10:27 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8 2018-06-22 16:10:27 Auth method requested: XOAUTH2 2018-06-22 16:10:27 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH 2018-06-22 16:10:28 CLIENT -> SERVER: AUTH XOAUTH2 dXNlcj1meWxkZWdyYXNzQGdtYWlsLmNvbQFhdXRoPUJlYXJlciABAQ== 2018-06-22 16:10:28 SMTP -> get_lines(): $data is "" 2018-06-22 16:10:28 SMTP -> get_lines(): $str is "334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==" 2018-06-22 16:10:28 SERVER -> CLIENT: 334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ== 2018-06-22 16:10:28 SMTP ERROR: AUTH command failed: 334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ== SMTP Error: Could not authenticate. 2018-06-22 16:10:28 CLIENT -> SERVER: QUIT 2018-06-22 16:10:28 SMTP -> get_lines(): $data is "" 2018-06-22 16:10:28 SMTP -> get_lines(): $str is "535-5.7.8 Username and Password not accepted. Learn more at" 2018-06-22 16:10:28 SMTP -> get_lines(): $data is "535-5.7.8 Username and Password not accepted. Learn more at" 2018-06-22 16:10:28 SMTP -> get_lines(): $str is "535 5.7.8 https://support.google.com/mail/?p=BadCredentials q17-v6sm9375112wro.30 - gsmtp" 2018-06-22 16:10:28 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials q17-v6sm9375112wro.30 - gsmtp 2018-06-22 16:10:28 SMTP ERROR: QUIT command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials q17-v6sm9375112wro.30 - gsmtp 2018-06-22 16:10:28 Connection: closed SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
And these are my server settings:
OS: Linux s17525125.onlinehome-server.info 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 20:57:37 UTC 2015 x86_64
PHP version: 5.6.33
WordPress version: 4.9.6
WordPress multisite: No
openssl: Available
allow_url_fopen: Enabled
stream_socket_client: Available
fsockopen: Available
cURL: Available
cURL Version: 7.19.7, NSS/3.27.1
- The topic ‘SMTP Error: Not Authorised (happened after changing password)’ is closed to new replies.