[Dovecot] Dovecot Expire doesn't work

Timo Sirainen tss at iki.fi
Mon Jun 22 06:47:54 EEST 2009


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090621/61ec13b7/attachment.bin 


More information about the dovecot mailing list