On Thu, 2008-05-15 at 08:56 +0300, Timo Sirainen wrote:
> On Fri, 2008-05-09 at 22:30 -0500, Glen Lee Edwards wrote:
> > I'm new to dovecott.  Using version 1.0.rc15.
> > 
> > I have a mail server that has both the old style unix mbox
> > in /var/mail/%u, and virtual mail maildir in /var/vmail/%d/%n.  Debian
> > Linux Etch stable.  I'm trying to get dovecot to deliver to /var/mail/%u
> > using mbox format, and to deliver to /var/vmail/%d/%n using maildir
> > format.  I can't get it do work.  I can get it to access both
> > directories, but not use the two formats.  This is what I tried last:
> 
> How would Dovecot know which one to use for which users?

Oh, you had sql and passwd users. So I assume you want sql users to use
maildir and passwd users to use mbox? In that case use:

mail_location = mbox:~/mail:INBOX=/var/mail/%u

And override it for sql users in dovecot-sql.conf:

user_query = select .., 'maildir:/var/mail/%d/%n' as mail, ..

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to