Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Error while connecting to mail server Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
thee
Newbie
Newbie


Joined: 05 April 2014
Online Status: Offline
Posts: 1
Posted: 05 April 2014 at 10:26am | IP Logged Quote thee

Hi I'm running postfix + dovecot + WebMail Lite on my server and I'm having problems logging in to my mail account. It says "Error while connecting to mail server" when I try to log in with my login credentials that correspond to a user on the server.

Here is the log:

Code:

[16:18:43.31] Location: index.php

[16:18:44.21] /mail/adminpanel/index.php
[16:18:44.21]
[16:18:44.21] call CCommonModule->PopulateData->SystemLogging()
[16:18:44.22] call CWebMailModule->PopulateData->SystemLogging()

[16:18:50.79] [POST(6)] /mail/index.php?/Ajax/
[16:18:50.79] POST > [Action, Email, IncLogin, IncPassword, SignMe, Token]
[16:18:50.79]
[16:18:50.79] AJAX: Action: Login
[16:18:50.81] DB(PDO/mysql) : start connect to root@localhost
[16:18:50.81] DB : connected to root@localhost
[16:18:50.81] 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` = 'thee@gameflask.com'
[16:18:50.83] DB[2] > SELECT `id_domain`, `id_tenant`, `disabled`, `name`, `url`, `override_settings`, `is_internal`, `site_name`, `lang`, `def_user_timezone`, `def_user_timeformat`, `def_user_dateformat`, `allow_registration`, `allow_pass_reset`, `allow_webmail`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_ssl`, `mail_out_host`, `mail_out_port`, `mail_out_auth`, `mail_out_login`, `mail_out_pass`, `mail_out_ssl`, `mail_out_method`, `check_interval`, `skin`, `msgs_per_page`, `allow_change_interface_settings`, `allow_change_account_settings`, `allow_users_add_acounts`, `allow_new_users_register`, `layout`, `xlist`, `use_threads`, `allow_contacts`, `contacts_per_page`, `global_addr_book`, `allow_calendar`, `cal_show_weekends`, `cal_workday_starts`, `cal_workday_ends`, `cal_show_workday`, `cal_week_starts_on`, `cal_default_tab`, `allow_files`, `allow_helpdesk` FROM awm_domains WHERE `name` = 'gameflask.com'
[16:18:50.92] DB[3] > SELECT COUNT(id_acct) as acct_count FROM awm_accounts
WHERE def_acct = 1 AND `email` = 'thee@gameflask.com' AND `mail_inc_login` = 'thee@gameflask.com'  LIMIT 1
[16:18:51.04] IMAP[NOTE]: Start connection to "gameflask.com:143"
[16:18:51.22] IMAP[DATA]: < * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN] Dovecot ready.\r\n
[16:18:51.23] IMAP[SECURE]: > TAG1 LOGIN "thee@gameflask.com" "*******"\r\n
[16:18:55.44] IMAP[DATA]: < TAG1 NO [AUTHENTICATIONFAILED] Authentication failed.\r\n
[16:18:55.45] IMAP[WARNING]: exception 'MailSo\Imap\Exceptions\NegativeResponseException' with message 'MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1502)' in /usr/share/nginx/www/mail/libraries/MailSo/Imap/ImapClient.php:1502
Stack trace:
#0 /usr/share/nginx/www/mail/libraries/MailSo/Imap/ImapClient.php(1579): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /usr/share/nginx/www/mail/libraries/MailSo/Imap/ImapClient.php(1459): MailSo\Imap\ImapClient->parseResponseWithValidation(NULL, false)
#2 /usr/share/nginx/www/mail/libraries/MailSo/Imap/ImapClient.php(219): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)
#3 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/users/manager.php(417): MailSo\Imap\ImapClient->Login('thee@gameflask....', 'pass', '')
#4 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/webmail/manager.php(112): CApiUsersManager->CreateAccount(Object(CAccount), true)
#5 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/integrator/manager.php(711): CApiWebmailManager->CreateAccountProcess('thee@gameflask....', 'pass', '', Array)
#6 /usr/share/nginx/www/mail/libraries/ProjectSeven/Actions.php(2245): CApiIntegratorManager->LoginToAccount('thee@gameflask....', 'pass', '', '')
#7 [internal function]: ProjectSeven\Actions->AjaxLogin()
#8 /usr/share/nginx/www/mail/libraries/ProjectSeven/Service.php(242): call_user_func(Array)
#9 /usr/share/nginx/www/mail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#10 /usr/share/nginx/www/mail/index.php(71): include('/usr/share/ngin...')
#11 {main}
[16:18:55.46] IMAP[NOTICE]: exception 'MailSo\Imap\Exceptions\NegativeResponseException' with message 'MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1502)' in /usr/share/nginx/www/mail/libraries/MailSo/Imap/ImapClient.php:1502
Stack trace:
#0 /usr/share/nginx/www/mail/libraries/MailSo/Imap/ImapClient.php(1579): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /usr/share/nginx/www/mail/libraries/MailSo/Imap/ImapClient.php(1459): MailSo\Imap\ImapClient->parseResponseWithValidation(NULL, false)
#2 /usr/share/nginx/www/mail/libraries/MailSo/Imap/ImapClient.php(219): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)
#3 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/users/manager.php(417): MailSo\Imap\ImapClient->Login('thee@gameflask....', 'pass', '')
#4 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/webmail/manager.php(112): CApiUsersManager->CreateAccount(Object(CAccount), true)
#5 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/integrator/manager.php(711): CApiWebmailManager->CreateAccountProcess('thee@gameflask....', 'pass', '', Array)
#6 /usr/share/nginx/www/mail/libraries/ProjectSeven/Actions.php(2245): CApiIntegratorManager->LoginToAccount('thee@gameflask....', 'pass', '', '')
#7 [internal function]: ProjectSeven\Actions->AjaxLogin()
#8 /usr/share/nginx/www/mail/libraries/ProjectSeven/Service.php(242): call_user_func(Array)
#9 /usr/share/nginx/www/mail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#10 /usr/share/nginx/www/mail/index.php(71): include('/usr/share/ngin...')
#11 {main}

Next exception 'MailSo\Imap\Exceptions\LoginBadCredentialsException' with message 'MailSo-Imap-Exceptions-LoginBadCredentialsException (ImapClient.php ~ 236)' in /usr/share/nginx/www/mail/libraries/MailSo/Imap/ImapClient.php:236
Stack trace:
#0 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/users/manager.php(417): MailSo\Imap\ImapClient->Login('thee@gameflask....', 'pass', '')
#1 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/webmail/manager.php(112): CApiUsersManager->CreateAccount(Object(CAccount), true)
#2 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/integrator/manager.php(711): CApiWebmailManager->CreateAccountProcess('thee@gameflask....', 'pass', '', Array)
#3 /usr/share/nginx/www/mail/libraries/ProjectSeven/Actions.php(2245): CApiIntegratorManager->LoginToAccount('thee@gameflask....', 'pass', '', '')
#4 [internal function]: ProjectSeven\Actions->AjaxLogin()
#5 /usr/share/nginx/www/mail/libraries/ProjectSeven/Service.php(242): call_user_func(Array)
#6 /usr/share/nginx/www/mail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#7 /usr/share/nginx/www/mail/index.php(71): include('/usr/share/ngin...')
#8 {main}
[16:18:55.48] Exception[1011]: Can't connect to mail server
~ /libraries/afterlogic/common/managers/users/manager.php (461)
----------------------------------------------------------------------
#0 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/webmail/manager.php(112): CApiUsersManager->CreateAccount(Object(CAccount), true)
#1 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/integrator/manager.php(711): CApiWebmailManager->CreateAccountProcess('thee@gameflask....', 'pass', '', Array)
#2 /usr/share/nginx/www/mail/libraries/ProjectSeven/Actions.php(2245): CApiIntegratorManager->LoginToAccount('thee@gameflask....', 'pass', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxLogin()
#4 /usr/share/nginx/www/mail/libraries/ProjectSeven/Service.php(242): call_user_func(Array)
#5 /usr/share/nginx/www/mail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#6 /usr/share/nginx/www/mail/index.php(71): include('/usr/share/ngin...')
#7 {main}
[16:18:55.49] IMAP[NOTE]: Disconnected from "gameflask.com:143" (success)
[16:18:55.49] Exception[1011]: Can't connect to mail server
~ /libraries/afterlogic/common/managers/users/manager.php (461)
----------------------------------------------------------------------
#0 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/webmail/manager.php(112): CApiUsersManager->CreateAccount(Object(CAccount), true)
#1 /usr/share/nginx/www/mail/libraries/afterlogic/common/managers/integrator/manager.php(711): CApiWebmailManager->CreateAccountProcess('thee@gameflask....', 'pass', '', Array)
#2 /usr/share/nginx/www/mail/libraries/ProjectSeven/Actions.php(2245): CApiIntegratorManager->LoginToAccount('thee@gameflask....', 'pass', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxLogin()
#4 /usr/share/nginx/www/mail/libraries/ProjectSeven/Service.php(242): call_user_func(Array)
#5 /usr/share/nginx/www/mail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#6 /usr/share/nginx/www/mail/index.php(71): include('/usr/share/ngin...')
#7 {main}
[16:18:55.50] exception 'ProjectSeven\Exceptions\ClientException' with message 'ClientException' in /usr/share/nginx/www/mail/libraries/ProjectSeven/Actions.php:2283
Stack trace:
#0 [internal function]: ProjectSeven\Actions->AjaxLogin()
#1 /usr/share/nginx/www/mail/libraries/ProjectSeven/Service.php(242): call_user_func(Array)
#2 /usr/share/nginx/www/mail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#3 /usr/share/nginx/www/mail/index.php(71): include('/usr/share/ngin...')
#4 {main}
[16:18:55.50] DB : disconnect from root@localhost
[16:18:55.50] INFO[MEMORY]: Memory peak usage: 5.75MB

[16:19:01.06] /mail/adminpanel/index.php?pop&type=log&action=view
[16:19:01.06]
[16:19:01.06] call CCommonModule->StandardPopAction->System()
[16:19:01.06] call CWebMailModule->StandardPopAction->System()


