Managing EXIM Mail Queue

To print a list of the messages in the queue, enter:

# exim -bp


To remove a message from the queue, enter:

# exim -Mrm {message-id}


To remove all messages from the queue, enter:

# exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash

or

# exim -bp | exiqgrep -i | xargs exim -Mrm


Info from the Mothership:

man pages awk, exim
Exim documentation

 

  • 2 Users Found This Useful
Was this answer helpful?