Linux : How to manage Exim mail queue

By | June 1, 2019

Here are some useful commands to manage the Exim mail server queue.

Show the mail queue content :

Show the amount of mail in the queue :

Delete a specific message in the queue, with the help of the first command in this example (exim -bp) to get the message ID :

Example :

Delete the full content of the mail queue :

There are some circumstances where you may want to need to flush the entire mail server (Exim) queue – infected computers/users are common these days and a situation may easily degenerate when the queue hit an unmanageable amount of mails. if you get to that point, the following command will flush absolutely ALL emails in the queue :