[Dovecot] ~/.maildir preferable to %h/Maildir and ~/Maildir?
I have a recently deployed dovecot server and am readying another. Upon updating to rc12, I note the following change in the default dovecot.conf file:
-default_mail_env = mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u +mail_location = maildir:~/.maildir
Integrating this change to my local dovecot.conf:
# formerly used default_mail_env = maildir:%h/Maildir # dovecot default mail_location = maildir:~/.maildir mail_location = maildir:~/Maildir
With unix users of the form:
myuser:x:505:100:My User:/home/myuser:/sbin/nologin
each having ~/Maildir, should I:
use the ~/.maildir form over ~/Maildir.
use the ~ instead of %h
do anything for dovecot's benefit (reindex, etc.) besides a per-user 'mv ~/Maildir ~/.maildir' if 1).
I came straight from an ancient sendmail mbox setup to dovecot, so I want to do things the best-pracitce IMAP/dovecot way. Thanks.
On Sun, 2006-11-05 at 12:53 -0500, Jeff Kowalczyk wrote:
I have a recently deployed dovecot server and am readying another. Upon updating to rc12, I note the following change in the default dovecot.conf file:
-default_mail_env = mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u +mail_location = maildir:~/.maildir
Where did you get rc12? In my tarball there are still:
# mail_location = maildir:~/Maildir # mail_location = mbox:~/mail:INBOX=/var/mail/%u # mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
No "~/.maildir" anywhere, and I don't recommend using it either.
Timo Sirainen wrote:
Where did you get rc12? In my tarball there are still:
# mail_location = maildir:~/Maildir # mail_location = mbox:~/mail:INBOX=/var/mail/%u # mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
No "~/.maildir" anywhere, and I don't recommend using it either.
Ah, that's probably my fault to have gotten the update misquoted. I installed it from Gentoo ~x86, but my mistake likely comes from the shuffling of dovecot.conf to dovecot-orig.conf each time I install a dovecot update.
I have been trying to keep the contents of my dovecot.conf down to just the actual configuration directives used, and this gets clobbered by the etc-update.
Thanks for setting me straight. So to wrap up the subquestion, is ~ preferable to %h?
base_dir = /var/run/dovecot/ protocols = imap imaps pop3 pop3s listen = * shutdown_clients = yes log_path = /var/log/mail.log info_log_path = /var/log/mail.log log_timestamp = "%b %d %H:%M:%S " syslog_facility = mail disable_plaintext_auth = no ssl_disable = no ssl_cert_file = /etc/ssl/certs/dovecot.pem ssl_key_file = /etc/ssl/private/dovecot.pem login_chroot = yes login_user = dovecot mail_location = maildir:~/Maildir mail_extra_groups = mail mail_debug = yes protocol pop3 { pop3_uidl_format = %08Xu%08Xv } auth_verbose = yes auth_debug = yes auth_debug_passwords = yes auth default { mechanisms = plain login passdb pam { args = dovecot } userdb passwd { } socket listen { client { # Assuming the default Postfix $queue_directory setting path = /var/spool/postfix/private/auth mode = 0660 # Assuming the default Postfix user and group user = postfix group = postfix } } user = root }
On Sun, 2006-11-05 at 13:19 -0500, Jeff Kowalczyk wrote:
Thanks for setting me straight. So to wrap up the subquestion, is ~ preferable to %h?
There's really no difference between them. Before ~/ didn't work everywhere in the default_mail_env, but nowadays it does, so I guess ~/ should be used since it's more understandable than %h.
On Sunday 05 November 2006 17:58, Timo Sirainen wrote:
On Sun, 2006-11-05 at 12:53 -0500, Jeff Kowalczyk wrote:
I have a recently deployed dovecot server and am readying another. Upon updating to rc12, I note the following change in the default dovecot.conf file:
-default_mail_env = mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u +mail_location = maildir:~/.maildir
Where did you get rc12? In my tarball there are still:
# mail_location = maildir:~/Maildir # mail_location = mbox:~/mail:INBOX=/var/mail/%u # mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
No "~/.maildir" anywhere, and I don't recommend using it either.
Probably from Gentoo as we sed the config file a bit for Gentoo defaults and package USE flag selection.
The defaultt maildir location on Gentoo has always been ~/.maildir instead of ~/Maildir. Why this is, I really don't know - you'll have to speak with the net-mail team (of which I'm not a member)
This isn't new behaviour either - the Gentoo ebuild has been doing it since I took it over in the 0.99 range :)
Thanks
-- Roy Marples uberlord@gentoo.org Gentoo Developer (baselayout, networking)
participants (3)
-
Jeff Kowalczyk
-
Roy Marples
-
Timo Sirainen