Clear mail from specific address from exim queue

We have alot of issues with people using open contact forms on their websites causing spammers to fill up the exim mail queues on webservers. Today I found a great set of commands to fix the issue.

exim -bp will show the current queue

exiqgrep -ir | xargs exim -Mrm will query the entire queue for all IDs of one specific address and pipe that to be removed via exim -Mrm

Leave a Reply

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