[Dovecot] IMAP and SMTP Authentication
Timo Sirainen
tss at iki.fi
Tue Oct 7 19:20:43 EEST 2008
On Oct 7, 2008, at 7:16 PM, Roderick A. Anderson wrote:
>> So use:
>> passdb passwd-file {
>> args = username_format=%n /var/mail/vhosts/%d/passwd
>> }
> Well these did seem to be set correctly (I've been experimenting
> with different settings).
>
> Here is a portion of "dovecot -n" output
>
> passdb:
> driver: passwd-file
> args: /var/mail/vhosts/%d/passwd
> userdb:
> driver: passwd-file
> args: uid=vmail gid=vmail username_format=%n /var/mail/vhosts/%d/
> passwd
passwd-file has no such settings as uid and gid.
> Where does userdb and passdb each come into play?
Password is looked up from the passdb. After user is successfully
authenticated it looks up home directory, uid and gid from userdb.
> Should their settings be the same since I'm using one file?
Yes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081007/3c15b4fa/attachment.bin
More information about the dovecot
mailing list