How to remove all messages in mail queue

by George Benko, 2by2host
2011-01-11 18:12:18

Remove messages from command line

Remove all messages older than 24 hours:

/usr/sbin/exiqgrep -o 86400 -i | xargs exim -Mrm

Remove messages from WHM

WHM > Mail Queue Manager > Delete Mail Queue > Delete all

count of the messages in the queue:

exim -bpc