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
No related posts.
You must be logged in to post a comment.