Script for clearing unwanted queued emails from the server
admin | May 24, 2009 | Comments 0
Here is a small but handy script which will clear the queued emails from the server.
exim -bpc
exim -bpru | grep frozen | awk {‘print $3′}|xargs exim -Mrm
exim -bpru | grep “<>” | awk {‘print $3′}|xargs exim -Mrm
exim -bpru | grep “nobody” | awk {‘print $3′}|xargs exim -Mrm
exim -bpru|awk {‘print $3′}|xargs exim -Mrm
exiqgrep -o 86400 -i | xargs exim -Mrm
exim -bpc
This script will display the number of queued emails before clearing, then clear them and display the number after clearing them.
Filed Under: Quick fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547