[Dovecot] passwd-file contents are not being used

Randolph Kahle randy at kahle.org
Thu Mar 29 14:02:45 EEST 2007


I am setting up my dovecot installation and I am not getting results  
that I expected for the authentication phase.

I expected:

     * PAM authentication would not be attempted

     * passwd-file would provide gid, uid, home, mail

I notice that even thought it appears that this information is  
returned from auth(default) in the IMAP(randykahle) phase, it is not  
using that information - it used uid=502, etc.



Here is my log output:

-----
Mar 29 05:59:08 kahle dovecot: auth(default): pam(randykahle, 
72.211.130.251): lookup service=dovecot
Mar 29 05:59:08 kahle dovecot: auth(default): pam(randykahle, 
72.211.130.251): pam_authenticate() failed: Authentication failure
Mar 29 05:59:08 kahle dovecot: auth(default): passwd-file /etc/ 
dovecot/userdb: Read 1 users
Mar 29 05:59:08 kahle dovecot: auth(default): passwd-file(randykahle, 
72.211.130.251): lookup: user=randykahle file=/etc/dovecot/userdb
Mar 29 05:59:08 kahle dovecot: auth(default): client out: OK     
1       user=randykahle home=/var/mail/vhosts/com.rosalita/ 
randy        mail=maildir:~/Maildir  uid=5000  gid=5000
Mar 29 05:59:08 kahle dovecot: auth(default): master in:  
REQUEST        26      11935   1
Mar 29 05:59:08 kahle dovecot: auth(default): passwd(randykahle, 
72.211.130.251): lookup
Mar 29 05:59:08 kahle dovecot: auth(default): master out: USER   
26      randykahle      system_user=randykahle  uid=502 gid=502 home=/ 
home/randykahle
Mar 29 05:59:08 kahle dovecot: IMAP(randykahle): Effective uid=502,  
gid=502, home=/home/randykahle
Mar 29 05:59:08 kahle dovecot: IMAP(randykahle): maildir: access(/ 
home/randykahle/Maildir, rwx): failed: No such file or directory
Mar 29 05:59:08 kahle dovecot: IMAP(randykahle): maildir: couldn't  
find root dir
Mar 29 05:59:08 kahle dovecot: IMAP(randykahle): mbox: root exists (/ 
home/randykahle/mail)
Mar 29 05:59:08 kahle dovecot: IMAP(randykahle): mbox: INBOX exists (/ 
var/mail/randykahle)
Mar 29 05:59:08 kahle dovecot: IMAP(randykahle): mbox: root=/home/ 
randykahle/mail, index=/home/randykahle/mail, inbox=/var/mail/randykahle
Mar 29 05:59:08 kahle dovecot: imap-login: Login: user=<randykahle>,  
method=PLAIN, rip=72.211.130.251, lip=72.249.22.55
Mar 29 05:59:11 kahle dovecot: IMAP(randykahle): open(/var/ 
mail/.temp.kahle.org.11965.76100dca2c5b2009) failed: Permission denied
Mar 29 05:59:11 kahle dovecot: IMAP(randykahle): file_lock_dotlock()  
failed with mbox file /var/mail/randykahle: Permission denied
Mar 29 05:59:16 kahle dovecot: IMAP(randykahle): Disconnected
-----

Here is my passwd-file user information line:

-----
randykahle:{plain}xxxxx:5000:5000::/var/mail/vhosts/com.rosalita/ 
randy::home=/var/mail/vhosts/com.rosalita/randy mail=maildir:~/ 
Maildir uid=5000 gid=5000
-----

Any tips on how to get the information in the passwd-file used by the  
IMAP process would be appreciated.

-- Randy




More information about the dovecot mailing list