mqueue and mqueue.in have more files than necessary ... should
realmcking at gmail.com
Fri Mar 31 20:50:35 IST 2006
Do a 'man find' first. On some Unices, "-mtime +3" means "older than
3 minutes", not "older than 3 days".
On 3/31/06, Jeff A. Earickson <jaearick at colby.edu> wrote:
> First, figure out the maximum time that you hold email before returning
> it as undeliverable. Mine is three days, eg "Timeout.queuereturn=3d"
> in my sendmail settings. Then cd to the queue directory in question,
> and do:
> find . -mtime +3 -print | xargs rm
> Voila, old files are gone. No need to stop sendmail or MailScanner.
> Jeff Earickson
> Colby College
> On Fri, 31 Mar 2006, TAC Forums wrote:
> > Date: Fri, 31 Mar 2006 08:17:19 +0530
> > From: TAC Forums <tac.forums at gmail.com>
> > Reply-To: MailScanner discussion <mailscanner at lists.mailscanner.info>
> > To: MailScanner discussion <mailscanner at lists.mailscanner.info>
> > Subject: Re: mqueue and mqueue.in have more files than necessary ... should I
> > worry?
> >> Anyway, Sendmail will not be able to do anything about it now
> >> so you may as well delete those files to gain some speed, huge amount
> >> of files in a single directory makes it slow.
> > Ah! ... that's incentive enough to make me want to delete these files. :-)
> > Any tips and ideas on a fast way to delete the unwanted files?
> > Regards
> > --
> > TAC Support Team
> > --
> > MailScanner mailing list
> > mailscanner at lists.mailscanner.info
> > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> > Before posting, read http://wiki.mailscanner.info/posting
> > Support MailScanner development - buy the book off the website!
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> Before posting, read http://wiki.mailscanner.info/posting
> Support MailScanner development - buy the book off the website!
Mark McCoy -- Professional Unix geek
"On two occasions I have been asked, 'Pray, Mr. Babbage, if you put
into the machine wrong figures, will the right answers come out?' I am
not able rightly to apprehend the kind of confusion of ideas that
could provoke such a question. " -- Charles Babbage
More information about the MailScanner