Author |
|
thefatshizms Newbie
Joined: 13 July 2013
Online Status: Offline Posts: 3
|
Posted: 13 July 2013 at 5:00pm | IP Logged
|
|
|
I have my email setup and working on my vps (thefatshizms@sf-cnr.co.uk) I can email it (and see the emails) and send emails.. on webmin. I've installed afterlogic (lite) and I can't even login.. Says I have the incorrect pass/username
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 15 July 2013 at 1:24am | IP Logged
|
|
|
Enable logging in AdminPanel, reproduce the problem and check what's in the log. It should contain a response from mail server which would allow you to understand what's causing the problem.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
thefatshizms Newbie
Joined: 13 July 2013
Online Status: Offline Posts: 3
|
Posted: 16 July 2013 at 10:05am | IP Logged
|
|
|
Code:
[17:03:31.77] /mail/adminpanel/index.php?tab=domains
[17:03:31.77]
[17:03:31.77] DB : start connect to root@localhost
[17:03:31.77] DB : connected to root@localhost
[17:03:31.77] DB[1] > SELECT COUNT(id_domain) as domains_count FROM awm_domains
[17:03:31.77] DB[2] > SELECT id_domain, is_internal, name FROM awm_domains ORDER BY name ASC LIMIT 0, 19
[17:03:31.77] call CCommonModule->PopulateData->DomainsMain()
[17:03:31.77] call CWebMailModule->PopulateData->DomainsMain()
[17:03:31.77] DB : disconnect from root@localhost
[17:03:33.70] [POST(6)] /mail/index.php?/Ajax/
[17:03:33.70] POST > [Action, Email, IncLogin, IncPassword, SignMe, Token]
[17:03:33.70]
[17:03:33.70] AJAX: Action: Login
[17:03:33.70] DB : start connect to root@localhost
[17:03:33.71] DB : connected to root@localhost
[17:03:33.71] DB[1] > SELECT `id_acct`, `id_user`, `id_domain`, `id_tenant`, `deleted`, `def_acct`, `mailing_list`, `quota`, `quota_usage_bytes`, `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` = 'thefatshizms@sf-cnr.co.uk'
[17:03:33.71] 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`, `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` FROM awm_domains WHERE `name` = 'sf-cnr.co.uk'
[17:03:33.71] DB[3] > SELECT COUNT(id_acct) as acct_count FROM awm_accounts
WHERE def_acct = 1 AND `email` = 'thefatshizms@sf-cnr.co.uk' AND `mail_inc_login` = 'thefatshizms@sf-cnr.co.uk' LIMIT 1
[17:03:33.71] start connect to localhost:143
[17:03:33.71] connected
[17:03:33.72] NET < * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.\r\n
[17:03:33.72] NET > TAG1 LOGIN "thefatshizms@sf-cnr.co.uk" "*******"\r\n
[17:03:35.22] NET < TAG1 NO [AUTHENTICATIONFAILED] Authentication failed.\r\n
[17:03:35.22] disconnect from localhost:143
[17:03:35.22] Exception[1004]: Authentication failed
~ /libraries/afterlogic/common/managers/users/manager.php (329)
----------------------------------------------------------------------
#0 /var/www/html/mail/libraries/afterlogic/common/managers/webmail/manager.php(106): CApiUsersManager->CreateAccount(Object(CAccount), true)
#1 /var/www/html/mail/libraries/afterlogic/common/managers/integrator/manager.php(533): CApiWebmailManager->CreateAccountProcess('thefatshizms@sf...', '', '', Array)
#2 /var/www/html/mail/libraries/ProjectSeven/Actions.php(1503): CApiIntegratorManager->LoginToAccount('thefatshizms@sf...', '', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxLogin()
#4 /var/www/html/mail/libraries/ProjectSeven/Service.php(95): call_user_func(Array)
#5 /var/www/html/mail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#6 /var/www/html/mail/index.php(54): include('/var/www/html/m...')
#7 {main}
[17:03:35.22] Exception[1004]: Authentication failed
~ /libraries/afterlogic/common/managers/users/manager.php (329)
----------------------------------------------------------------------
#0 /var/www/html/mail/libraries/afterlogic/common/managers/webmail/manager.php(106): CApiUsersManager->CreateAccount(Object(CAccount), true)
#1 /var/www/html/mail/libraries/afterlogic/common/managers/integrator/manager.php(533): CApiWebmailManager->CreateAccountProcess('thefatshizms@sf...', '', '', Array)
#2 /var/www/html/mail/libraries/ProjectSeven/Actions.php(1503): CApiIntegratorManager->LoginToAccount('thefatshizms@sf...', '', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxLogin()
#4 /var/www/html/mail/libraries/ProjectSeven/Service.php(95): call_user_func(Array)
#5 /var/www/html/mail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#6 /var/www/html/mail/index.php(54): include('/var/www/html/m...')
#7 {main}
[17:03:35.23] DB : disconnect from root@localhost |
|
|
It's failing Authentication ..
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 16 July 2013 at 2:26pm | IP Logged
|
|
|
Well, according to response, received from your mail server, account credentials supplied are incorrect:
Code:
[17:03:33.72] NET > TAG1 LOGIN "thefatshizms@sf-cnr.co.uk" "*******"\r\n
[17:03:35.22] NET < TAG1 NO [AUTHENTICATIONFAILED] Authentication failed.\r\n |
|
|
and webmail client is merely relaying that message.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
thefatshizms Newbie
Joined: 13 July 2013
Online Status: Offline Posts: 3
|
Posted: 18 July 2013 at 7:49am | IP Logged
|
|
|
But yet I can send emails etc with the email without afterlogic??
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 19 July 2013 at 12:21am | IP Logged
|
|
|
It's not really about sending mails, it's about receiving them and accessing your account over IMAP. You can verify whether IMAP credentials are correct using telnet client, run the following in command prompt of your OS:
Code:
telnet your.imap.host 143 |
|
|
Once connection to IMAP server is established, log in as follows:
Code:
a login your@email yourPassword |
|
|
and see if you get the same message as the one in the logs of WebMail.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
MainStreetJames Newbie
Joined: 17 August 2013 Location: United States
Online Status: Offline Posts: 1
|
Posted: 17 August 2013 at 11:05pm | IP Logged
|
|
|
thefatshizms wrote:
I have my email setup and working on my vps (thefatshizms@sf-cnr.co.uk) I can email it (and see the emails) and send emails.. on webmin. I've installed afterlogic (lite) and I can't even login.. Says I have the incorrect pass/username |
|
|
thefatshizms,
I've run into something like this with a Webmin/Virtualmin install. It turns out that the default setting for creating an email user is username.domain rather than username@domain. For example, if you created a user 'test' and the domain is 'sf-cnr.co.uk' then the valid login for email in Webmail Lite would be test.sf-cnr (which can log into Webmail Lite but can't send mail properly and can't receive mail) rather than what you would expect (test@sf-cnr.co.uk). You can actually see the users listed this way in the 'IMAP / POP3 / FTP login' column of the site's user list.
Unfortunately you'll have to delete the user's account in Webmin/Virtualmin which will delete the email account and all the email. Be sure to backup the contents of the email folders so you can restore the folders later. There is a 'virtual mapping' option but I don't think it will fix this issue.
Here's how you change Webmin/Virtualmin to create email logins using the username@domain format:
- this needs to be done in Virtualmin (I couldn't find these settings in the Webmin options).
- select the desired virtual server in Virtualmin.
- expand the 'System Settings' section.
- select 'Server Templates'.
- select the template that is used to manage your domain (probably 'Default Settings').
- select 'Mail for domain' in the Template Section drop down list.
- at the very bottom is a setting 'Format for usernames that include domain'.
- change this to 'username@domain'.
- click on the 'Save' button.
Any new users you create after making this change will be able to log into Webmail Lite and be able to send & receive email properly (which they couldn't do if the logged in as username.domain).
Once you recreate the email user you can copy the old mail files into the newly created folders. You will probably have to change the permissions on the files you copy back in to the new mail folder. These will need to be changed to the new Linux user name (you'll see the new name as the owner of the mail directory in the 'homes' folder).
You can change the permission with the 'chown -R' command. In the example I used earlier you would navigate to the /home/sf-cnr/homes directory (assuming your Webmin install is using the 'home' directory for websites). From the command line (while in the /home/sf-cnr/homes directory) you would type in (without the quotes) 'chown -R test@sf-cnr.co.uk ./test' (this assumes the username of the newly created 'test' folder in the 'homes' folder is test@sf-cnr.co.uk).
I hope this helps.
MSJ
|
Back to Top |
|
|
|
|