mqueue and mqueue.in have more files than necessary ... should
Jeff A. Earickson
jaearick at colby.edu
Fri Mar 31 13:08:16 IST 2006
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,
find . -mtime +3 -print | xargs rm
Voila, old files are gone. No need to stop sendmail or MailScanner.
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
>> 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?
> TAC Support Team
> 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!
More information about the MailScanner