Script for clearing unwanted queued emails from the server

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 fixesTechnical

Tags:

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (0)

Trackback URL

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com