[Dovecot] Overriding inbox location in passwd-like file

Timo Sirainen tss at iki.fi
Sun Apr 2 19:40:22 EEST 2006


On Wed, 2006-03-08 at 16:53 +0100, Václav Haisman wrote:
> But I'd like to use Maildir as inbox for the virtual users. (The reason
> is that I am actually moving some accounts from another server that
> already uses Maildir.) I'd like Dovecot to find Maildir in $HOME of my
> virtual users as their inbox. So I tried to use the following in my
> users.passwd file:
> 
> test:{PLAIN}some_password:30003:30003::/home/vmail/domain/test:/bin/false::maildir:%h/Maildir/:INBOX=maildir:%h/Maildir/
> 
> Unfortunatelly this doesn't work and dies with this message:
> 
> Mar  8 16:44:25 logout dovecot: imap(test): Ambiguous mail location
> setting, don't know what to do with it:
> /home/vmail/isc.cvut.cz/test/mbox (try prefixing it with mbox: or maildir:)
> Mar  8 16:44:25 logout dovecot: imap(test): Failed to create storage for
> '' with data: /home/vmail/isc.cvut.cz/test/mbox

So is this from default_mail_env? To me it looks like that entry should
have worked..

In beta4 I've also changed the format a bit (the old format should still
work too). With it you could try this:

test:{PLAIN}some_password:30003:30003::/home/vmail/domain/test:/bin/false:mail=maildir:%h/Maildir

There's no need to give :INBOX=%h/Maildir separately.

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


More information about the dovecot mailing list