About mail_inbox_path and mail location
Hi!
We've been noticing that many people are configuring mail_inbox_path.
I assume that for most people this is because debian decided to include it in their default config, so that it would use /var/mail boxes for user INBOXes.
If your inbox *does not* reside in some weird location, you should *not* set this setting to any value, instead you can either ensure it's commented out, or set to empty value. IN PARTICULAR, IT IS **NOT** REQUIRED SETTING.
Setting it to some random weird value like '.' will just cause Problems, setting it to $MAIL_HOME/ or something else will just be either pointless or cause problems.
Some most common conversions (please adjust to your environment)
mail_home= /home/vmail/%u => mail_home = /home/vmail/%{user}
mail_home = /home/vmail/%d/%u => mail_home = /home/vmail/%{user|domain}/%{user|username} or some variant of this.
mail_location = maildir:~/ => mail_path = ~/ mail_driver = maildir
mail_location = maildir:/var/srv/foo/%d/%u => mail_path = /var/srv/foo/%{user|domain}/%{user|username} mail_driver = maildir
In addition you might want to convert
INDEX=~/.index => mail_index_path=~/.index
CONTROL=~/.control => mail_control_path=~/.control
LAYOUT=fs => mailbox_list_layout=fs
A minimal working config is
mail_home=/home/vmail/%{user} mail_driver=maildir mail_path=~/maildir mail_uid=vmail mail_gid=vmail
If you have settings like
namespace other { location = maildir:/foo/bar }
this converts into
namespace other { mail_path = /foo/bar
optional, if this is matches your top level
mail_driver = maildir }
Hope this clears out some of the confusion.
Aki
Hi Aki,
Thanks for these explanations, they really will help when I make my move to v2.4 as well, even though I'm a much simpler site.
"Aki" == Aki Tuomi via dovecot <dovecot@dovecot.org> writes:
Hi!
We've been noticing that many people are configuring mail_inbox_path.
I assume that for most people this is because debian decided to include it in their default config, so that it would use /var/mail boxes for user INBOXes.
If your inbox *does not* reside in some weird location, you should *not* set this setting to any value, instead you can either ensure it's commented out, or set to empty value. IN PARTICULAR, IT IS **NOT** REQUIRED SETTING.
Setting it to some random weird value like '.' will just cause Problems, setting it to $MAIL_HOME/ or something else will just be either pointless or cause problems.
Some most common conversions (please adjust to your environment)
mail_home= /home/vmail/%u => mail_home = /home/vmail/%{user}
mail_home = /home/vmail/%d/%u => mail_home = /home/vmail/%{user|domain}/%{user|username} or some variant of this.
mail_location = maildir:~/ => mail_path = ~/ mail_driver = maildir
mail_location = maildir:/var/srv/foo/%d/%u => mail_path = /var/srv/foo/%{user|domain}/%{user|username} mail_driver = maildir
In addition you might want to convert
INDEX=~/.index => mail_index_path=~/.index
CONTROL=~/.control => mail_control_path=~/.control
LAYOUT=fs => mailbox_list_layout=fs
A minimal working config is
mail_home=/home/vmail/%{user} mail_driver=maildir mail_path=~/maildir mail_uid=vmail mail_gid=vmail
If you have settings like
namespace other { location = maildir:/foo/bar }
this converts into
namespace other { mail_path = /foo/bar
optional, if this is matches your top level
mail_driver = maildir }
Hope this clears out some of the confusion.
Aki
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
participants (2)
-
Aki Tuomi
-
John Stoffel