Posts

Showing posts from June, 2013

How to Delete WHM Mail Queue through SSH sent from a particular sender

If your mail queue is full then don't worry and just use the following commands to get rid of the messages in the mail queue:
My analysis is that for some reason exiqgrep doesn't seem to work on large mail queues as the several commands I've tried including the ones you suggested seems to end with no measurable results. Most of the times I get the message "no message ids given after exim -Mrm" or I get an error along the lines of "invalid line in message...". Or the command executes to completion without doing anything.


1. Deletion of frozen messages using...
Code: exim -bpru | grep frozen | awk {'print $3'} | xargs exim -Mrm 2. Deletion of null sender/bounce messages using...
Code: exim -bpru | grep '<>' | awk {'print $3'} | xargs exim -Mrm 3. Deletion of specific sender domains using...
Code: exim -bpru | grep '@domain.com' | awk {'print $3'} | xargs exim -Mrm I am selecting domains by manually viewing the output …