[Dovecot] Authentication issue.
dmitri tchernov
mitia.tchernov at gmail.com
Fri Dec 17 20:27:03 EET 2010
On Fri, Dec 17, 2010 at 7:15 PM, Pascal Volk <
user+dovecot at localhost.localdomain.org<user%2Bdovecot at localhost.localdomain.org>
> wrote:
> On 12/17/2010 07:07 PM dmitri tchernov wrote:
>
>
> > # 2.0.2: /etc/dovecot/dovecot.conf
> > # OS: Linux 2.6.34.6-xxxx-grs-ipv6-64 x86_64 Ubuntu 10.10 ext4
> > auth_debug = yes
> > auth_mechanisms = plain login
> > disable_plaintext_auth = no
> > log_timestamp = "%Y-%m-%d %H:%M:%S "
> > mail_debug = yes
> > mail_location = dbox:/mnt/dovecot/users/%n
> > mail_privileged_group = mail
> > mbox_read_locks = fcntl dotlock
> > mbox_write_locks = fcntl dotlock
> > mmap_disable = yes
> > passdb {
> > args = /mnt/dovecot/userlist.passwd
> > driver = passwd-file
> > }
> > passdb {
> > driver = pam
> > }
> > protocols = imap pop3
> > service auth {
> > unix_listener auth-master {
> > mode = 0600
> > user = doveusers
> > }
> > user = root
> > }
> > ssl = no
> > userdb {
> > args = /mnt/dovecot/userlist.passwd
> > driver = passwd-file
> > }
> > protocol pop3 {
> > pop3_uidl_format = %08Xu%08Xv
> > }
> > protocol lda {
> > auth_socket_path = /var/run/dovecot/auth-master
> > postmaster_address = my-email at gmail.com
> > }
> >
>
> There is no userdb { driver = passwd } (please show `doveconf userdb`
> output).
>
# /usr/bin/doveconf userdb
userdb {
args = /mnt/dovecot/userlist.passwd
driver = passwd-file
}
You can use doveadm to see if a user exists (if dovecot will find it in
> the userdb): http://wiki2.dovecot.org/Tools/Doveadm/User
>
>
Well spotted, an UTF-8 character was in the file at the wrong place. I had:
# doveadm user test00001
userdb lookup: user test00001 doesn't exist
And now:
# doveadm user test00001
userdb: test00001
uid : 1001
gid : 1001
# dovecot reload
#
I run the imaptest with user test00001, and I have the following lines in
/var/log/mail.log:
Dec 17 19:22:48 dovecot: auth: Debug: client in:
AUTH#0111#011PLAIN#011service=imap#011secured#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=49371#011resp=<hidden>
Dec 17 19:22:48 dovecot: auth: Debug: passwd-file(test00001,127.0.0.1):
lookup: user=test00001 file=/mnt/dovecot/userlist.passwd
Dec 17 19:22:48 dovecot: auth: passwd-file(test00001,127.0.0.1): Password
mismatch
Dec 17 19:22:48 dovecot: auth: Debug: pam(test00001,127.0.0.1): lookup
service=dovecot
Dec 17 19:22:48 dovecot: auth: Debug: pam(test00001,127.0.0.1): #1/1 style=1
msg=Password:
Dec 17 19:22:50 dovecot: auth: pam(test00001,127.0.0.1): pam_authenticate()
failed: Authentication failure (password mismatch?)
Dec 17 19:22:52 dovecot: last message repeated 9 times
Dec 17 19:22:52 dovecot: auth: Debug: client out:
FAIL#0111#011user=test00001
Dec 17 19:22:52 dovecot: last message repeated 9 times
Dec 17 19:22:52 dovecot: imap-login: Disconnected (auth failed, 1 attempts):
user=<test00001>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=0,
secured
# doveadm auth test00001 <the password supplied in userlist.passwd for this
user>
passdb: test00001 auth succeeded
extra fields:
user=test00001
> See also: http://wiki2.dovecot.org/Tools/Doveadm/Auth
>
>
> Regards,
> Pascal
> --
> The trapper recommends today: f007ba11.1035119 at localdomain.org
>
More information about the dovecot
mailing list