Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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 - Horde and Squirrelmail Not Logging in for Addon domains and Alias domains

Discussion in 'E-mail Discussions' started by cwihost, Sep 26, 2005.

  1. cwihost

    cwihost Member

    Joined:
    Sep 9, 2001
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    306
    I am currently having a problem with SquirrelMail and Horde when logging into a email account in a addon or aliased domain. I have tried all of the basics, check horde log permissions, tried out Edge, Current, release and stable builds with no results. tried deleting and recreating the email address change dthe main accounts password, ran updatenow, resetimappasswds, mailperm etc

    I am getting the folloing in horde:

    Notice: (null)(): Retrying LOGIN authentication after AUTHENTICATE LOGIN failed (errflg=1) in Unknown on line 0

    Notice: (null)(): Retrying LOGIN authentication after AUTHENTICATE LOGIN failed (errflg=1) in Unknown on line 0

    Notice: (null)(): Can not authenticate to IMAP server: AUTHENTICATE LOGIN failed (errflg=2) in Unknown on line 0


    I get the following in squirrelmail:

    ERROR
    Unknown user or password incorrect


    Logging in with Neomail is ok

    Again this only happens on aliased domains or addon domains.
     
  2. saver0

    saver0 Member

    Joined:
    Jul 18, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
  3. qwerty

    qwerty Well-Known Member

    Joined:
    Jan 21, 2003
    Messages:
    214
    Likes Received:
    1
    Trophy Points:
    166
    having the same problem but with all domains ... what is going on?
     
  4. Renjith Rajan

    Renjith Rajan Member

    Joined:
    Aug 22, 2004
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    This issue is happening in many servers and after some research we found that the symlinks passwd.domain.com,shadow.domain.com and the uid.domain.com.gid.domain.com files in /etc/vmail are missing.

    take a domain having issue and run the following command

    cd /etc/vmail
    ls -l|grep domain.com

    You should see something like this

    -rw-r--r-- 1 root root 5 Sep 30 22:52 gid.domain.com
    lrwxrwxrwx 1 root root 34 Sep 30 22:30 passwd.domain.com -> /home/user/etc/domain.com/passwd
    lrwxrwxrwx 1 root root 34 Sep 30 22:30 shadow.domain.com -> /home/user/etc/domain.com/shadow
    -rw-r--r-- 1 root root 5 Sep 30 22:52 uid.domain.com
    -rw-r--r-- 1 root root 0 Sep 30 22:30 vhost.domain.com

    If you are missing the above files, you can't login via imap

    We fixed the issue using the following method.

    touch /etc/passwd
    /scripts/updateuserdomains
     
    #4 Renjith Rajan, Sep 30, 2005
    Last edited: Sep 30, 2005
  5. bking

    bking Well-Known Member

    Joined:
    Mar 1, 2004
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Sydney
    Excellent work.
    Now the question is, why were the links missing?
     
  6. iCARus

    iCARus Well-Known Member

    Joined:
    Apr 8, 2003
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    166
    We see all those files and still doesnt work. We allready upcp and nothing.
    Any changes or fix ?

    Regards.
     
  7. netlook

    netlook Well-Known Member
    PartnerNOC

    Joined:
    Mar 25, 2004
    Messages:
    335
    Likes Received:
    0
    Trophy Points:
    166
    Try this.

    1. backup vmail dir if things go wrong

    mv /etc/vmail /etc/vmail-bak

    2. run /scripts/updateuserdomains

    If something went wrong, simply rm -rf /etc/vmail and mv /etc/vmail-bak /etc/vmail.

    Thanks
     
  8. Harryhood

    Harryhood Well-Known Member

    Joined:
    Jun 3, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Gamehenge
    Thanks for posting this suggestion/fix. Resolved the issue on one server for me.
     
  9. MediaServe

    MediaServe Well-Known Member
    PartnerNOC

    Joined:
    Apr 9, 2004
    Messages:
    130
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Nashville, TN USA
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    We're experiencing this issue, but none of the suggestions in this thread have helped.

    In addition to being unable to access webmail for an addon domain's mailboxes, neither can the user access his/her mailbox via mail client software.

    Additionally, the mailboxes are not receiving email.

    Any ideas?
     
  10. saver0

    saver0 Member

    Joined:
    Jul 18, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Same problem here..
     
  11. saver0

    saver0 Member

    Joined:
    Jul 18, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Check to see The IP= is correct in /var/cpanel/users/<username> this was the problem in my case.

    Good luck
     
  12. simplestar

    simplestar Well-Known Member

    Joined:
    Nov 15, 2005
    Messages:
    97
    Likes Received:
    0
    Trophy Points:
    156
    Thank you!!! It's fixed :D I nearly killed my server in the process, trying everything to fix this. The 2 problems I had were SMTP and the inability to login to Webmail.

    Among 50 other things, the last few things I did that actually repaired it, was to upgrade to Edge which fixed the SMTP problem and after that, doing the 3 checks/fixes above. Webmail's is FIXED!
     
  13. olliemaitland

    olliemaitland Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    156
    Thanks, saved me going through symlinking them all..after reading the updateuserdomains script i only got the touch /etc/passwd bit :)
     
  14. guilliam

    guilliam Member

    Joined:
    Feb 9, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Sunny City Cebu, Philippines!
    this one works for me.. just in case those looking for what works with what. just upgraded my VPS and got the dreaded errors. now works fine.

    - g
     
  15. Gilfil

    Gilfil Member

    Joined:
    Sep 5, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151

    Thanks !!

    Worked for me.
     
  16. touma

    touma Member

    Joined:
    Apr 13, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    São Paulo - Brasil

    Worked for me!
    Thanks! :)
     
  17. Adrnalnrsh

    Adrnalnrsh Well-Known Member

    Joined:
    Apr 6, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    AZ
    Worked for me tooooooo! I just ran into this issues and had it resolved in 5 minutes due to this post. Thanks!
     
  18. guilliam

    guilliam Member

    Joined:
    Feb 9, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Sunny City Cebu, Philippines!
    great to see a very helpful post. :)

    - g
     
  19. UraniumWeb

    UraniumWeb Member

    Joined:
    Oct 15, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    Thanks Guilliam - this fix worked for me:

    cp /usr/local/cpanel/3rdparty/bin/imapd /usr/sbin

    along with a restart of imapd/exim.
     
  20. rajanichand

    rajanichand Active Member

    Joined:
    Mar 17, 2004
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
Loading...

Share This Page