Author |
|
festusngor Newbie
Joined: 10 April 2018 Location: United Kingdom
Online Status: Offline Posts: 20
|
Posted: 13 April 2018 at 11:13am | IP Logged
|
|
|
I'm using Web API and having this error "The username or password you entered is incorrect" message when trying to login a user on my remote, but both username and password are OK as it works fine on my local. Also I can create, edit, delete a Mail Server on my remote but just can't login any user to an email. I've tried Gmail, Yahoo, Exchange and GoDaddy accounts and all still returns the same error on my remote but works fine on local. This is my error log (NOTE: password is in plain text so i asterisked):
terlogic/mailso/lib/MailSo/Imap/ImapClient.php:1761
Stack trace:
#0 /var/www/teknology/email/vendor/afterlogic/mailso/lib/MailSo/Imap/ImapClient.php(1839): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /var/www/teknology/email/vendor/afterlogic/mailso/lib/MailSo/Imap/ImapClient.php(1710): MailSo\Imap\ImapClient->parseResponseWithValidation(NULL, false)
#2 /var/www/teknology/email/vendor/afterlogic/mailso/lib/MailSo/Imap/ImapClient.php(270): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)
#3 /var/www/teknology/email/modules/Mail/Managers/Main/Manager.php(126): MailSo\Imap\ImapClient->Login('ngor.tester@gma...', '*********', '')
#4 /var/www/teknology/email/modules/Mail/Managers/Main/Manager.php(179): Aurora\Modules\Mail\Managers\Main\Manager->_getImapClient(Object(Aurora\Modules\Mail\Classes\Account))
#5 /var/www/teknology/email/modules/Mail/Module.php(5075): Aurora\Modules\Mail\Managers\Main\Manager->validateAccountConnection(Object(Aurora\Modules\Mail\Classes\Account))
#6 /var/www/teknology/email/system/Module/Manager.php(361): Aurora\Modules\Mail\Module->onLogin(Array, false)
#7 /var/www/teknology/email/system/Module/AbstractModule.php(381): Aurora\System\Module\Manager->broadcastEvent('Core', 'Core::Login', Array, false)
#8 /var/www/teknology/email/modules/Core/Module.php(1789): Aurora\System\Module\AbstractModule->broadcastEvent('Login', Array, false)
#9 [internal function]: Aurora\Modules\Core\Module->Login('ngor.tester@gma...', '*********', '', true)
#10 /var/www/teknology/email/system/Module/AbstractModule.php(874): call_user_func_array(Array, Array)
#11 /var/www/teknology/email/modules/Core/Module.php(531): Aurora\System\Module\AbstractModule->CallMethod('Login', Array, true)
#12 [internal function]: Aurora\Modules\Core\Module->EntryApi()
#13 /var/www/teknology/email/system/Module/AbstractModule.php(619): call_user_func_array(Array, Array)
#14 /var/www/teknology/email/system/Module/Manager.php(689): Aurora\System\Module\AbstractModule->RunEntry('api')
#15 /var/www/teknology/email/system/Application.php(87): Aurora\System\Module\Manager->RunEntry('api')
#16 /var/www/teknology/email/index.php(21): Aurora\System\Application::Start()
#17 {main}
[18:10:06.87][bcebcb73] IMAP[NOTICE]: MailSo\Imap\Exceptions\LoginBadCredentialsException: MailSo-Imap-Exceptions-LoginBadCredentialsException in /var/www/teknology/email/vendor/afterlogic/mailso/lib/MailSo/Imap/ImapClient.php:288
Stack trace:
#0 /var/www/teknology/email/modules/Mail/Managers/Main/Manager.php(126): MailSo\Imap\ImapClient->Login('ngor.tester@gma...', '*********', '')
#1 /var/www/teknology/email/modules/Mail/Managers/Main/Manager.php(179): Aurora\Modules\Mail\Managers\Main\Manager->_getImapClient(Object(Aurora\Modules\Mail\Classes\Account))
#2 /var/www/teknology/email/modules/Mail/Module.php(5075): Aurora\Modules\Mail\Managers\Main\Manager->validateAccountConnection(Object(Aurora\Modules\Mail\Classes\Account))
#3 /var/www/teknology/email/system/Module/Manager.php(361): Aurora\Modules\Mail\Module->onLogin(Array, false)
#4 /var/www/teknology/email/system/Module/AbstractModule.php(381): Aurora\System\Module\Manager->broadcastEvent('Core', 'Core::Login', Array, false)
#5 /var/www/teknology/email/modules/Core/Module.php(1789): Aurora\System\Module\AbstractModule->broadcastEvent('Login', Array, false)
#6 [internal function]: Aurora\Modules\Core\Module->Login('ngor.tester@gma...', '*********', '', true)
#7 /var/www/teknology/email/system/Module/AbstractModule.php(874): call_user_func_array(Array, Array)
#8 /var/www/teknology/email/modules/Core/Module.php(531): Aurora\System\Module\AbstractModule->CallMethod('Login', Array, true)
#9 [internal function]: Aurora\Modules\Core\Module->EntryApi()
#10 /var/www/teknology/email/system/Module/AbstractModule.php(619): call_user_func_array(Array, Array)
#11 /var/www/teknology/email/system/Module/Manager.php(689): Aurora\System\Module\AbstractModule->RunEntry('api')
#12 /var/www/teknology/email/system/Application.php(87): Aurora\System\Module\Manager->RunEntry('api')
#13 /var/www/teknology/email/index.php(21): Aurora\System\Application::Start()
#14 {main}
[18:10:06.88][bcebcb73] MailSo\Imap\Exceptions\LoginBadCredentialsException: MailSo-Imap-Exceptions-LoginBadCredentialsException in /var/www/teknology/email/vendor/afterlogic/mailso/lib/MailSo/Imap/ImapClient.php:288
Stack trace:
#0 /var/www/teknology/email/modules/Mail/Managers/Main/Manager.php(126): MailSo\Imap\ImapClient->Login('ngor.tester@gma...', '*********', '')
#1 /var/www/teknology/email/modules/Mail/Managers/Main/Manager.php(179): Aurora\Modules\Mail\Managers\Main\Manager->_getImapClient(Object(Aurora\Modules\Mail\Classes\Account))
#2 /var/www/teknology/email/modules/Mail/Module.php(5075): Aurora\Modules\Mail\Managers\Main\Manager->validateAccountConnection(Object(Aurora\Modules\Mail\Classes\Account))
#3 /var/www/teknology/email/system/Module/Manager.php(361): Aurora\Modules\Mail\Module->onLogin(Array, false)
#4 /var/www/teknology/email/system/Module/AbstractModule.php(381): Aurora\System\Module\Manager->broadcastEvent('Core', 'Core::Login', Array, false)
#5 /var/www/teknology/email/modules/Core/Module.php(1789): Aurora\System\Module\AbstractModule->broadcastEvent('Login', Array, false)
#6 [internal function]: Aurora\Modules\Core\Module->Login('ngor.tester@gma...', '*********', '', true)
#7 /var/www/teknology/email/system/Module/AbstractModule.php(874): call_user_func_array(Array, Array)
#8 /var/www/teknology/email/modules/Core/Module.php(531): Aurora\System\Module\AbstractModule->CallMethod('Login', Array, true)
#9 [internal function]: Aurora\Modules\Core\Module->EntryApi()
#10 /var/www/teknology/email/system/Module/AbstractModule.php(619): call_user_func_array(Array, Array)
#11 /var/www/teknology/email/system/Module/Manager.php(689): Aurora\System\Module\AbstractModule->RunEntry('api')
#12 /var/www/teknology/email/system/Application.php(87): Aurora\System\Module\Manager->RunEntry('api')
#13 /var/www/teknology/email/index.php(21): Aurora\System\Application::Start()
#14 {main}
Next Aurora\System\Exceptions\Exception: MailSo-Imap-Exceptions-LoginBadCredentialsException in /var/www/teknology/email/modules/Mail/Managers/Main/Manager.php:130
Stack trace:
#0 /var/www/teknology/email/modules/Mail/Managers/Main/Manager.php(179): Aurora\Modules\Mail\Managers\Main\Manager->_getImapClient(Object(Aurora\Modules\Mail\Classes\Account))
#1 /var/www/teknology/email/modules/Mail/Module.php(5075): Aurora\Modules\Mail\Managers\Main\Manager->validateAccountConnection(Object(Aurora\Modules\Mail\Classes\Account))
#2 /var/www/teknology/email/system/Module/Manager.php(361): Aurora\Modules\Mail\Module->onLogin(Array, false)
#3 /var/www/teknology/email/system/Module/AbstractModule.php(381): Aurora\System\Module\Manager->broadcastEvent('Core', 'Core::Login', Array, false)
#4 /var/www/teknology/email/modules/Core/Module.php(1789): Aurora\System\Module\AbstractModule->broadcastEvent('Login', Array, false)
#5 [internal function]: Aurora\Modules\Core\Module->Login('ngor.tester@gma...', '*********', '', true)
#6 /var/www/teknology/email/system/Module/AbstractModule.php(874): call_user_func_array(Array, Array)
#7 /var/www/teknology/email/modules/Core/Module.php(531): Aurora\System\Module\AbstractModule->CallMethod('Login', Array, true)
#8 [internal function]: Aurora\Modules\Core\Module->EntryApi()
#9 /var/www/teknology/email/system/Module/AbstractModule.php(619): call_user_func_array(Array, Array)
#10 /var/www/teknology/email/system/Module/Manager.php(689): Aurora\System\Module\AbstractModule->RunEntry('api')
#11 /var/www/teknology/email/system/Application.php(87): Aurora\System\Module\Manager->RunEntry('api')
#12 /var/www/teknology/email/index.php(21): Aurora\System\Application::Start()
#13 {main}
Next Aurora\Modules\Mail\Exceptions\Exception: The username or password you entered is incorrect in /var/www/teknology/email/modules/Mail/Managers/Main/Manager.php:199
Stack trace:
#0 /var/www/teknology/email/modules/Mail/Module.php(5075): Aurora\Modules\Mail\Managers\Main\Manager->validateAccountConnection(Object(Aurora\Modules\Mail\Classes\Account))
#1 /var/www/teknology/email/system/Module/Manager.php(361): Aurora\Modules\Mail\Module->onLogin(Array, false)
#2 /var/www/teknology/email/system/Module/AbstractModule.php(381): Aurora\System\Module\Manager->broadcastEvent('Core', 'Core::Login', Array, false)
#3 /var/www/teknology/email/modules/Core/Module.php(1789): Aurora\System\Module\AbstractModule->broadcastEvent('Login', Array, false)
#4 [internal function]: Aurora\Modules\Core\Module->Login('ngor.tester@gma...', '*********', '', true)
#5 /var/www/teknology/email/system/Module/AbstractModule.php(874): call_user_func_array(Array, Array)
#6 /var/www/teknology/email/modules/Core/Module.php(531): Aurora\System\Module\AbstractModule->CallMethod('Login', Array, true)
#7 [internal function]: Aurora\Modules\Core\Module->EntryApi()
#8 /var/www/teknology/email/system/Module/AbstractModule.php(619): call_user_func_array(Array, Array)
#9 /var/www/teknology/email/system/Module/Manager.php(689): Aurora\System\Module\AbstractModule->RunEntry('api')
#10 /var/www/teknology/email/system/Application.php(87): Aurora\System\Module\Manager->RunEntry('api')
#11 /var/www/teknology/email/index.php(21): Aurora\System\Application::Start()
#12 {main}
[18:10:06.88][bcebcb73] INFO[MEMORY]: Memory peak usage: 2MB
[18:10:06.88][bcebcb73] INFO[TIME]: Time delta: 1523643006.8804
[18:10:06.88][bcebcb73] IMAP[NOTE]: Disconnected from "ssl://imap.gmail.com:993" (success)
[18:10:09.27][eb3b22da] [POST(4)][ip:94.126.47.167] /?/Api/
[18:10:09.27][eb3b22da] POST > [Module, Method, TenantName, Parameters]
[18:10:09.27][eb3b22da]
[18:10:09.27][eb3b22da] API: LogsViewerWebclient::GetLogFilesData
[18:10:14.32][b7f8d1de] [POST(4)][ip:94.126.47.167] /?/Api/
[18:10:14.32][b7f8d1de] POST > [Module, Method, TenantName, Parameters]
[18:10:14.32][b7f8d1de]
[18:10:14.32][b7f8d1de] API: LogsViewerWebclient::GetLogFilesData
[18:10:14.94][8f7893a3] [POST(4)][ip:94.126.47.167] /?/Api/
[18:10:14.94][8f7893a3] POST > [Module, Method, TenantName, Parameters]
[18:10:14.94][8f7893a3]
[18:10:14.94][8f7893a3] API: LogsViewerWebclient::GetLog
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 16 April 2018 at 2:25am | IP Logged
|
|
|
Can you please explain what does "my remote" and "my local" means exactly? Are you saying that you have a local test install and a remote production install - or in both the cases you access the same remote installation via Web API?
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
festusngor Newbie
Joined: 10 April 2018 Location: United Kingdom
Online Status: Offline Posts: 20
|
Posted: 16 April 2018 at 3:14am | IP Logged
|
|
|
I have a local test install and a remote production install on an Ubuntu server both username and password are OK as it works fine on my local. Also I can create, edit, delete a Mail Server on my remote but just can't login any user to an email
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 16 April 2018 at 3:32am | IP Logged
|
|
|
I see. I have noticed that the logs don't actually contain any single line of WebMail talking to IMAP server - even the error message returned by IMAP server. Is that present anywhere in the logs? And, do you have log Verbosity set to Debug?
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
festusngor Newbie
Joined: 10 April 2018 Location: United Kingdom
Online Status: Offline Posts: 20
|
Posted: 16 April 2018 at 4:11am | IP Logged
|
|
|
No indication of IMAP server on the log and yes I have log Verbosity set to Debug. What do you recommend I do on the server?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 16 April 2018 at 7:00am | IP Logged
|
|
|
Developers suspect this may be somehow caused by Notes module which attempts to create Notes folder on IMAP and it doesn't work for some reason. Thing is, the module is disabled by default; do you have it enabled? And if yes, can you try disabling it and see if it makes any difference? It's enabled by setting Disabled to false in data/settings/modules/MailNotesPlugin.config.json file.
Also, can you please confirm which version of the product you currently run? You can check that as shown here.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
festusngor Newbie
Joined: 10 April 2018 Location: United Kingdom
Online Status: Offline Posts: 20
|
Posted: 16 April 2018 at 7:18am | IP Logged
|
|
|
The settings is enabled so I Disabled it to false in data/settings/modules/MailNotesPlugin.config.json but still having the same error
Version of the product is: <!-- 8110 -->
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 16 April 2018 at 7:21am | IP Logged
|
|
|
Setting Disabled to false actually enables the module, but I understand the issue occurs whether the value is true or false, correct?
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
festusngor Newbie
Joined: 10 April 2018 Location: United Kingdom
Online Status: Offline Posts: 20
|
Posted: 16 April 2018 at 7:51am | IP Logged
|
|
|
Yes
|
Back to Top |
|
|
festusngor Newbie
Joined: 10 April 2018 Location: United Kingdom
Online Status: Offline Posts: 20
|
Posted: 17 April 2018 at 3:26am | IP Logged
|
|
|
I cannot even login using the Webmail lite login page on my remote server still having this error "The username or password you entered is incorrect" it only works for Admin login
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 17 April 2018 at 4:13am | IP Logged
|
|
|
Does the issue occur for Gmail accounts only? If so, we recommend checking the following page:
Let less secure apps access your account
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
festusngor Newbie
Joined: 10 April 2018 Location: United Kingdom
Online Status: Offline Posts: 20
|
Posted: 17 April 2018 at 6:02am | IP Logged
|
|
|
The issue occurs for all mail servers... Also I forgot to mention I'm running Postfix on the remote server could this be the cause? Please could really use a prompt response
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 17 April 2018 at 6:50am | IP Logged
|
|
|
Actually, WebMail Lite doesn't come with guaranteed support from Afterlogic, you're using it on AS IS basis.
Currently, we recommend installing the latest package found here, install it alongside with existing installation, see if the issue occurs there and if IMAP conversation is written into the log file. Without the IMAP logs, can't really say what's the problem there.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
festusngor Newbie
Joined: 10 April 2018 Location: United Kingdom
Online Status: Offline Posts: 20
|
Posted: 18 April 2018 at 8:00am | IP Logged
|
|
|
Really appreciate your responses Igor. Do I need to install Dovecot on the linux remote server?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 19 April 2018 at 1:41am | IP Logged
|
|
|
No, that shouldn't be necessary. Dovecot acts as IMAP server and hosts email accounts, and I understand you already have email accounts accessed with WebMail.
IMAP logs missing from the debug log could be caused by inability of WebMail Pro to match email account you input on login form with any of the mail servers you've added. Please recheck the list of mailservers in admin interface, make sure that one of them has the domain part of your email address in Domains list. There should be no extra characters like "@" or whitespaces. Also note that, with multiple mailservers added, only one of them can have "*" instead of list of domains.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
festusngor Newbie
Joined: 10 April 2018 Location: United Kingdom
Online Status: Offline Posts: 20
|
Posted: 19 April 2018 at 8:16am | IP Logged
|
|
|
Thanks a lot Igor, its now working on the other mail servers but still coming back with the same error for gmail. Well I can live with that for now
|
Back to Top |
|
|