If you find so many email from a particular account, you can delete from the queue. First check,the email from that account in queue,
exim -bp | grep [email protected] | wc -l
10000
If this is in the range of 10000 and if found that to be spamming, you can delete the queue executing the below command,
grep -rl "[email protected]" /var/spool/exim/input | xargs rm -rf
To delete frozen mail, execute the command,
exim -bp | grep frozen | awk {'print $2'} | xargs exim -Mrm
To delete bounce-back mail, execute the command,
exim -bp | grep "<>" | awk {'print $2'} | xargs exim -Mrm
Note-: The mail files are kept in /home/username/mail/domain.com/emailuser location where username is the cPanel username, domain.com is the domain name, and emailuser is the email account username.
Find mail accessed 5 days before and delete,
1.find /home/name_of_account/mail/domain.com/username/new -mtime +5 -type f -ls
2.find /home/name_of_account/mail/domain.com/username/new -mtime +5 -type f -delete
exim -bp | grep [email protected] | wc -l
10000
If this is in the range of 10000 and if found that to be spamming, you can delete the queue executing the below command,
grep -rl "[email protected]" /var/spool/exim/input | xargs rm -rf
To delete frozen mail, execute the command,
exim -bp | grep frozen | awk {'print $2'} | xargs exim -Mrm
To delete bounce-back mail, execute the command,
exim -bp | grep "<>" | awk {'print $2'} | xargs exim -Mrm
Note-: The mail files are kept in /home/username/mail/domain.com/emailuser location where username is the cPanel username, domain.com is the domain name, and emailuser is the email account username.
Find mail accessed 5 days before and delete,
1.find /home/name_of_account/mail/domain.com/username/new -mtime +5 -type f -ls
2.find /home/name_of_account/mail/domain.com/username/new -mtime +5 -type f -delete