[Dovecot] Multiple Mail Environments?
The default_mail_env is very powerful, but ....
If you have multiple databases wouldn't it make sense to have a separate mail environment for each database? For example:
userdb passwd { default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u }
# Linuxconf passwd-like file with specified location userdb passwd-file { args = /etc/vmail/passwd.%d default_mail_env = mbox:/vhome/%d/home/%n:INBOX=/vhome/%d/home/%n/INBOX:INDEX=/nobackup/imap-cache/%d-%n }
Is this possible? If not - perhaps it should be?
-- Marc Perkel - marc@perkel.com
Spam Filter: http://www.junkemailfilter.com My Blog: http://marc.perkel.com
Jakob Hirsch wrote:
use the "mail" arg.
but it doesn't always work as expected:
userdb static { args = uid=103 gid=104 home=/var/spool/vmail/%Lu mail=maildir:%h/Maildir }
The %h in mail= is ignored, so dovecot tries to use /Maildir/cur etc. "default_mail_env = maildir:%h/Maildir/" works.
Timo, could you look into this? Should be fixed before 1.0, I think.
On Sun, 2005-08-21 at 22:03 +0200, Jakob Hirsch wrote:
Jakob Hirsch wrote:
use the "mail" arg.
but it doesn't always work as expected:
userdb static { args = uid=103 gid=104 home=/var/spool/vmail/%Lu mail=maildir:%h/Maildir }
The %h in mail= is ignored, so dovecot tries to use /Maildir/cur etc. "default_mail_env = maildir:%h/Maildir/" works.
Timo, could you look into this? Should be fixed before 1.0, I think.
It's actually too much trouble to make it work. I'll just change the dovecot-example.conf not to use %h there. Should be just as easy to copy&paste the home from there to beginning of mail :)
participants (3)
-
Jakob Hirsch
-
Marc Perkel
-
Timo Sirainen