Deleting email from mail queue

By Jamsi • Oct 6th, 2006 • Category: Linux

I had the need to delete all bounce messages in a sendmail mail queue, so I used the following

find /var/spool/mqueue -name '*' -type f |xargs grep -l "User unknown" |xargs rm

Related posts:

  1. Removing mail from the Exim mail queue


FREE NEWSLETTER -> Want Tech Tips Sent Straight to your Inbox?

Grab our Newsletter to Ensure your PC is Running Smooth!

Jamsi is currently studying a full time Bachelor of Computer/Business degree and working part time as an Internet Security Consultant.
Email this author | All posts by Jamsi

Leave a Reply