[Dovecot] unix style mbox and vmain maildir on the same server

Timo Sirainen tss at iki.fi
Thu May 15 09:00:22 EEST 2008


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080515/d78b3cc7/attachment.bin 


More information about the dovecot mailing list