Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Nov 2008
    Posts
    30

    Post Login to /webmail works, clients login fails

    Email login works perfectly when the user goes to domain.com/webmail. I require them to log in via SSL, so they get the "login with ssl" link that takes them to https://hostname:2096/cpsess...

    They see the three email clients, but each and every one of them reports a login failure and users cannot check their email. Ideas as to a setting that might be disabling this?

    Logging in by manually entering credientials stil fails in roundcube/squirrelmail

    edit: this is only happening to one user account..
    Last edited by itzhero; 02-24-2011 at 05:44 PM.

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Re: Login to /webmail works, clients login fails

    First, in the WebHost Manager, click Main >> Server Configuration >> Tweak Settings and click Save without making any changes, to make sure that valid configuration values are written to the php.ini files used by the Webmail clients. Try logging in to see if this has any effect on the problem.

    Next, make sure that the user is listed in only one file in /var/cpanel/users:

    Code:
    # grep $USER /var/cpanel/users/*
    The user should be mentioned in only one file. Next, make sure that there is a passwd and shadow file for the domain:

    Code:
    # ls -alh /$HOME/$USER/etc/$DOMAIN/
    View the contents of the domain's passwd and shadow file and make sure that the user is listed in both.

    In my examples above, the variables are defined as follows:
    • $HOME = the home directory, usually /home but not always
    • $USER = the cPanel username
    • $DOMAIN = the domain name in question

    There can be different reasons for the behavior you described, and we can usually correct this type of issue relatively quickly if you submit a ticket.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Member
    Join Date
    Nov 2008
    Posts
    30

    Default Re: Login to /webmail works, clients login fails

    I've done all the above and checked for what should be there. It all matches what you said should be there. Submitting a support ticket! Thank you

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Login to /webmail works, clients login fails

    Can you also try running (for anyone in the future who has this issue) the following command:

    Code:
    /scripts/whoowns domain.com
    Above please replace domain.com with the domain name for the account that isn't working. I've seen people manually add a domain to /var/cpanel/users/username file before and it still isn't properly owned, which causes it to fail on the whoowns check for the domain. That's why I always run "/scripts/whoowns domain.com" first before any other commands for a non-working email domain.

    Next, if you can post the support ticket ID# here, that would be helpful for us to check what the resolution happened to be.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Registered User
    Join Date
    Nov 2011
    Posts
    1
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: Login to /webmail works, clients login fails

    I realize this is an older thread, but it was the first one to pop up on most of the searching I did on this issue.

    For posterity
    Here is what I did to fix it:
    From the command line search the file /etc/userdomains for yourdomain.tld

    If it returns multiple entries along the lines of:
    yourdomain.tld: system
    mail.yourdomain.tld: youruser
    yourdomain.tld: youruser

    just edit the file with your favorite editor and either comment or remove the the line "yourdomain.tld: system"

    No other magic required!

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Login to /webmail works, clients login fails

    You cannot directly edit /etc/userdomains file without it possibly reverting whenever /scripts/updateuserdomains runs or during certain other processes. As such, this would only be a temporary bandage to an issue with your domain being owned by the wrong user.

    If your domain is showing that wrong ownership, first try moving all these files and running /scripts/updateuserdomains afterward:

    Code:
    mv /etc/userdomains /etc/userdomains.bak
    mv /etc/domainusers /etc/domainusers.bak
    mv /etc/trueuserdomains /etc/trueuserdomains.bak
    Again afterward, then you would run:

    Code:
    /scripts/updateuserdomains
    If the domain is still improperly owned, please go to /var/cpanel/users location and check for the domain name there:

    Code:
    grep domain.com /var/cpanel/users/*
    If it is showing the wrong ownership, remove the domain from the improperly owned file.

    Alternatively, if it is showing the wrong ownership due to having previously been the hostname, please go to WHM > Change Hostname and re-change the hostname by following all the steps to do so. Also, go to /var/cpanel/userdata/nobody location and ensure that the domain isn't listed there only the hostname is listed for any files.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    Member
    Join Date
    Jul 2010
    Posts
    16

    Default Re: Login to /webmail works, clients login fails

    I ran /scripts/whoowns $DOMAIN and it returns just a blank line. So, I'm assuming that's not correct. What's the process to now make the domain be owned correctly?

  8. #8
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Login to /webmail works, clients login fails

    The details I just provided above (here at Login to /webmail works, clients login fails) about moving the various /etc domain files, and then running /scripts/updateuserdomains would be the process to first try to fix it.

    If that doesn't fix it, then check /var/cpanel/users/username file to ensure the domain is properly listed there.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Replies: 6
    Last Post: 10-31-2009, 07:48 PM
  2. External Login to "webmail" for all hosted clients
    By designtech in forum E-mail Discussions
    Replies: 6
    Last Post: 06-09-2009, 01:48 PM
  3. webmail login fails for all users after account move
    By nyjimbo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-02-2009, 01:03 PM
  4. horde webmail login without cPanel login
    By desposito in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-25-2005, 05:31 PM
  5. how to login to clients CP
    By shann in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-27-2002, 03:14 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube