[Dovecot] authentication with userdb and passdb fails

Jure Lozar lists at madalbal.si
Sun Jan 24 18:19:35 EET 2010


Hello

I cannot retrieve mail via pop3 using dovecot. I have mail in my mailbox
(postfix works fine, maildir contains more then 5 mail files), I use
virtual user. I also changed auth to plaintext for debugging purpuse.

server:
Dovecot 1.0.7
CenoOS 5.4

client: Thunderbird on Kubuntu, username: jure at hrabri.org pass:jure


I tried different parameters and was closest to success with this:

Relevant parts from dovecot.conf:

auth default {
  mechanisms = plain login CRAM-MD5

  userdb passwd-file {
    args =   /home/vmail/%d/passwd
  }
  passdb passwd-file {
    args =   /home/vmail/%d/shadow
  }


log:

Jan 24 16:23:49 hermes dovecot: auth(default): new auth connection: pid=3304
Jan 24 16:23:51 hermes dovecot: auth(default): client in: AUTH  1
PLAIN   service=POP3    lip=::ffff:192.168.0.144
rip=::ffff:192.168.0.112        resp=
Jan 24 16:23:51 hermes dovecot: auth(default): client out: CONT 1
Jan 24 16:23:51 hermes dovecot: auth(default): client in: CONT  1
AGp1cmVAaHJhYnJpLm9yZwBqdXJl
Jan 24 16:23:51 hermes dovecot: auth(default): passwd-file
/home/vmail/hrabri.org/shadow: Read 1 users
Jan 24 16:23:51 hermes dovecot: auth(default):
passwd-file(jure at hrabri.org,::ffff:192.168.0.112): lookup: user=jure
file=/home/vmail/hrabri.org/shadow
Jan 24 16:23:51 hermes dovecot: auth(default): client out: OK   1
user=jure at hrabri.org
Jan 24 16:23:51 hermes dovecot: auth(default): master in: REQUEST
1       3300    1
Jan 24 16:23:51 hermes dovecot: auth(default):
passwd(jure at hrabri.org,::ffff:192.168.0.112): lookup
Jan 24 16:23:51 hermes dovecot: auth(default):
passwd(jure at hrabri.org,::ffff:192.168.0.112): unknown user
Jan 24 16:23:51 hermes dovecot: auth(default): passwd-file
/home/vmail/hrabri.org/passwd: Read 1 users
Jan 24 16:23:51 hermes dovecot: auth(default):
passwd-file(jure at hrabri.org,::ffff:192.168.0.112): lookup: user=jure
file=/home/vmail/hrabri.org/passwd
Jan 24 16:23:51 hermes dovecot: auth(default): master out: USER 1
jure at hrabri.org uid=501 gid=501
home=/home/vmail/hrabri.org/var/spool/mail/jure
Jan 24 16:23:51 hermes dovecot: pop3-login: Login:
user=<jure at hrabri.org>, method=PLAIN, rip=::ffff:192.168.0.112,
lip=::ffff:192.168.0.144
Jan 24 16:23:52 hermes dovecot: POP3(jure at hrabri.org): Disconnected:
Logged out top=0/0, retr=0/0, del=0/0, size=0


I don't really understand this log. Is says Client out: OK, and then
unknown user. Where? In passwd file? Adding domainname after username in
passwd only makes it worse. And why master in? I did not configure
master user.

Thanks for any help.

Jure




More information about the dovecot mailing list