Václav Haisman
2006-Mar-08 15:53 UTC
[Dovecot] Overriding inbox location in passwd-like file
Hi, I have some real users and some virtual users. The real users use mbox file as their inbox. 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 Mar 8 16:44:25 logout dovecot: child 41976 (imap) returned error 89 Is it even possible to override the setting from dovecot.conf like this? Vaclav Haisman -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 544 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20060308/0774e682/attachment.bin>
Timo Sirainen
2006-Apr-02 16:40 UTC
[Dovecot] Overriding inbox location in passwd-like file
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/mboxSo 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: signature.asc 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.bin>