Productive Linux


 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Don't have an account?
Sign up to
Forgot your password?

Exim - deleting frozen messages
15 November 2005 @ 10:00 GMT
by Paul

Over the last few months on one of my Linux computers, the mail transfer agent, exim has been trying to return email back to certain people to tell them it can't deliver the messages. But because these people are spammers their addresses don't exist so the messages can't be returned. As a result a huge mail queue has been built up of 'frozen' messages.

To get rid of them, log in as root and enter the following command:

 exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm

Another useful command is the following one that reports how many frozen mails are in the queue:

exim -bpr | grep frozen | wc -l 

And finally this command reports how many mails (frozen or not) are in the queue:

exim -bpr | grep "<" | wc -l 
Thanks to this thread for this invaluable
Tags: exim

exim -bpc gives a ques count and saves resources as no grepping is needed

Posted by Guest User on 2006-09-08 11:14:07.

Also, instead of doing "grep frozen | wc -l", you can shorten that to "grep -c frozen"

Posted by Guest User on 2007-09-05 10:14:56.

or with exim4: exiqgrep -z -i | xargs exim -Mrm

Posted by pradtf on 2011-06-13 06:29:43.
Comments disabled