28 September, 2016

Delete messages from sendmail queue based on an email address

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

Redirection in IIS

 This config will redirect every request to https://www.domain.com <configuration>     <system.webServer>         <rewrite>...