Sorry, I tried to find this info on the wiki and in the docs, but couldn't quite figure it out. Dovecot 1.0rc8 introduced this change: "mbox:/var/mail/%u" no longer works as the mail location. You'll have to specify the mail root explicitly, just like the examples always have: "mbox:~/mail:INBOX=/var/mail/%u" If I need a custom INBOX location but the default behavior of using the first of [/ or ~/mail or ~/Mail] having a .imap subdirectory, how do I go about specifying that? That is, on my system, - inbox file: ~/Mailbox - mail storage dir: ~/mail OR ~/Mail (it varies by user) - all files are in mbox format Thanks, Mike
Timo Sirainen
2006-Dec-07 10:27 UTC
[Dovecot] default_mail_env/mail_location syntax changes
On Wed, 2006-12-06 at 16:39 -0700, Mike Brown wrote:> If I need a custom INBOX location but the default behavior of > using the first of [/ or ~/mail or ~/Mail] having a .imap subdirectory, > how do I go about specifying that?This has never been possible directly, but you could do this yourself with a script: mail_executable = /somewhere/imap.sh #!/bin/sh if [ -d ~/Mail ]; then export MAIL=mbox:~/Mail:INBOX=~/Maildir else export MAIL=mbox:~/mail:INBOX=~/Maildir fi exec /usr/local/libexec/dovecot/imap -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20061207/86e1c421/attachment.bin>