Webmail - Horde and Squirrelmail Not Logging in for Addon domains and Alias domains

cwihost

Member
Sep 9, 2001
24
0
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.
 

Renjith Rajan

Member
Aug 22, 2004
17
0
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
 
Last edited:

iCARus

Well-Known Member
Apr 8, 2003
113
0
166
We see all those files and still doesnt work. We allready upcp and nothing.
Any changes or fix ?

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

netlook

Well-Known Member
Mar 25, 2004
334
0
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
 

Harryhood

Well-Known Member
Jun 3, 2003
57
0
156
Gamehenge
netlook said:
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
Thanks for posting this suggestion/fix. Resolved the issue on one server for me.
 

MediaServe

Well-Known Member
PartnerNOC
Apr 9, 2004
141
10
168
Dallas, Texas
cPanel Access Level
DataCenter Provider
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?
 

saver0

Member
Jul 18, 2003
18
0
151
Check to see The IP= is correct in /var/cpanel/users/<username> this was the problem in my case.

Good luck
 

simplestar

Well-Known Member
Nov 15, 2005
97
0
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!
 

olliemaitland

Well-Known Member
Mar 13, 2004
52
0
156
Renjith Rajan said:
touch /etc/passwd
/scripts/updateuserdomains
Thanks, saved me going through symlinking them all..after reading the updateuserdomains script i only got the touch /etc/passwd bit :)
 

guilliam

Member
Feb 9, 2006
22
0
151
Sunny City Cebu, Philippines!
guilliam said:
Code:
cp /usr/local/cpanel/3rdparty/bin/imapd /usr/sbin
^^this one worked for me after trying all the results i got from the other threads. thanks to all the names who gave this fix.

btw.. for newbies(like me ;) ) after you run this on ssh,.. it will ask you if to overwrite, just type "y" then enter. thats it!

:)

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

Gilfil

Member
Sep 5, 2003
7
0
151
netlook said:
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

Thanks !!

Worked for me.
 

touma

Member
Apr 13, 2004
22
0
151
São Paulo - Brasil
netlook said:
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

Worked for me!
Thanks! :)
 

Adrnalnrsh

Well-Known Member
Apr 6, 2005
74
0
156
AZ
Worked for me tooooooo! I just ran into this issues and had it resolved in 5 minutes due to this post. Thanks!
 

UraniumWeb

Member
Oct 15, 2003
6
0
151
Thanks Guilliam - this fix worked for me:

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

along with a restart of imapd/exim.