auth(default): shadow([email protected],ip): unknown user after restore on server

ThomasK

Verified User
Joined
Apr 8, 2007
Messages
21
Location
Shanghai, China
Hi,

After a restore of a backup (i moved them to another DA server) the users cannot retreive their email anymore, i see the following error in the maillog:

auth(default): shadow([email protected],IP): unknown user
auth(default): passwd([email protected],IP): unknown user

The email is delivered to the correct mailbox as i can see the files on the filesystem. It's just POP3 and IMAP not beeing able to access it anymore.

Anyone have any clues where to start?

The mailusers are in the controlpanel and resetting their password does not fix the issue.

Thanks,

Thomas.
 
Looks like a configuration file error. Dovecot most likely shouldn't be searching either the shadow or passwd file for virtual users.

Jeff
 
Dovecot was installed, just ran this:

cd /usr/local/directadmin/custombuild
./build update
./build clean
./build dovecot d

No progression.

Anyone has a clue where to look?
 
Not sure but you might have to do ./build todovecot

Another thing is to verify your dovecot.conf is correct.

Make sure these lines look like this:

passdb passwd-file {
args = username_format=%n /etc/virtual/%d/passwd
}

userdb passwd {
}

userdb passwd-file {
args = username_format=%n /etc/virtual/%d/passwd
}

Make sure they arent pointing to another shadow file somewhere.
 
passdb passwd-file {
args = username_format=%n /etc/virtual/%d/passwd
}

userdb passwd {
}

userdb passwd-file {
args = username_format=%n /etc/virtual/%d/passwd
}

Checked this and it's okay. The passwd is there and these are the filerights:

total 28
-rw------- 1 mail mail 104 Dec 31 06:17 aliases
-rw------- 1 mail mail 0 Dec 31 06:17 autoresponder.conf
-rw-r----- 1 mail mail 396 Dec 31 06:17 filter
-rw------- 1 mail mail 48 Dec 31 06:17 filter.conf
drwxr-x--x 2 majordomo daemon 4096 Jan 5 15:32 majordomo
-rw------- 1 mail mail 670 Jan 5 15:32 passwd
-rw-r----- 1 mail mail 55 Jan 5 15:32 quota
drwx------ 2 mail mail 4096 Dec 31 06:17 reply
-rw------- 1 mail mail 0 Dec 31 06:17 vacation.conf

Also the test user that i created is in the passwd file.
 
Sorry to bump this thread but i cannot allow this to exist longer. There really seems a problem with new installs on Centos 64 bit. Just helped another user with similar problems as me that ran into after the fresh install (the permission issue).

I'm willing to pay for some actual support, unfortunately DA did not respond (yet) but i'm really in need for some advice and help.
 
@ThomasK:

We don't have any problem with new installs on 64-bit CentOS. Contact me via email (address below) for information on installing/reinstall exim & dovecot for you.

Jeff
 
Thanks for the help guys, DA support did the following job for me:

1) I found that the exim.conf wasn't patched for dovecot, so I patched it.

2) I ran:
./build todovecot

to convert all emails to their respective accounts.

As we are in opposite timezones communication takes a bit longer... :)

Just wanted to update this thread for future reference, still strange why my OOTB installation went wrong.

Thomas.
 
Back
Top