The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Webmail login Error

Discussion in 'E-mail Discussions' started by Newfound, Jul 14, 2010.

  1. Newfound

    Newfound Registered

    Joined:
    Jul 14, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    When go to the cpanel account then go to access webmail I enter the password and it brings me to the screen to pick between Horde, Squirell Mail, or Roundcube. Then when I chose one it brings me to the login screen for all of them. I try logging in and it says login fails. But horde says:

    Notice: Unknown: SECURITY PROBLEM: insecure server advertised AUTH=PLAIN (errflg=1) in Unknown on line 0

    Notice: Unknown: Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. (errflg=1) in Unknown on line 0

    Notice: Unknown: SECURITY PROBLEM: insecure server advertised AUTH=PLAIN (errflg=1) in Unknown on line 0

    Notice: Unknown: Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. (errflg=1) in Unknown on line 0

    Notice: Unknown: SECURITY PROBLEM: insecure server advertised AUTH=PLAIN (errflg=1) in Unknown on line 0

    Notice: Unknown: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Authentication failed. (errflg=2) in Unknown on line 0

    any ideas?
     
  2. Miraenda

    Miraenda Well-Known Member

    Joined:
    Jul 28, 2004
    Messages:
    242
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Coralville, Iowa USA
    Could you also check in /var/cpanel/horde/log/errors for the errors showing there? If Roundcube is likewise having an issue, there's an error log for it at /var/cpanel/roundcube/log/errors that would be helpful. Those logs might provide more details on specifically what's happening.

    Also, is this only impacting one email account on one domain, on all email accounts on one domain, or on all emails accounts on all domains?

    You might try running /scripts/fullhordereset --force in root SSH, but it's better to see what the set errors are first to track down the specific issue here. It seems to be an authentication issue for the account, which usually points to either incorrect permissions or ownership on /home/username/etc/ folder (or the folders or files within that folder). If all domains are impacted, though, then it isn't incorrect permissions but instead something else.
     
    #2 Miraenda, Jul 14, 2010
    Last edited: Jul 14, 2010
  3. Newfound

    Newfound Registered

    Joined:
    Jul 14, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Well I have checked another domain and email and it works fine. But all the email accounts on this specific domain do not work.

    Ill have the error reports tomorrow though if they are still needed.

    If it is only permissions what would I have to do to fix this?
     
  4. Miraenda

    Miraenda Well-Known Member

    Joined:
    Jul 28, 2004
    Messages:
    242
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Coralville, Iowa USA
    Here are the permissions for each level of the /home/username/etc per one of my own accounts:

    /home/user/etc permissions

    Code:
    drwxr-x---   6 user mail   4.0K Jan 28 15:27 etc
    /home/user/etc/domain.com permissions

    Code:
    drwxr-x---   5 user mail  4.0K Jul  9 12:50 domain.com
    /home/user/etc/domain.com permissions inside the folder

    Code:
    drwx--x--x  4 user user 4.0K Apr 10 15:52 admin
    drwx--x--x  3 user user 4.0K Apr 10 15:52 cpacct
    -rw-r--r--  1 user mail   152 Feb 24 13:23 passwd
    -rw-r--r--  1 user user 1.9K Feb 24 13:23 passwd,v
    drwxr-x---  2 user mail  4.0K Feb 24 13:24 @pwcache
    -rw-r--r--  1 user user   33 Feb 24 13:23 quota
    -rw-r--r--  1 user user  387 Feb 24 13:23 quota,v
    -rw-r-----  1 user mail   107 Apr 10 16:00 shadow
    -rw-r-----  1 user user 2.0K Feb 24 13:23 shadow,v
    Please note the ownership permissions really matter quite a bit. The /home/user/etc, /home/user/etc/domain.com and /home/user/etc/domain.com/passwd, @pwcache and shadow all have user:mail permissions not user:user permissions.

    If your permissions and ownership are correct for each of these, then also cat the /home/user/etc/domain.com/passwd file to see if the accounts are listed there. Sometimes they are missing. If they are indeed missing, then you will have to remove and re-create the accounts to restore the data. You can copy the /home/user/mail/domain.com/emailuser folder to a backup before removing the account, then restore the contents of that folder so that you don't lose the data, though.
     
Loading...

Share This Page