Clear Exim Mail Queue


Spamming is one of the things we often face as administrators in the day to day work, if you are using Exim mail server, the 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


Updated: March 23, 2018 — 6:01 am

Leave a Reply

Your email address will not be published. Required fields are marked *

2 + 5 = © 2016