On Thu, 2009-06-11 at 02:43 +0200, Stef Simoens wrote:
> mail_location: dbox:/var/mail/%u

This doesn't work with expire-tool, because the way

> A strace on `/usr/sbin/dovecot --exec-mail ext 
> /usr/libexec/dovecot/expire-tool --test`

works is that dovecot binary first reads dovecot.conf and expands all %u
to root. Then it executes expire-tool, which no longer sees %u at all
there. The only way to get this working is to have userdb return the
path. So:

a) mail_location = dbox:~/ and have userdb return home.

b) Have userdb return mail=dbox:/var/mail/<username>

>   userdb:
>     driver: passwd

You should be able to do either of those with something like:

userdb passwd {
  args = mail=dbox:/var/mail/%u
}

v2.0 fixes this problem properly.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to