Complete removal of the queue e-mail with Exim
If for some reason we did queue e-mail and need to remove it, we can do this very quickly one command.
Below a very simple way to remove the queue exim.
Logujmy on our server as root and issue the command:
1 | exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash |
After a while we will see how all the queued messages are deleted.