Please help - Corrupt exim files?

rlesterphx

Member
Jul 22, 2010
21
0
51
We had a huge influx of spam that was stuck in the Exim mail queue, so I ran this command replacing 'X' with some of the offending spam addresses and terms to clean the queue while keeping good emails:

Code:
grep -lir "X" /var/spool/exim/input/* | xargs rm -fv
I've used that line before with good results, and it worked fine, though I'm not sure what's going on now as most of the remaining 200 or so good emails left in the queue are now malformed.

For example (looking in the Mail Queue Manager in WHM), on each line the area is blank where there should be the Message ID linking to the message. The message ID now appears where the file size should be displayed.

How can I repair these files? I've checked them manually on the server and they appear to be valid, but I'm no Exim expert.
 

rlesterphx

Member
Jul 22, 2010
21
0
51
The problem was that that command was deleting data spool files but not their accompanying header files.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Thanks for sharing the information. What command did you use in place of it to clear the emails properly?