QFM/DFM buildup
Scott Silva
ssilva at sgvwater.com
Thu Oct 30 18:52:17 GMT 2008
on 10-30-2008 11:31 AM Christian Campbell spake the following:
> I am running MailScanner 4.67.6 with Sendmail. My /var/spool/mqueue.in
> has a significant number of qfm files with no corresponding dfm files.
> Can I safely delete those? Also, why do those qfm files stick around?
> Is a solution to keeping this from happening?
>
>
>
I usually have the opposite. DFM files without matching QFM.
Something like this in cron;
------------------------cut---------------------------
#!/bin/bash
# clean up orphaned df* files in mqueue.in older than 1 day
# no known cause for these files yet.
/etc/init.d/MailScanner stop
sleep 5
dir="/var/spool/mqueue.in"
file=`find $dir -mtime +1`
for i in ${file}
do m=`basename ${i}`
j=${m:2}
if [ ! -e "${dir}/qf${j}" ]; then
mv ${i} /var/tmp/
fi
done
#echo
#df -hl
/etc/init.d/MailScanner start
exit 0
------------------------cut---------------------------
--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20081030/475fc737/signature.bin
More information about the MailScanner
mailing list