Listing and deleting exim messages

To look at all the messages in mail queue,

exim -bp

To remove a message from the queue:

exim -Mrm “message-id”

To clear all messages in the queue:

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

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.