[Dovecot] userdb syntax

Timo Sirainen tss at iki.fi
Thu Oct 14 20:35:12 EEST 2010


On Thu, 2010-10-07 at 11:14 +0900, suzuki wrote:
> Hello,
> 
> I have a question about userdb lookup when using expire-tool.
> 
> Dovecot version 1.2.15
> In dovecot.conf,
>   mail_location = maildir:/var/mail/%u:INDEX=/var/indexes/%u
> 
> I run dovecot expire-tool, target user's directory becomes
> executing user's one.

expire-tool reads the config badly. Any %vars get expanded immediately.
v2.0 no longer has this kind of a problem.

> According to wiki, userdb setting overrides mail_location.
> 
>   userdb passwd {
>     mail=maildir:/var/mail/%u:INDEX=/var/indexes/%u
>   }
> 
> With this setting, it seems working.
> But, there are no examples with ":INDEX=.." setting.
> Is this syntax right?

Yeah, that's correct.



More information about the dovecot mailing list