Re: [exim] sLocate Database

Top Page
Delete this message
Reply to this message
Author: Matt
Date:  
To: Exim Mailing List
Subject: Re: [exim] sLocate Database
> > Is there anyway to tell "locate -u" to not look inside any directories
> > such as ./cur or ./new to avoid wasting time indexing mail messages?
>
> Yes.
>
> > If so how do you do that?
>
> 'man updatedb' and 'man updatedb.conf' are your friend. But so am I, so
> look for PRUNEPATHS and possibly add "/var/spool/mail" (or your local
> variant) to it.


I did add /backup to PRUNEPATHS where I archive old email from
suspended accounts. Problem is can I add something like this to
PRUNEPATHS: "/home/*/imap/*/*/Maildir/new/"?

I do not want to exclude all of /home from locate just where the mail
files are. There are a number of domains in different directories as
well so its not so simple as adding /var/spool/mail.

I doubt this is an issue on a regular linux box but on a server with
thousands of mail boxes and some with thousands of messages each its
quite a drain.

Matt