Safe to remove /var/spool/exim/input, msglog?

OooLong

Well-Known Member
Mar 16, 2011
105
1
68
cPanel Access Level
Website Owner
Recently I have to cleared out /var/spool/exim/input and /var/spool/exim/msglog with
find input -type f -exec rm -rf {} \;
find msglog -type f -exec rm -rf {} \;

After waiting a long time for those command to be finished, I'm guessing there must be 100,000 of spam in there.

Why is it when I do a ls in /var/spool/exim/input/1/ for example it take 30 seconds to list the empty directory?. Is it safe for me to remove rm -rf all files/directory in /var/spool/exim/input? so that it recreate a new? Please advise. Thank you.
 

Eminds

Well-Known Member
Nov 10, 2016
319
32
28
India
cPanel Access Level
Root Administrator
instead of deleting the spams , you have to check whats causing the spamming that is the first thing I will suggest. From the WHM in Mail stats option and Mail queue option check the mails to see from which email addresses the spamming is initiated or have an expert to check the issue and fix it.
 

SysSachin

Well-Known Member
Aug 23, 2015
604
49
28
India
cPanel Access Level
Root Administrator
Twitter
Is it safe for me to remove rm -rf all files/directory in /var/spool/exim/input? so that it recreate a new
Yes, There is no problem if you have to remove files/directory in input folder. Also you have to check spam mail cause and fix the spam issue