Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Remote Connection Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mthosting
Newbie
Newbie
Avatar

Joined: 19 February 2014
Location: United Kingdom
Online Status: Offline
Posts: 6
Posted: 28 February 2014 at 10:08am | IP Logged Quote mthosting

Hi Guys,

I have Webmail Pro installed on a VPS, and a cPanel server installed on another VPS - I would like to link the two together and be able to use the Webmail Pro as a "front end" for the cpanel system.
It's all installed and configured, and I've changed the settings.xml file so that it authenticates against our server IP rather than local-host, however, we're getting "Permission Denied" from the logs:
-----
[18:14:32.39] AJAX: Action: Login
[18:14:32.39] DB(PDO/mysql) : start connect to [dbusername]@localhost
[18:14:32.39] DB : connected to [dbusername]@localhost
[18:14:32.39] 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` = '[EMAIL ADDRESS REMOVED]'
[18:14:32.39] 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` = '[DOMAIN NAME REMOVED]'
[18:14:32.40] DB[3] > SELECT COUNT(id_acct) as acct_count FROM awm_accounts
WHERE def_acct = 1 AND `email` = '[EMAIL ADDRESS REMOVED]' AND `mail_inc_login` = '[EMAIL ADDRESS REMOVED]' LIMIT 1
[18:14:32.40] DB[4] > SELECT COUNT(id_acct) as users_count FROM awm_accounts WHERE def_acct = 1
[18:14:32.41] IMAP[NOTE]: Start connection to "78.157.209.62:143"
[18:14:32.41] [PHP] /var/www/html/libraries/MailSo/Net/NetClient.php (line:201, code:2)
[18:14:32.41] [PHP] Error: fsockopen(): unable to connect to 78.157.209.62:143 (Permission denied)
[18:14:32.41] IMAP[NOTICE]: exception 'MailSo\Net\Exceptions\SocketCanNotConnectToHostException' with message 'Can't connect to host "78.157.209.62:143"' in /var/www/html/libraries/MailSo/Net/NetClient.php:206
Stack trace:
#0 /var/www/html/libraries/MailSo/Imap/ImapClient.php(141): MailSo\Net\NetClient->Connect('78.157.209.62', 143, 0)
#1 /var/www/html/libraries/afterlogic/common/managers/users/manager.php(410): MailSo\Imap\ImapClient->Connect('78.157.209.62', 143, 0)
#2 /var/www/html/libraries/afterlogic/common/managers/webmail/manager.php(112): CApiUsersManager->CreateAccount(Object(CAccount), true)
#3 /var/www/html/libraries/afterlogic/common/managers/integrator/manager.php(711): CApiWebmailManager->CreateAccountProcess('[EMAIL ADDRESS REMOVED]', '[PASSWORD REMOVED]', '', Array)
#4 /var/www/html/libraries/ProjectSeven/Actions.php(2180): CApiIntegratorManager->LoginToAccount('[EMAIL ADDRESS REMOVED]', '[PASSWORD REMOVED]', '', '')
#5 [internal function]: ProjectSeven\Actions->AjaxLogin()
#6 /var/www/html/libraries/ProjectSeven/Service.php(242): call_user_func(Array)
#7 /var/www/html/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#8 /var/www/html/index.php(71): include('/var/www/html/l...')
#9 {main}
[18:14:32.41] Exception[1004]: Authentication failed
~ /libraries/afterlogic/common/managers/users/manager.php (465)

--

Any idea how to fix this or make it work??

My problem was, installing this on its own cPanel account on the VPS worked well, although we are unable to change the apache hosts file for an individual account, and don't want to go breaking cPanel!

Cheers
S
Back to Top View mthosting's Profile Search for other posts by mthosting
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 03 March 2014 at 1:12am | IP Logged Quote Igor

According to the logs, this is merely about being unable to establish network connection over port 143 to the target system, most likely the issue is caused by a firewall or some other protective software.

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

Joined: 19 February 2014
Location: United Kingdom
Online Status: Offline
Posts: 6
Posted: 05 March 2014 at 1:25pm | IP Logged Quote mthosting

Hi Igor,

Is there someone I can talk to about this? I've investigated the whole Firewall blockings etc, and all Servers can ping each other, and the connection is true and fine, there is something else blocking it and we cant find what!

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


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

I understand you've opened HelpDesk ticket, so we'll proceed with this there.

--
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