Any help would be appreciated.
Thanks
Back to Top View thee's Profile Search for other posts by thee
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 07 April 2014 at 2:07am | IP Logged Quote Igor

According to the log, WebMail sends account credentials to mailserver, and Dovecot states those are incorrect:

Code:
[16:18:51.23] IMAP[SECURE]: > TAG1 LOGIN "thee@gameflask.com" "*******"\r\n
[16:18:55.44] IMAP[DATA]: < TAG1 NO [AUTHENTICATIONFAILED] Authentication failed.\r\n


One of the possible reasons here is that mailserver is configured to accept username for login, not full email address. If that might be the case, try setting UseLoginWithoutDomain to On in data/settings/settings.xml file to set the behavior of WebMail accordingly.

Hope this helps!

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

Joined: 28 May 2014
Location: Russian Federation
Online Status: Offline
Posts: 2
Posted: 28 May 2014 at 4:41am | IP Logged Quote walenberg

Hi, i have following problem with AUTHENTICATION.
After click on button "Sign in" i getting error: "Error while connecting to mail server."

Early was not this problem.
What does it mean?
Please help me :)


Here is the log:

Code:

[07:34:23.18] [POST(6)] /afterlogic/?/Ajax/
[07:34:23.18] POST > [Action, Email, IncLogin, IncPassword, SignMe, Token]
[07:34:23.18]
[07:34:23.18] Exception[1011]: Can't connect to mail server
~ /libraries/afterlogic/common/managers/users/manager.php (461)
----------------------------------------------------------------------
#0 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/afterlogic/common/managers/webmail/manager.php(112): CApiUsersManager->CreateAccount(Object(CAccount), true)
#1 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/afterlogic/common/managers/integrator/manager.php(756): CApiWebmailManager->CreateAccountProcess('nickname@mydomen....', 'password', '', Array)
#2 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Actions.php(2316): CApiIntegratorManager->LoginToAccount('nickname@mydomen....', 'password', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxLogin()
#4 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Service.php(268): call_user_func(Array)
#5 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#6 /usr/local/mgr5/www/webmail-afterlogic/webmail/index.php(71): include('/usr/local/mgr5...')
#7 {main}
[07:34:23.18] Exception[1011]: Can't connect to mail server
~ /libraries/afterlogic/common/managers/users/manager.php (461)
----------------------------------------------------------------------
#0 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/afterlogic/common/managers/webmail/manager.php(112): CApiUsersManager->CreateAccount(Object(CAccount), true)
#1 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/afterlogic/common/managers/integrator/manager.php(756): CApiWebmailManager->CreateAccountProcess('nickname@mydomen....', 'password', '', Array)
#2 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Actions.php(2316): CApiIntegratorManager->LoginToAccount('nickname@mydomen....', 'password', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxLogin()
#4 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Service.php(268): call_user_func(Array)
#5 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#6 /usr/local/mgr5/www/webmail-afterlogic/webmail/index.php(71): include('/usr/local/mgr5...')
#7 {main}
[07:34:23.18] exception 'CApiManagerException' with message 'Can't connect to mail server' in /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/afterlogic/common/managers/users/manager.php:461
Stack trace:
#0 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/afterlogic/common/managers/webmail/manager.php(112): CApiUsersManager->CreateAccount(Object(CAccount), true)
#1 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/afterlogic/common/managers/integrator/manager.php(756): CApiWebmailManager->CreateAccountProcess('nickname@mydomen....', 'password', '', Array)
#2 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Actions.php(2316): CApiIntegratorManager->LoginToAccount('nickname@mydomen....', 'password', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxLogin()
#4 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Service.php(268): call_user_func(Array)
#5 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#6 /usr/local/mgr5/www/webmail-afterlogic/webmail/index.php(71): include('/usr/local/mgr5...')
#7 {main}

Next exception 'ProjectSeven\Exceptions\ClientException' with message 'ClientException' in /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Actions.php:2354
Stack trace:
#0 [internal function]: ProjectSeven\Actions->AjaxLogin()
#1 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Service.php(268): call_user_func(Array)
#2 /usr/local/mgr5/www/webmail-afterlogic/webmail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#3 /usr/local/mgr5/www/webmail-afterlogic/webmail/index.php(71): include('/usr/local/mgr5...')
#4 {main}
Back to Top View walenberg's Profile Search for other posts by walenberg
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 28 May 2014 at 5:14am | IP Logged Quote Alex

Hi,

It is a strange issue according to log file.
Can you please provide us with a SSH access to your server and a test mail account?

For security purposes, you may send the request to our HelpDesk at http://afterlogic.com/helpdesk/ or support@afterlogic.com.
Back to Top View Alex's Profile Search for other posts by Alex
 
walenberg
Newbie
Newbie
Avatar

Joined: 28 May 2014
Location: Russian Federation
Online Status: Offline
Posts: 2
Posted: 28 May 2014 at 11:55am | IP Logged Quote walenberg

Thank you, i have made the request.
Back to Top View walenberg's Profile Search for other posts by walenberg
 

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