[Dovecot] Alternate mail_location prefix for homedir
Hi,
I'm switching from UW-imap to dovecot 2.0.1 and was wondering about the mail_location config:
mail_location = mbox:~/.:INBOX=/var/mail/%u
Notice '.' in '~/.' above. This seems to resolve the ~/mail problem when switching from UW-imap (ie, no 'mail' prefix).
doc/wiki/Migration.UW.txt doesn't mention using '~/.', so I was wondering whether there are any gotchas anyone can think of.
Thanks Henry
On Fri, 2010-09-03 at 12:37 +0200, Henry C. wrote:
Hi,
I'm switching from UW-imap to dovecot 2.0.1 and was wondering about the mail_location config:
mail_location = mbox:~/.:INBOX=/var/mail/%u
Notice '.' in '~/.' above. This seems to resolve the ~/mail problem when switching from UW-imap (ie, no 'mail' prefix).
doc/wiki/Migration.UW.txt doesn't mention using '~/.', so I was wondering whether there are any gotchas anyone can think of.
So I guess by "~/." you mean same as "~/" which is also the same as "~". The problem with that is, as always, that users can store mails everywhere in the home directory and there may be other non-mail files in there messing things up.
You can either keep it as it is now, or you could think that about finally cleaning things up along this switch. :) The other ways to solve the ~/mail problem is http://wiki2.dovecot.org/Namespaces#Backwards_Compatibility:_UW-IMAP
So I guess by "~/." you mean same as "~/" which is also the same as "~". The problem with that is, as always, that users can store mails everywhere in the home directory and there may be other non-mail files in there messing things up.
I understand and agree with your second sentence.
The issue though is that if I use '~' or '~/' without the '.' suffix I get the following error:
Error: user henry: Initialization failed: Initializing mail storage from mail_location setting failed: No home directory for system user. Can't expand ~ for mail root dir in: ~:INBOX=/var/mail/henry
It seems to have a problem expanding '~' or '~/', but not '~/.'
Regards Henry
participants (3)
-
Henry
-
Henry C.
-
Timo Sirainen