Spamming is one of the things we often face as administrators in the day to day work, if you are using Exim mail server, below commands will help you to clear the SPAM email in the queue.
1.Clear all the mails from the queue
exim -bpru|awk {.print $3'}|xargs exim -Mrm
2.Clear mails from a specific user
exiqgrep -i -f [email protected] | xargs exim -Mrm
3.Freeze all emails from a specific user
exiqgrep -i -f l [email protected] | xargs exim -Mf
4.Clear all the frozen emails
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm