To delete a massive message from sendmail queue you can use:
cd /var/spool/mqueue
find . -name "[d,q,Q,D]f*" -exec grep -nil "address@example.com" {} \; | xargs rm
The only thing you have to change is the Mail Spool Queue directory and the “address@example.com” to whatever you want or need.
No comments:
Post a Comment