i have lots of unsend mail in /var/spool/exim/input, some even older then the 7day limit i have set in exim.conf
can i safely delete all the unsend mail in that directory?
Printable View
i have lots of unsend mail in /var/spool/exim/input, some even older then the 7day limit i have set in exim.conf
can i safely delete all the unsend mail in that directory?
I use a script for clearning out frozen messages from the queue.
search for frozen messages :
grep -rl frozen[\ ][0-9]* /var/spool/exim/input > /tmp/H
remove the data part :
rm -f $(sed -e s/H/D/g /tmp/H)
remove the header part :
for i in `cat /tmp/H`; do rm -f $i;done
It is not well written, but can be used if you want.
he, well that cleaned up a little....thanks :)
only:
for i in `cat /tmp/H`; do rm -f $i;done
stuff in tmp/H still exists
what i really mean is, just rm all the files in that dir, can i safely do that?
its all junk inthere
If you are on a Cpanel box, you can also manage the queue from there.
nop, i am on DA
i don't know whether it's ok to just delete the files, but you can use this command to safely remove the mails from the queue:
ls /var/spool/exim/input | cut -c1-16 | xargs exim -Mrm
what does this command do exactly?
can you describe?