[Dovecot] IMAP and SMTP Authentication

Roderick A. Anderson raanders at acm.org
Tue Oct 7 20:06:19 EEST 2008


Timo Sirainen wrote:
> 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.

This appears to be the problem.  So much for copy and paste then modify 
from a bunch of different examples!  8-|

Now I can log into Dovecot (IMAP) and send mail to the accounts 
(Postfix/Dovecot AUTH).

Thanks Timo.


Rod
-- 

>> 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.



More information about the dovecot mailing list