[Dovecot] INBOX as mbox, other mailboxes as maildir
All,
I'm trying to teach dovecot to use the mbox format for /var/mail/%u and maildir for /home/%u/Mail/ but I'm having quite a hard time. This is Dovecot v1.0.beta3 under OpenBSD 3.9 on sparc64.
I've been fiddling with default_mail_env and also tried separate namespaces, but all to no avail. Here's some of the things I tried :
default_mail_env = maildir:/home/%u/Maildir:INBOX=mbox:/var/mail/%u ... default_mail_env = INBOX=mbox:/var/mail/%u:MAIL=maildir:/home/%u/Maildir/ ... namespace private { separator = / prefix = inbox = yes location = mbox:/var/mail/%u } namespace private { separator = / prefix = "Folders/" location = maildir:/home/%u/Mail } ...
But all it does is complain that my mbox files dont have a cur/ directory in them or create mbox-type files in /home/%u/mail/, in stead of saving my mail in a maildir under /home/%u/Mail/. So using namespaces doesn't seem to be such a good idea after all, I can have extra maildirs under Folders/ in ~/Mail, but that's not where my IMAP client saves its sent mail.
I'm quite obviously doing something wrong, is this possible at all ? What is the correct incantation for the default_mail_env setting for such a setup ?
Any clues would be greatly appreciated,
Cheers,
Paul 'WEiRD' de Weerd
--
++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+ +++++++++++>-]<.>++[<------------>-]<+.--------------.[-] http://www.weirdnet.nl/
Paul de Weerd wrote:
All,
I'm trying to teach dovecot to use the mbox format for /var/mail/%u and maildir for /home/%u/Mail/ but I'm having quite a hard time. This is Dovecot v1.0.beta3 under OpenBSD 3.9 on sparc64.
I've been fiddling with default_mail_env and also tried separate namespaces, but all to no avail. Here's some of the things I tried :
default_mail_env = maildir:/home/%u/Maildir:INBOX=mbox:/var/mail/%u ... default_mail_env = INBOX=mbox:/var/mail/%u:MAIL=maildir:/home/%u/Maildir/ ... namespace private { separator = / prefix = inbox = yes location = mbox:/var/mail/%u } namespace private { separator = / prefix = "Folders/" location = maildir:/home/%u/Mail } ...
I have this working with the following, from the wiki, on FreeBSD 6 and beta3 from ports.
default_mail_env = mbox:/var/mail/%u
# from http://wiki.dovecot.org/Namespaces # INBOX in /var/mail/username, maildir in ~/Maildir, other # mboxes in ~/mail under #ignore/ namespace
namespace private { separator = / inbox = yes prefix = "#ignore/" location = mbox:~/mail:INBOX=/var/mail/%u } namespace private { separator = / prefix = location = maildir:~/Maildir }
Squirrelmail displays the #ignore folders. Thunderbird hides them nicely.
Ron Wilhoite
On Fri, 2006-04-21 at 09:47 -0400, Ron Wilhoite wrote:
# from http://wiki.dovecot.org/Namespaces # INBOX in /var/mail/username, maildir in ~/Maildir, other # mboxes in ~/mail under #ignore/ namespace
namespace private { separator = / inbox = yes prefix = "#ignore/" location = mbox:~/mail:INBOX=/var/mail/%u } namespace private { separator = / prefix = location = maildir:~/Maildir }
Squirrelmail displays the #ignore folders. Thunderbird hides them nicely.
So, why aren't you also setting hidden=yes for the #ignore namespace so Squirrelmail doesn't show it?
Timo Sirainen wrote:
On Fri, 2006-04-21 at 09:47 -0400, Ron Wilhoite wrote:
# from http://wiki.dovecot.org/Namespaces # INBOX in /var/mail/username, maildir in ~/Maildir, other # mboxes in ~/mail under #ignore/ namespace
namespace private { separator = / inbox = yes prefix = "#ignore/" location = mbox:~/mail:INBOX=/var/mail/%u } namespace private { separator = / prefix = location = maildir:~/Maildir }
Squirrelmail displays the #ignore folders. Thunderbird hides them nicely.
So, why aren't you also setting hidden=yes for the #ignore namespace so Squirrelmail doesn't show it?
Because it's not in the wiki entry. ;) But I will try that - thanks for the suggestion.
participants (3)
-
Paul de Weerd
-
Ron Wilhoite
-
Timo Sirainen