[Dovecot] IMAP and SMTP Authentication

Timo Sirainen tss at iki.fi
Tue Oct 7 18:36:54 EEST 2008


On Oct 7, 2008, at 6:33 PM, Roderick A. Anderson wrote:

> Oct  7 08:17:20 mx0 dovecot: auth(default): passwd-file(info at aesoft-sbcs.com 
> ,66.193.34.88): unknown user

It's looking up info at aesoft-sbcs.com from the file.

> info:{PLAIN}crap:5000:5000::/var/mail/vhosts/aesoft-sbcs.com/info

But you have only info there. So either change it here, or:

>  passdb:
>    driver: passwd-file
>    args: /var/mail/vhosts/%d/passwd

 From http://wiki.dovecot.org/AuthDatabase/PasswdFile:

username_format=<s>: Look up usernames using this format instead of  
the full username (%u). If you want to enable user at domain logins but  
have only "user" in the file, set this to %n.

So use:

passdb passwd-file {
   args = username_format=%n /var/mail/vhosts/%d/passwd
}

-------------- 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/8f12641c/attachment.bin 


More information about the dovecot mailing list