Clear the Exim Queue (remove all messages)

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

February 11, 2019Robert

Explanation

Print exim queue, pipe it to exiqgrep to extract message ids, and pass them to exim -Mrm using xargs to remove.