[Dovecot] Double mysql auth problem

Timo Sirainen tss at iki.fi
Tue Mar 31 19:13:36 EEST 2009


On Mar 30, 2009, at 9:00 AM, Sebastian Chociwski wrote:

> auth default {
> passdb sql {
>  args = /etc/dovecot/dovecot-mysql.conf
> }
>
> userdb static {
>  args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
> }
> }
> auth secondary {
> passdb sql {
>  args = /etc/dovecot/dovecot-mysql2.conf
> }
> userdb static {
>  args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
> }
> }

1) Don't use two auth {} blocks. It doesn't work the way you think it  
does.

2) You can put multiple passdbs and userdbs inside the same auth  
block, but you can't put two userdb statics there. The first one will  
always match all users. But since they both are identical it doesn't  
matter, just put it there once.



More information about the dovecot mailing list