IAMEM Hosting

Clear Exim Mail Queue

Home > Blog > cPanel > Clear Exim Mail Queue
23Mar, 2018
0

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, 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

 

Leave a Reply

11 + 7 =

Copyright © 2019 | iamemhost.com . All rights reserved.