On Tue, 17 Jan 2006, Marten Lehmann wrote:
Hello,
The default is autodetection.
I don't think that dovecot will be able to find my mailboxes without giving it a hint, because the location is neither /var/spool/mail/%u nor ~/Maildir :-)
Maybe there's still a way to do this. But you have to tell a little more about your config and post your auth section from dovecot.conf.
It's pretty short:
disable_plaintext_auth = no auth_verbose = yes auth default { mechanisms = plain passdb passwd-file { args = /pop3/conf/pop3-auth.txt }
userdb passwd-file { args = /pop3/conf/pop3-auth.txt } }
First I guess there is a problem with the default: yes vs. no It is not sufficient to change the default mailbox setting, because this setting is used when the userdb does not specify a location. When the majority of your users is reachable with the same template, e.g.:
maildir:/mnt/hd%1Ri/%Ln/%Us:INDEX=MEMORY
(see dovecot_root/doc/variables.txt about the percent variables)
Otherwise, you must appended ":INDEX=MEMORY" to all settings in your userdb, e.g. my default:
default_mail_env = maildir:%h/MailDir:INDEX=/var/spool/dovecot/%i:CONTROL=/var/spool/dovecot/%i
then I maintain a LDAP attribute named "mailDovecot" for those users with a different mailbox, e.g.:
mailDovecot: maildir:/mailcache/%Ln:INDEX=/var/spool/dovecot/%i:CONTROL=/var/spool/dovecot/%i
You see: the "extra" settings must be specified for each entry.
==
Hmm, maybe I grasp your problem now: You use a passwd file, which uses the colon as delimiter for its fields itself, right?
However, I never used passwd, but it's limited to uid/pwd/homedir anyway, right? So you ought to have some fixed template to reach your mailboxes relative to the user's homedirectory, which you can put into default_mail_env and add the ":INDEX=MEMORY" there.
Bye,
-- Steffen Kaiser