[Dovecot] multiple authentication mechanisms, many problems

Jani Karlsson jani.karlsson at corded.org
Sun Jun 12 00:06:29 EEST 2005


dovecot: Jun 11 23:57:56 Info: auth(default): 
pam(testi at irkkaa.net,83.145.196.129): pam_authenticate() failed: 
Authentication failure


tried also debugging whats wrong with it, it queries ok, the password in 
the query is ok and everything. but it never replies +OK.
that connection just halts after PASS command. Tried IMAP, same result.

config: (dovecot.conf, PLAIN etc all enabled)

passdb pam {
    args = *
   }
passdb sql {
    args = /usr/local/etc/dovecot-mysql.conf
   }
userdb passwd {
}
userdb sql {
    args = /usr/local/etc/dovecot-mysql.conf
}


default_pass_scheme = PLAIN

password_query =
SELECT username as user, password FROM mailbox WHERE username = '%u'

user_query =
SELECT concat('/usr/local/virtual/',maildir) as home,
207 AS uid,208 AS gid FROM mailbox WHERE username = '%u'

postfixadmin-format mysql-DB, mails in 
/usr/local/virtual/user at domain/Maildir

Any ideas where stuff could go wrong?
Passwords in the MySQL are cleartext and checked that query returns 
right values. Yet authentication-phase just gets stuck.
System is hardned Gentoo-Linux (2.6.11r13-grsec)



More information about the dovecot mailing list