[Dovecot] multiple authentication mechanisms, many problems

Jani Karlsson jani.karlsson at corded.org
Tue Jun 14 13:24:23 EEST 2005


Timo Sirainen wrote:
> On Sun, 2005-06-12 at 00:06 +0300, Jani Karlsson wrote:
> 
>>dovecot: Jun 11 23:57:56 Info: auth(default): 
>>pam(testi at irkkaa.net,83.145.196.129): pam_authenticate() failed: 
>>Authentication failure
> 
> ..
> 
>>passdb pam {
>>    args = *
>>   }
>>passdb sql {
>>    args = /usr/local/etc/dovecot-mysql.conf
>>   }
>>userdb passwd {
>>}
>>userdb sql {
>>    args = /usr/local/etc/dovecot-mysql.conf
>>}
> 
> 
> Did you try that it works with just SQL, or with just PAM? The problem
> happens only if these both are defined? When it gets stuck, does it
> matter if the user is in PAM or SQL?
> 
> Is this with 1.0-stable or 1.0-test?
> 
1.0-test, I found the error it had... authentication was successfull, 
but it was trying to request /Maildir, although I had %h:%h/Maildir
I was wanting /Maildir for shell (unix) users and homedir/[cur,new,tmp] 
for SQL-users. It tried to access 
/usr/local/virtual/test at test.net//Maildir/ and was stuck in some loop 
until that connection timed out. After I fixed this error, I found 
another, already posted on the list:

http://dovecot.org/pipermail/dovecot/2005-May/007421.html

similiar problems with Gentoo on AMD64, 1.0-test72.. cannot 
create/move/such IMAP folders.
Error:
denied resource overstep by requesting 17189568512 for RLIMIT_AS against 
limit 536870912 for /usr/local/libexec/dovecot/imap[imap:23732] 
uid/euid:1156/1156 gid/egid:1156/1156, parent 
/usr/local/sbin/dovecot[dovecot:13204] uid/euid:0/0 gid/egid:0/0

Yet there is no limits, checked that twice.

Also, dovecot starts only random, if it has to do something (like 
correct /var/run/dovecot permissions, it will always start), somehow it 
races too fast too many connections to MySQL, resulting:
dovecot: Jun 14 12:46:45 Error: Auth process died too early - shutting down
dovecot: Jun 14 12:46:45 Info: auth(default): mysql: Connected to (null) 
(postfix)
dovecot: Jun 14 12:46:45 Error: auth(default): 
net_connect_unix(/var/run/dovecot/auth-worker.11918) failed: No such 
file or directory
dovecot: Jun 14 12:46:45 Error: child 11918 (auth) returned error 89

I find it yet not quite suitable for production use, as I can duplicate 
these exact same errors on another 64-bit (AMD64) Debian system.
I am wondering if is this something related to 64-bit CPUs.
Anyway, patches etc are welcome. Specially the dovecot starting randomly 
only is nasty, need to kill all processes manually and try again.


More information about the dovecot mailing list