exim4 deleting a mail from the qeue

To delete one message from the exim queue

exim -Mrm message-id

To find the ids of all qued mails

mailq

If you wish to delete all the messages to a specific email recipient.

exiqgrep -i -r '<mail@example.com>' | xargs exim -Mrm

Of if you wish to delete all messages that were sent from a specific email address.

exiqgrep -i -f '<mail@example.com>' | xargs exim -Mrm

Tags: , , ,

One Response to “exim4 deleting a mail from the qeue”

  1. tommy3543 says:

    Excellent article, I will take note. Many thanks for the story!

Leave a Reply