Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Cannot Connect to Server Error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jdrag
Newbie
Newbie


Joined: 13 June 2016
Online Status: Offline
Posts: 2
Posted: 13 June 2016 at 12:47pm | IP Logged Quote jdrag

Hello,

I recently downloaded and installed Afterlogic Webmail Pro PHP version per the installation documentation. I'm using this along with HMail.

Hmail is working correctly and I'm able to send\receive emails no problem.

Afterlogic Webmail at first seemed to work correctly. I could log in with my user account, but not with any other users. I enabled debug monitor and reviewed and the logs and I'm seeing some weird things.

On my primary account "androbourne@code-404.com" I can log in with no issues according to the logs. The account logs in using 127.0.0.1:143 again on this account I can login and send/receive emails with no problem.

Now if I try to log in using a secondary account that I created directly from Hmail. (support@code-404.com or any other account). I received an error "cannot connect to server"

I toggled on the option "only already registered users can access webmail" and now I get a "the username or password you entered is incorrect".

I have deleted the account and recreated it to ensure the password was correct and the username.

I noticed in the debug logs that for some reason, any other account other then my primary account (androbourne@) is connecting via port 25 rather then port 143 as the other account does...

I have tried adjusting my webmail settings for sending/receiving (as I receive on port 25 but send on port 587 via SMTP replay) and played around with authentication settings, that did not resolve the issue either.

For some reason other then my main account, all other accounts keep trying to authenticate on port 25 instead of 143 and it is causing login failures. Why is it doing this? This is a default installation with almost nothing changed and I have all the mail ports open... I don't understand why one login would work but any others fail????

I have replaced passwords in the debug log with XXXXX, see below.

Account failing to login without "only already registered users can access webmail" Disabled.

[19:24:12.94][047b4125] DB[3] > SELECT COUNT(id_acct) as acct_count FROM awm_accounts
WHERE def_acct = 1 AND `email` = 'support@code-404.com' AND `mail_inc_login` = 'support@code-404.com' LIMIT 1
[19:24:12.94][047b4125] IMAP[NOTE]: Start connection to "tcp://127.0.0.1:25"
[19:24:12.94][047b4125] IMAP[DATA]: < 220 code-404.com ESMTP\r\n
[19:24:12.94][047b4125] IMAP[WARNING]: exception 'MailSo\Imap\Exceptions\ResponseNotFoundException' with message 'MailSo-Imap-Exceptions-ResponseNotFoundException (ImapClient.php ~ 1737)' in C:\inetpub\wwwcode404\webmail\libraries\MailSo\Imap\ImapClient.php:1737
Stack trace:
#0 C:\inetpub\wwwcode404\webmail\libraries\MailSo\Imap\ImapClient.php(1830): MailSo\Imap\ImapClient->validateResponse(false)
#1 C:\inetpub\wwwcode404\webmail\libraries\MailSo\Imap\ImapClient.php(151): MailSo\Imap\ImapClient->parseResponseWithValidation('*', true)
#2 C:\inetpub\wwwcode404\webmail\libraries\afterlogic\common\managers\users\manager.php(466): MailSo\Imap\ImapClient->Connect('127.0.0.1', 25, 0)
#3 C:\inetpub\wwwcode404\webmail\libraries\afterlogic\common\managers\webmail\manager.php(141): CApiUsersManager->createAccount(Object(CAccount), true)
#4 C:\inetpub\wwwcode404\webmail\libraries\afterlogic\common\managers\integrator\manager.php(812): CApiWebmailManager->createAccount('support@code-40...', 'XXXXXXXXXX', '', Array)
#5 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Actions.php(2884): CApiIntegratorManager->loginToAccount('support@code-40...', 'XXXXXXX', '', '')
#6 [internal function]: ProjectCore\Actions->AjaxSystemLogin()
#7 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Service.php(340): call_user_func(Array)
#8 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Boot.php(12): ProjectCore\Service->Handle()
#9 C:\inetpub\wwwcode404\webmail\index.php(104): include('C:\\inetpub\\wwwc...')
#10 {main}
[19:24:12.94][047b4125] Exception[1011]: Can't connect to mail server
~ /libraries/afterlogic/common/managers/users/manager.php (521)
----------------------------------------------------------------------
#0 C:\inetpub\wwwcode404\webmail\libraries\afterlogic\common\managers\webmail\manager.php(141): CApiUsersManager->createAccount(Object(CAccount), true)
#1 C:\inetpub\wwwcode404\webmail\libraries\afterlogic\common\managers\integrator\manager.php(812): CApiWebmailManager->createAccount('support@code-40...', 'XXXXXX', '', Array)
#2 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Actions.php(2884): CApiIntegratorManager->loginToAccount('support@code-40...', 'XXXXXXXX', '', '')
#3 [internal function]: ProjectCore\Actions->AjaxSystemLogin()
#4 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Service.php(340): call_user_func(Array)
#5 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Boot.php(12): ProjectCore\Service->Handle()
#6 C:\inetpub\wwwcode404\webmail\index.php(104): include('C:\\inetpub\\wwwc...')
#7 {main}
[19:24:12.94][047b4125] IMAP[NOTE]: Disconnected from "tcp://127.0.0.1:25" (success)


Account failing to login with "only already registered users can access webmail" Enabled

[19:16:02.67][4deb71c7] [POST(7)][ip:173.169.137.135] /webmail/?/Ajax/
[19:16:02.67][4deb71c7] POST > [Action, Email, IncLogin, IncPassword, SignMe, AccountID, Token]
[19:16:02.67][4deb71c7]
[19:16:02.67][4deb71c7] AJAX: Action: SystemLogin
[19:16:02.67][4deb71c7] DB(PDO/mysql) : start connect to root@127.0.0.1
[19:16:02.67][4deb71c7] DB : PDO(mysql:dbname=webmail;host=127.0.0.1;charset=utf8)
[19:16:02.68][4deb71c7] DB : connected to root@127.0.0.1
[19:16:02.68][4deb71c7] 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`, `allow_mail`, `is_password_specified` FROM awm_accounts WHERE `def_acct` = 1 AND `email` = 'support@code-404.com'
[19:16:02.68][4deb71c7] DB[2] > SELECT `id_domain`, `id_tenant`, `disabled`, `name`, `url`, `override_settings`, `is_internal`, `is_default_for_tenant`, `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`, `allow_open_pgp`, `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`, `default_tab` FROM awm_domains WHERE `name` = 'code-404.com'
[19:16:02.68][4deb71c7] Exception[1504]: Unknown error
~ /libraries/afterlogic/common/managers/webmail/manager.php (165)
----------------------------------------------------------------------
#0 C:\inetpub\wwwcode404\webmail\libraries\afterlogic\common\managers\integrator\manager.php(812): CApiWebmailManager->createAccount('support@code-40...', 'XXXXX', '', Array)
#1 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Actions.php(2884): CApiIntegratorManager->loginToAccount('support@code-40...', 'XXXXX', '', '')
#2 [internal function]: ProjectCore\Actions->AjaxSystemLogin()
#3 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Service.php(340): call_user_func(Array)
#4 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Boot.php(12): ProjectCore\Service->Handle()
#5 C:\inetpub\wwwcode404\webmail\index.php(104): include('C:\\inetpub\\wwwc...')
#6 {main}
[19:16:02.68][4deb71c7] Event: support@code-404.com > login-failed
[19:16:02.68][4deb71c7] exception 'CApiManagerException' with message 'Unknown error' in C:\inetpub\wwwcode404\webmail\libraries\afterlogic\common\managers\webmail\manager.php:165

Stack trace:
#0 C:\inetpub\wwwcode404\webmail\libraries\afterlogic\common\managers\integrator\manager.php(812): CApiWebmailManager->createAccount('support@code-40...', 'XXXXXX', '', Array)
#1 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Actions.php(2884): CApiIntegratorManager->loginToAccount('support@code-40...', 'XXXXXXX', '', '')
#2 [internal function]: ProjectCore\Actions->AjaxSystemLogin()
#3 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Service.php(340): call_user_func(Array)
#4 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Boot.php(12): ProjectCore\Service->Handle()
#5 C:\inetpub\wwwcode404\webmail\index.php(104): include('C:\\inetpub\\wwwc...')
#6 {main}

Next exception 'ProjectCore\Exceptions\ClientException' with message 'ClientException' in C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Actions.php:2923
Stack trace:
#0 [internal function]: ProjectCore\Actions->AjaxSystemLogin()
#1 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Service.php(340): call_user_func(Array)
#2 C:\inetpub\wwwcode404\webmail\libraries\ProjectCore\Boot.php(12): ProjectCore\Service->Handle()
#3 C:\inetpub\wwwcode404\webmail\index.php(104): include('C:\\inetpub\\wwwc...')
#4 {main}
[19:16:02.68][4deb71c7] DB : disconnect from root@127.0.0.1

Account login successful from first account that ever logged in "only already registered users can access webmail enabled/disabled, works either way"

[19:14:32.52][14c796d2] IMAP[NOTE]: Start connection to "tcp://127.0.0.1:143"
[19:14:32.52][c099b6f5] DB : disconnect from root@127.0.0.1
[19:14:32.52][14c796d2] IMAP[DATA]: < * OK IMAPrev1\r\n
[19:14:32.52][14c796d2] IMAP[DATA]: > TAG1 CAPABILITY\r\n
[19:14:32.52][14c796d2] IMAP[DATA]: < * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk\r\n
[19:14:32.52][14c796d2] IMAP[DATA]: < TAG1 OK CAPABILITY completed\r\n
[19:14:32.52][14c796d2] IMAP[SECURE]: > TAG2 LOGIN "androbourne@code-404.com" "********"\r\n
[19:14:32.52][14c796d2] IMAP[DATA]: < TAG2 OK LOGIN completed\r\n
[19:14:32.52][14c796d2] IMAP[DATA]: > TAG3 STATUS "Trash" (MESSAGES UNSEEN UIDNEXT)\r\n
[19:14:32.53][14c796d2] IMAP[DATA]: < * STATUS "Trash" (MESSAGES 40 UNSEEN 6 UIDNEXT 41)\r\n
[19:14:32.53][14c796d2] IMAP[DATA]: < TAG3 OK Status completed\r\n
[19:14:32.53][14c796d2] INFO[MEMORY]: Memory peak usage: 3MB
[19:14:32.53][14c796d2] INFO[TIME]: Time delta: 0.056562900543213
[19:14:32.53][14c796d2] DB : disconnect from root@127.0.0.1
[19:14:32.53][14c796d2] IMAP[DATA]: > TAG4 LOGOUT\r\n
[19:14:32.53][14c796d2] IMAP[DATA]: < * BYE Have a nice day\r\n
[19:14:32.53][14c796d2] IMAP[DATA]: < TAG4 OK Logout completed\r\n
[19:14:32.53][14c796d2] IMAP[NOTE]: Disconnected from "tcp://127.0.0.1:143" (success)


I also saw this line that suggests a problem in manager.php but I don't understand how I'm able to login with 1 user but none of the other users?!?!?! If there was a problem with that file, wouldn't it stop me from logging in on all accounts?!?!!?!? Any ideas here?

[19:16:02.68][4deb71c7] Event: support@code-404.com > login-failed
[19:16:02.68][4deb71c7] exception 'CApiManagerException' with message 'Unknown error' in C:\inetpub\wwwcode404\webmail\libraries\afterlogic\common\managers\webmail\manager.php:165
Back to Top View jdrag's Profile Search for other posts by jdrag
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 14 June 2016 at 3:34am | IP Logged Quote Igor

We've answered this request you've sent via HelpDesk:

Quote:
We believe that problem is somewhere in settings of androbourne account and code-404.com domain. We suppose that you created androbourne account in WebMail via adminpanel and specified port for this account while creating. If you created code-404.com domain in WebMail adminpanel maybe 25 port was somehow specified there or in default domain. Please check this values for domains in adminpanel.


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


Joined: 13 June 2016
Online Status: Offline
Posts: 2
Posted: 14 June 2016 at 6:06am | IP Logged Quote jdrag

Hello Igor,

That would be incorrect. code-404.com is simply a domain forwarding all traffic to my on site webserver. I did not create any accounts via webmails. All my accounts were created from hmail.

I have adjusted my values to different ports and domains, nothing resolves this issue and that does not explain why only androbourne@code-404.com logs in on port 143 while any other account is logging in with port 25...

If admin console was set to port 25, it should only be using that port correct?
Back to Top View jdrag's Profile Search for other posts by jdrag
 

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