To remove all messages from the queue, enter: # exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash