Simple script to selectively remove emails from postfix’s queue

June 20, 2012   

If you send out a lot of emails, the queue in postfix might be full of junk emails from people putting like as their email address. Now there could be other valid emails in there that you don’t want to remove due to their mail server down and postfix keeps trying for a set amount of time to re-send that email. So below is a simple script that you have to run as root that you can enter a search string as a paramater to remove emails from the queue

comments powered by Disqus