Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Authentication Failed. Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
waqas.khalid32
Newbie
Newbie


Joined: 23 March 2015
Location: Pakistan
Online Status: Offline
Posts: 19
Posted: 23 March 2015 at 6:05am | IP Logged Quote waqas.khalid32

12

Hi, i have a small problem here, when i try to register to Webmail client i can register successfully and after that login successfully. But if i remove the cache i am unable to login, i can find entries in the database but i am not sure why i am unable to login.


And i am 100 percent sure the credentials are correct. I can login to client anytime using Default username , that i configured with Dovecot. Following is my log need help.


Code:

[12:46:42.69][afebf82b] Location: index.php

[12:46:42.98][cdf52794] [GET][ip:127.0.0.1] /afterlogic/adminpanel/index.php
[12:46:42.98][cdf52794] POST > []
[12:46:42.98][cdf52794]
[12:46:42.98][cdf52794] call CCommonModule->PopulateData->SystemLogging()
[12:46:42.98][cdf52794] call CWebMailModule->PopulateData->SystemLogging()

[12:46:45.39][8ee9f7c7] [POST(5)][ip:127.0.0.1] /afterlogic/adminpanel/index.php?submit
[12:46:45.39][8ee9f7c7] POST > [form_id, ch_EnableDebugLogging, selVerbosity, ch_EnableUserActivityLogging, btnUserActivityClearLog]
[12:46:45.39][8ee9f7c7]
[12:46:45.39][8ee9f7c7] call CCommonModule->StandardPostAction->SystemLogging()
[12:46:45.39][8ee9f7c7] call CWebMailModule->StandardPostAction->SystemLogging()
[12:46:45.39][8ee9f7c7] Location: index.php

[12:46:45.56][44e2cc09] [GET][ip:127.0.0.1] /afterlogic/adminpanel/index.php
[12:46:45.56][44e2cc09] POST > []
[12:46:45.56][44e2cc09]
[12:46:45.56][44e2cc09] call CCommonModule->PopulateData->SystemLogging()
[12:46:45.56][44e2cc09] call CWebMailModule->PopulateData->SystemLogging()

[12:47:00.34][4587772d] [GET][ip:127.0.0.1] /afterlogic/webServices/loginMobile.php
[12:47:00.34][4587772d] POST > []
[12:47:00.34][4587772d]
[12:47:00.34][4587772d] DB(PDO/mysql) : start connect to wmafterlogic@localhost
[12:47:00.34][4587772d] DB : PDO(mysql:dbname=wmafterlogic;host=localhost;charset=utf8)
[12:47:00.39][4587772d] DB : connected to wmafterlogic@localhost
[12:47:00.39][4587772d] DB[1] > SELECT `id_acct`, `id_user`, `id_domain`, `id_tenant`, `deleted`, `def_acct`, `mailing_list`, `quota`, `email`, `friendly_nm`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_login`, `mail_inc_pass`, `mail_inc_ssl`, `mail_out_host`, `mail_out_port`, `mail_out_login`, `mail_out_pass`, `mail_out_auth`, `mail_out_ssl`, `hide_in_gab`, `signature`, `signature_type`, `signature_opt`, `custom_fields` FROM awm_accounts WHERE `def_acct` = 1 AND `email` = 'helloworld'
[12:47:00.44][4587772d] DB[2] > SELECT `id_user`, `id_subscription`, `id_helpdesk_user`, `msgs_per_page`, `contacts_per_page`, `auto_checkmail_interval`, `created_time`, `last_login`, `last_login_now`, `logins_count`, `def_skin`, `def_lang`, `def_editor`, `save_mail`, `layout`, `incoming_charset`, `def_timezone`, `def_time_fmt`, `def_date_fmt`, `client_timezone`, `question_1`, `question_2`, `answer_1`, `answer_2`, `sip_enable`, `sip_impi`, `sip_password`, `twilio_number`, `twilio_enable`, `twilio_default_number`, `use_threads`, `save_replied_messages_to_current_folder`, `desktop_notifications`, `allow_change_input_direction`, `allow_helpdesk_notifications`, `enable_open_pgp`, `allow_autosave_in_drafts`, `autosign_outgoing_emails`, `capa`, `custom_fields`, `files_enable` FROM awm_settings WHERE `id_user` = 21
[12:47:00.53][4587772d] IMAP[NOTE]: Start connection to "tcp://127.0.0.1:143"
[12:47:00.59][4587772d] IMAP[DATA]: < * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.\r\n
[12:47:00.59][4587772d] IMAP[SECURE]: > TAG1 LOGIN "helloworld" "********"\r\n
[12:47:04.33][4587772d] IMAP[DATA]: < TAG1 NO [AUTHENTICATIONFAILED] Authentication failed.\r\n
[12:47:04.33][4587772d] IMAP[WARNING]: exception 'MailSo\Imap\Exceptions\NegativeResponseException' with message 'MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1753)' in /usr/share/afterlogic/libraries/MailSo/Imap/ImapClient.php:1753
Stack trace:
#0 /usr/share/afterlogic/libraries/MailSo/Imap/ImapClient.php(1830): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /usr/share/afterlogic/libraries/MailSo/Imap/ImapClient.php(1710): MailSo\Imap\ImapClient->parseResponseWithValidation(NULL, false)
#2 /usr/share/afterlogic/libraries/MailSo/Imap/ImapClient.php(270): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)
#3 /usr/share/afterlogic/libraries/afterlogic/common/managers/mail/manager.php(84): MailSo\Imap\ImapClient->Login('helloworld', '12345', '')
#4 /usr/share/afterlogic/libraries/afterlogic/common/managers/mail/manager.php(121): CApiMailManager->getImapClient(Object(CAccount))
#5 /usr/share/afterlogic/libraries/afterlogic/common/managers/integrator/manager.php(756): CApiMailManager->ValidateAccountConnection(Object(CAccount))
#6 /usr/share/afterlogic/webServices/loginMobile.php(29): CApiIntegratorManager->LoginToAccount('helloworld', '12345')
#7 {main}
[12:47:04.33][4587772d] IMAP[NOTICE]: exception 'MailSo\Imap\Exceptions\NegativeResponseException' with message 'MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1753)' in /usr/share/afterlogic/libraries/MailSo/Imap/ImapClient.php:1753
Stack trace:
#0 /usr/share/afterlogic/libraries/MailSo/Imap/ImapClient.php(1830): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /usr/share/afterlogic/libraries/MailSo/Imap/ImapClient.php(1710): MailSo\Imap\ImapClient->parseResponseWithValidation(NULL, false)
#2 /usr/share/afterlogic/libraries/MailSo/Imap/ImapClient.php(270): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)
#3 /usr/share/afterlogic/libraries/afterlogic/common/managers/mail/manager.php(84): MailSo\Imap\ImapClient->Login('helloworld', '12345', '')
#4 /usr/share/afterlogic/libraries/afterlogic/common/managers/mail/manager.php(121): CApiMailManager->getImapClient(Object(CAccount))
#5 /usr/share/afterlogic/libraries/afterlogic/common/managers/integrator/manager.php(756): CApiMailManager->ValidateAccountConnection(Object(CAccount))
#6 /usr/share/afterlogic/webServices/loginMobile.php(29): CApiIntegratorManager->LoginToAccount('helloworld', '12345')
#7 {main}

Next exception 'MailSo\Imap\Exceptions\LoginBadCredentialsException' with message 'MailSo-Imap-Exceptions-LoginBadCredentialsException (ImapClient.php ~ 287)' in /usr/share/afterlogic/libraries/MailSo/Imap/ImapClient.php:287
Stack trace:
#0 /usr/share/afterlogic/libraries/afterlogic/common/managers/mail/manager.php(84): MailSo\Imap\ImapClient->Login('helloworld', '12345', '')
#1 /usr/share/afterlogic/libraries/afterlogic/common/managers/mail/manager.php(121): CApiMailManager->getImapClient(Object(CAccount))
#2 /usr/share/afterlogic/libraries/afterlogic/common/managers/integrator/manager.php(756): CApiMailManager->ValidateAccountConnection(Object(CAccount))
#3 /usr/share/afterlogic/webServices/loginMobile.php(29): CApiIntegratorManager->LoginToAccount('helloworld', '12345')
#4 {main}
[12:47:04.33][4587772d] Previous Exception: MailSo-Imap-Exceptions-LoginBadCredentialsException (ImapClient.php ~ 287)
[12:47:04.34][4587772d] DB : disconnect from wmafterlogic@localhost
[12:47:04.34][4587772d] INFO[MEMORY]: Memory peak usage: 11MB
[12:47:04.34][4587772d] INFO[TIME]: Time delta: 4.1817100048065
[12:47:04.34][4587772d] IMAP[NOTE]: Disconnected from "tcp://127.0.0.1:143" (success)

[12:47:21.76][1f32376a] [GET][ip:127.0.0.1] /afterlogic/adminpanel/index.php?pop&type=log&action=view
[12:47:21.76][1f32376a] POST > []
[12:47:21.76][1f32376a]
[12:47:21.76][1f32376a] call CCommonModule->StandardPopAction->System()
[12:47:21.76][1f32376a] call CWebMailModule->StandardPopAction->System()



Back to Top View waqas.khalid32's Profile Search for other posts by waqas.khalid32
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 23 March 2015 at 6:11am | IP Logged Quote Igor

To be sure there's no misunderstanding, can you confirm helloworld and 12345 are actual credentials for an account on your local Dovecot setup, and if you run the following commands in terminal:

Code:
telnet localhost 143
...
a login helloworld 12345


you get logged into account successfully?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
waqas.khalid32
Newbie
Newbie


Joined: 23 March 2015
Location: Pakistan
Online Status: Offline
Posts: 19
Posted: 23 March 2015 at 9:46pm | IP Logged Quote waqas.khalid32

Authentication is failing.
Quote:
exim@ubuntu:/usr/share$ telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
a login helloworld 12345
a NO [AUTHENTICATIONFAILED] Authentication failed.
* BYE Disconnected for inactivity.
Connection closed by foreign host.
Back to Top View waqas.khalid32's Profile Search for other posts by waqas.khalid32
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 24 March 2015 at 3:51am | IP Logged Quote Igor

In that case, the issue seems to be external to WebMail, you'll need to recheck your Dovecot setup and see why IMAP authentication doesn't work for an account set up there. One of the possible reasons is that mail server requires full email address as login, not just username - and if that's the case, you'll need to log into WebMail with email address specified, too.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
waqas.khalid32
Newbie
Newbie


Joined: 23 March 2015
Location: Pakistan
Online Status: Offline
Posts: 19
Posted: 24 March 2015 at 11:35pm | IP Logged Quote waqas.khalid32

Thanks for the reply, i want to ask a question here, i saw few configurations where we have to create a DB which then connects to Dovecot , the question here is can we use Webmail Client DB to do same thing? or we explicitly need to create a DB that will store credentials and help as a bridge b/w the Client and Dovecot?
Back to Top View waqas.khalid32's Profile Search for other posts by waqas.khalid32
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 24 March 2015 at 11:39pm | IP Logged Quote Igor

WebMail accesses mail server only via IMAP/SMTP protocols, it doesn't matter for WebMail how mailserver accounts are organized. However, it's possible to have the same database used by both mailserver and webmail application, that's how our MailSuite Pro works internally.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide