Author |
|
schwim Valued Community Member
Joined: 21 November 2017 Location: United States
Online Status: Offline Posts: 49
|
Posted: 26 November 2017 at 11:23am | IP Logged
|
|
|
Hi there everyone!
I'm trying to add a new account that is a GMail address and am unable due to "incorrect username or password".
To clarify:
1) the login and pass are correct.
2) IMAP is enabled in GMail settings.
3) 2FA is NOT enabled for this account.
4) I have visited https://www.google.com/accounts/DisplayUnlockCaptcha and performed the necessary steps.
5) I have enabled "Allow less secure apps" in my Google account settings.
I understand that this is likely an issue with one of Google's many settings but thought I would ask here in case someone has already run across a solution.
Any suggestions on making it happen would be greatly appreciated, thanks for your time!
|
Back to Top |
|
|
schwim Valued Community Member
Joined: 21 November 2017 Location: United States
Online Status: Offline Posts: 49
|
Posted: 26 November 2017 at 11:27am | IP Logged
|
|
|
As an update, I just got this in my email, so I guess I now know why it's happening. The problem I see now, however is that even though I checked "Allow less secure apps", it's still not allowing the login.
Quote:
Hi Schwim,
Google just blocked someone from signing into your Google Account *********@gmail.com from an app that may put your account at risk.
Less secure app
Sunday, November 26, 2017 2:03 PM (ET)
United States*
Don't recognize this activity?
If you didn't recently receive an error while trying to access a Google service, like Gmail, from a non-Google application, someone may have your password.
SECURE YOUR ACCOUNT
Are you the one who tried signing in?
Google will continue to block sign-in attempts from the app you're using because it has known security problems or is out of date. You can continue to use this app by allowing access to less secure apps, but this may leave your account vulnerable. |
|
|
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 27 November 2017 at 12:20am | IP Logged
|
|
|
Well if access for less secure apps is already enabled but Gmail still won't let you in, there's not much you can do. However, you should still try enabling debug logs in admin area, replicate the problem and check what kind of error message is returned by IMAP server of Gmail. If it contains something like "Web login required", you can get URL from there for unlocking access.
Also, WebMail offers a way to make error messages displayed in web interface more verbose. To do that, add the following item to array defined in data/settings/config.php file:
Code:
'labs.webmail.display-server-error-information' => true, |
|
|
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
schwim Valued Community Member
Joined: 21 November 2017 Location: United States
Online Status: Offline Posts: 49
|
Posted: 27 November 2017 at 7:34am | IP Logged
|
|
|
Hi there Igor, and thanks for the help!
I enabled logging and set the verbose flag then attempted to create the account agian. This time, it allowed me to add the account but then immediately threw an error during checking:
Quote:
[15:25:59.67][a99b37f9] IMAP[NOTE]: Start connection to "ssl://imap.gmail.com:993"
[15:25:59.71][a99b37f9] IMAP[DATA]: < * OK Gimap ready for requests from 23.235.195.139 l89mb43527060qgf\r\n
[15:25:59.71][a99b37f9] IMAP[DATA]: > TAG1 CAPABILITY\r\n
[15:25:59.72][a99b37f9] IMAP[DATA]: < * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER AUTH=XOAUTH\r\n
[15:25:59.72][a99b37f9] IMAP[DATA]: < TAG1 OK Thats all she wrote! l89mb43527060qgf\r\n
[15:25:59.72][a99b37f9] IMAP[SECURE]: > TAG2 LOGIN "***********@gmail.com" "********"\r\n
[15:26:02.28][a99b37f9] IMAP[DATA]: < * NO [WEBALERT https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvG2EyFQT6k-3RNrCDZi9seMs9PIytrXrHaMHjG6a5vAevyWnAoMEGVx6Yf3uLry1vm01Rzm2N6hNN93DC9QYRM5ftF-APgurZ4RA5-I3oMwHeBXpw3oRMNycRaiKXK-RtKeaOvJljYwM9tcq716Kh5KSvRjR8posB2p4HKP7s8SMs-xoEeOff-5Q881VSvTrfuVXDHiyqhZcimnQhUhaqJ4S3Ukz8tEOd0BIkjG1NTsxiq3Cw] Web login required.\r\n
[15:26:02.28][a99b37f9] IMAP[DATA]: < TAG2 NO [ALERT] Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)\r\n
[15:26:02.28][a99b37f9] IMAP[WARNING]: exception 'MailSo\Imap\Exceptions\NegativeResponseException' with message 'MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1756)' in /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php:1756
Stack trace:
#0 /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php(1833): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php(1713): MailSo\Imap\ImapClient->parseResponseWithValidation(NULL, false)
#2 /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php(270): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)
#3 /home/me/public_html/afterlogicpro/libraries/afterlogic/common/managers/mail/manager.php(99): MailSo\Imap\ImapClient->Login('***********@gm...', 'UBL7u0341', '')
#4 /home/me/public_html/afterlogicpro/libraries/afterlogic/common/managers/mail/manager.php(351): CApiMailManager->_getImapClient(Object(CAccount))
#5 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Actions.php(742): CApiMailManager->getFolders(Object(CAccount))
#6 [internal function]: ProjectCore\Actions->AjaxFoldersGetList()
#7 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#8 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#9 /home/me/public_html/afterlogicpro/index.php(104): include('/home/me/pu...')
#10 {main}
[15:26:02.29][a99b37f9] IMAP[NOTICE]: exception 'MailSo\Imap\Exceptions\NegativeResponseException' with message 'MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1756)' in /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php:1756
Stack trace:
#0 /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php(1833): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php(1713): MailSo\Imap\ImapClient->parseResponseWithValidation(NULL, false)
#2 /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php(270): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)
#3 /home/me/public_html/afterlogicpro/libraries/afterlogic/common/managers/mail/manager.php(99): MailSo\Imap\ImapClient->Login('***********@gm...', 'UBL7u0341', '')
#4 /home/me/public_html/afterlogicpro/libraries/afterlogic/common/managers/mail/manager.php(351): CApiMailManager->_getImapClient(Object(CAccount))
#5 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Actions.php(742): CApiMailManager->getFolders(Object(CAccount))
#6 [internal function]: ProjectCore\Actions->AjaxFoldersGetList()
#7 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#8 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#9 /home/me/public_html/afterlogicpro/index.php(104): include('/home/me/pu...')
#10 {main}
Next exception 'MailSo\Imap\Exceptions\LoginBadCredentialsException' with message 'MailSo-Imap-Exceptions-LoginBadCredentialsException (ImapClient.php ~ 287)' in /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php:287
Stack trace:
#0 /home/me/public_html/afterlogicpro/libraries/afterlogic/common/managers/mail/manager.php(99): MailSo\Imap\ImapClient->Login('***********@gm...', 'UBL7u0341', '')
#1 /home/me/public_html/afterlogicpro/libraries/afterlogic/common/managers/mail/manager.php(351): CApiMailManager->_getImapClient(Object(CAccount))
#2 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Actions.php(742): CApiMailManager->getFolders(Object(CAccount))
#3 [internal function]: ProjectCore\Actions->AjaxFoldersGetList()
#4 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#5 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#6 /home/me/public_html/afterlogicpro/index.php(104): include('/home/me/pu...')
#7 {main}
[15:26:02.29][a99b37f9] exception 'MailSo\Imap\Exceptions\NegativeResponseException' with message 'MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1756)' in /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php:1756
Stack trace:
#0 /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php(1833): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php(1713): MailSo\Imap\ImapClient->parseResponseWithValidation(NULL, false)
#2 /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php(270): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)
#3 /home/me/public_html/afterlogicpro/libraries/afterlogic/common/managers/mail/manager.php(99): MailSo\Imap\ImapClient->Login('***********@gm...', 'UBL7u0341', '')
#4 /home/me/public_html/afterlogicpro/libraries/afterlogic/common/managers/mail/manager.php(351): CApiMailManager->_getImapClient(Object(CAccount))
#5 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Actions.php(742): CApiMailManager->getFolders(Object(CAccount))
#6 [internal function]: ProjectCore\Actions->AjaxFoldersGetList()
#7 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#8 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#9 /home/me/public_html/afterlogicpro/index.php(104): include('/home/me/pu...')
#10 {main}
Next exception 'MailSo\Imap\Exceptions\LoginBadCredentialsException' with message 'MailSo-Imap-Exceptions-LoginBadCredentialsException (ImapClient.php ~ 287)' in /home/me/public_html/afterlogicpro/libraries/MailSo/Imap/ImapClient.php:287
Stack trace:
#0 /home/me/public_html/afterlogicpro/libraries/afterlogic/common/managers/mail/manager.php(99): MailSo\Imap\ImapClient->Login('***********@gm...', 'UBL7u0341', '')
#1 /home/me/public_html/afterlogicpro/libraries/afterlogic/common/managers/mail/manager.php(351): CApiMailManager->_getImapClient(Object(CAccount))
#2 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Actions.php(742): CApiMailManager->getFolders(Object(CAccount))
#3 [internal function]: ProjectCore\Actions->AjaxFoldersGetList()
#4 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#5 /home/me/public_html/afterlogicpro/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#6 /home/me/public_html/afterlogicpro/index.php(104): include('/home/me/pu...')
#7 {main}
[15:26:02.29][a99b37f9] INFO[MEMORY]: Memory peak usage: 10.25MB
[15:26:02.29][a99b37f9] INFO[TIME]: Time delta: 2.83052515984
[15:26:02.29][a99b37f9] DB : disconnect from me_client@localhost
[15:26:02.29][a99b37f9] IMAP[NOTE]: Disconnected from "ssl://imap.gmail.com:993" (success)
[15:26:23.25][7ab1d7a5] [GET][ip:104.152.45.42] /afterlogicpro/adminpanel/index.php?mode=logging
[15:26:23.25][7ab1d7a5] POST > []
[15:26:23.25][7ab1d7a5]
[15:26:23.25][7ab1d7a5] call CCommonModule->PopulateData->SystemLogging()
[15:26:23.25][7ab1d7a5] call CWebMailModule->PopulateData->SystemLogging()
[15:26:23.25][7ab1d7a5] call CProModule->PopulateData->SystemLogging()
[15:26:27.14][eb2e5b8e] [GET][ip:104.152.45.42] /afterlogicpro/adminpanel/index.php?pop&type=log&action=view
[15:26:27.14][eb2e5b8e] POST > []
[15:26:27.14][eb2e5b8e]
[15:26:27.14][eb2e5b8e] call CCommonModule->StandardPopAction->System()
[15:26:27.14][eb2e5b8e] call CWebMailModule->StandardPopAction->System() |
|
|
The URL it says to visit is the generic troubleshooting page that I was using to get as far as I have.
Do you see anything that might give me something else to try?
Thanks for your time!
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 27 November 2017 at 10:59pm | IP Logged
|
|
|
Based on the logs, it doesn't look like accessing for less secure apps was allowed. As you can see, there's the following record in the logs:
Code:
[15:26:02.28][a99b37f9] IMAP[DATA]: < * NO [WEBALERT https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvG2EyFQT6k-3RNrCDZi9seMs9PIytrXrHaMHjG6a5vAevyWnAoMEGVx6Yf3uLry1vm01Rzm2N6hNN93DC9QYRM5ftF-APgurZ4RA5-I3oMwHeBXpw3oRMNycRaiKXK-RtKeaOvJljYwM9tcq716Kh5KSvRjR8posB2p4HKP7s8SMs-xoEeOff-5Q881VSvTrfuVXDHiyqhZcimnQhUhaqJ4S3Ukz8tEOd0BIkjG1NTsxiq3Cw] Web login required.\r\n |
|
|
And there's a chance that following that URL would unlock the account for access from the server where WebMail Pro is installed.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
schwim Valued Community Member
Joined: 21 November 2017 Location: United States
Online Status: Offline Posts: 49
|
Posted: 28 November 2017 at 7:24am | IP Logged
|
|
|
Igor wrote:
And there's a chance that following that URL would unlock the account for access from the server where WebMail Pro is installed. |
|
|
Hi there, Igor and thanks for the reply.
Visiting that URL just takes me to my Google account settings page where Less Secure Apps is already enabled.
I played with it for about another hour with no success so I'm assuming that WMP is not capable of connecting to my GMail account. If anyone has had a different experience with their GMail account, I'd love to hear from them.
Thanks for your time!
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 28 November 2017 at 7:33am | IP Logged
|
|
|
Actually, checking my Gmail with WebMail Pro all the time.
But for some accounts, Gmail can be very restrictive and "less secure apps" is not enough (two-factor auth, captcha, policy by domain admin in case of Google apps). It has nothing to do with WebMail Pro, people experience the same issue with Outlook all the time.
Here are some links you may find useful (they all are about Outlook but it's all the same).
https://productforums.google.com/forum/#!topic/gmail/BYxYSdThpiw
https://productforums.google.com/forum/#!topic/gmail/tHVSJsKKGhk
https://productforums.google.com/forum/#!topic/gmail/ixkkBfVKvNo
Regards,
Alex
|
Back to Top |
|
|
schwim Valued Community Member
Joined: 21 November 2017 Location: United States
Online Status: Offline Posts: 49
|
Posted: 29 November 2017 at 7:13am | IP Logged
|
|
|
Hi there alex and thanks very much for the links.
I didn't intend to insinuate that the problem was caused by WMP at all and understand that Google's products can be very fickle when trying to connect to them with something that Google didn't create.
I'll read through the links and give it another shot.
Thanks again!
|
Back to Top |
|
|