[Dovecot] expire-tool and userdb returned mail location
Timo Sirainen
tss at iki.fi
Mon Dec 14 05:22:25 EET 2009
On Sat, 2009-12-12 at 13:46 +0200, Tapio Sokura wrote:
> I'm having problems with expire-tool in Dovecot 1.2.6 not finding the
> mailboxes. I had
>
> mail_location =
> mbox:/var/spool/dovecotmail/%d/%n/mails:INDEX=/var/spool/dovecotmail/%d/%n/indexes
>
> in dovecot.conf, but that doesn't work with expire-tool. So I commented
> that out from dovecot.conf, all the data is in a database anyway. A
> userdb lookup returns the following for userid at domain:
>
> home = /var/spool/dovecotmail/domain/userid/
> mail =
> mbox:/var/spool/dovecotmail/domain/userid/mails:INDEX=/var/spool/dovecotmail/domain/userid/indexes
Here's a simple way that should work:
mail_location = mbox:~/mails:INDEX=~/indexes
and then you can also drop the mail field from userdb.
> Now when running expire-tool --test, I get this:
>
> Error: Namespace '': Mail storage autodetection failed with
> home=/var/spool/dovecotmail/domain/userid/
> Info: User lookup failed: userid at domain
>
> When I run expire-tool under strace, I can see that it is indeed looking
> for the mails in the typical autodetect locations (Maildir, mail, Mail)
> under user's home directory. So it appers that expire-tool takes the
> home directory from userdb, but ignores mail location returned by userdb?
I think it should have worked and I don't see anything obviously wrong
in the code either, but if the mail_location change works for you I
don't think I'll bother looking into this. v2.0 solves the whole problem
much better.
-------------- 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/20091213/6dcc727f/attachment.bin
More information about the dovecot
mailing list