mqueue and mqueue.in have more files than necessary ... should I worry?

Julian Field MailScanner at ecs.soton.ac.uk
Fri Mar 31 08:37:31 IST 2006


On 31 Mar 2006, at 03:50, TAC Forums wrote:

>> I'd check what makes up the discrepancy. F.i. could be a lot of  
>> old data
>> files with no queue files.
>
> Yes it is. Any ideas how to quickly delete these files?
>
> Here is what I'm thinking.
>
> 1. Stop mailscanner / sendmail.
> 2. Type mailq and get the list of active messages that are in the
> queue and move them to another folder.
> 3. delete all other files in /var/spool/mqueue
> 4. move the active files back to mqueue.
> 5. Start Mailscanner
>
> However, any ideas what I should do about /var/spool/mqueue.in ?
>
> How do I know which of these messages are active and which aren't?

Switch off the incoming sendmail (kill the one that listening for  
messages).
Wait for MailScanner to stop delivering any new messages.
Delete everything left in mqueue.in.
Stop MailScanner completely and restart it.
-- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list