[Dovecot] maildir autodetect failing. what's wrong with this setup?

Timo Sirainen tss at iki.fi
Mon Aug 21 04:17:19 EEST 2006


On Sun, 2006-08-20 at 09:55 -0700, Richard wrote:
> i'm setting up for virtual_users w/ maildir.
> 
> i have in my dovecot.conf:
> 
>  auth default {
>   passdb passwd-file {
>    args = /etc/dovecot/imapd.passwd
>   }
>   userdb static {
>    args = static uid=300 gid=300 home=/var/dovecot/mail
> mail=maildir:/var/dovecot/mail/%d/%n/Maildir nice=10
>   }
>  }
>  default_mail_env =
> maildir:/var/dovecot/mail/%d/%n/Maildir:INDEX=/var/dovecot/indexes/%d/%n

Your userdb static's mail overrides the default_mail_env. Probably
better to use:

args = static uid=300 gid=300 home=/var/dovecot/mail/%d/%n and nice=10

default_mail_env = maildir:~/Maildir:INDEX=/var/dovecot/indexes/%d/%n

> in /etc/dovecot/imapd.passwd, i have:
> 
>  omn at server.com:{PLAIN}pass:300:300::/var/dovecot/mail:::

If you're using userdb static, there's no point in having anything else
in here than just "user:pass".

>  omn at server.com     static  uid=300  gid=300   home=
> mail=maildir:/server.com/omn/Maildir      nice=10

This doesn't look anymore what you showed above. Have you set
mail_chroot or something? Or just show what "dovecot -n" says.

> type=private, prefix=Private/, sep=/, inbox=yes, hidden=no, subscriptions=no
> dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): maildir autodetect:
> stat($default_mail_env/cur) failed: No such file or directory

I suppose you're trying to use $default_mail_env in namespace's
location? That won't work. Just don't set location at all and that does
it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060821/c9731031/attachment.pgp 


More information about the dovecot mailing list