[Dovecot] A new director service in v2.0 for NFS installations

Brandon Davidson brandond at uoregon.edu
Tue Jun 1 02:59:06 EEST 2010


Timo,

On 5/31/10 4:36 PM, "Timo Sirainen" <tss at iki.fi> wrote:
> 
> The passdbs and userdbs are checked in the order they're defined. You could
> add them at the bottom. Or probably more easily:
> 
> local 128.223.143.138 {
>   passdb {
>     driver = sql
>     args = ..
>   }
> 
> passdb {
>   driver = pam
> }
> userdb {
>   driver = passwd
> }

Ahh, OK. For some reason I was assuming that the best match was used.
Unfortunately that doesn't seem to work either. I've got it set up just as
you recommended:

[root at cc-popmap7 ~]# cat /etc/dovecot/dovecot.conf | nl | grep -B1 -A4
passdb
    35    local 128.223.142.138 {
    36      passdb {
    37        driver = sql
    38        args = /etc/dovecot/proxy-sqlite.conf
    39      }
    40    }
    41    passdb {
    42      driver = pam
    43    }
    44    userdb {
    45      driver = passwd

It still doesn't respect the driver for that local block, and uses PAM for
everything:

May 31 16:48:16 cc-popmap7 dovecot: auth: Debug: client in: AUTH    1
PLAIN    service=imap    secured    lip=128.223.142.138
rip=128.223.162.22    lport=993    rport=57067    resp=<hidden>
May 31 16:48:16 cc-popmap7 dovecot: auth: Debug:
pam(brandond,128.223.162.22): lookup service=dovecot
May 31 16:48:16 cc-popmap7 dovecot: auth: Debug:
pam(brandond,128.223.162.22): #1/1 style=1 msg=Password:
May 31 16:48:16 cc-popmap7 dovecot: auth: Debug:
pam(brandond,128.223.162.22): #1/1 style=1 msg=LDAP Password:
May 31 16:48:16 cc-popmap7 dovecot: auth: Debug: client out: OK    1
user=brandond
May 31 16:48:16 cc-popmap7 dovecot: auth: Debug: master in: REQUEST    1
5652    1    d19a5592fd2206241cfc0ca658020b0b
May 31 16:48:16 cc-popmap7 dovecot: auth: Debug:
passwd(brandond,128.223.162.22): lookup
May 31 16:48:16 cc-popmap7 dovecot: auth: Debug: master out: USER    1
brandond    system_groups_user=brandond    uid=41027    gid=91
home=/home10/brandond
May 31 16:48:16 cc-popmap7 dovecot: imap-login: Login: user=<brandond>,
method=PLAIN, rip=128.223.162.22, lip=128.223.142.138, TLS, mailpid=5667

Interestingly enough, if I run 'doveconf -n' it doesn't seem to be retaining
the order I specified. The local section is dropped down to the very end:

[root at cc-popmap7 ~]# doveconf -n | nl | grep -B1 -A4 passdb
    31    }
    32    passdb {
    33      driver = pam
    34    }
    35    plugin {
    36      quota = fs:user:inode_per_mail
--
    82    local 128.223.142.138 {
    83      passdb {
    84        args = /etc/dovecot/proxy-sqlite.conf
    85        driver = sql
    86      }
    87    }

Ideas?

-Brad



More information about the dovecot mailing list