What more could you want?
Clean out your Postfix Queue
Hello, all!
I just had to clean out a Postfix queue, and came up with this little
oneliner:
for i in `postqueue -p | grep -B1 ’450\|451\|452\|421\|server dropped connection\|Connection refused\|Connection timed out\|Host not found\| Blacklisted\|DELETED\|PTR\|reverse dns\|refused to talk\|No route to host\|while sending\|timed out\|timeout\|root’ | grep ^[0-9A-G] | cut -d’ ‘ -f1`; do postsuper -d $i; done
It really does the trick. Make sure that if you copy it above, you
check the input. WordPress does some funny things to dashes and
whitespace sometimes.
/cs
| Print article | This entry was posted by chuck on December 9, 2008 at 5:04 pm, and is filed under Uncategorized. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |