PDA

View Full Version : [ubuntu] Exim can't delete queue


Shwick2
October 4th, 2008, 09:18 PM
Ubuntu 8.04
Exim 4

I have 10 frozen messages in the queue and I can't delete them. Both of these commands:

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

sudo exim4 -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | sh

return Permission Denied. Also I know that only the sender of the mail can delete it so I tried it without sudo, still denied.

I got these commands from two different places, does it matter if I use exim or exim4?

Shwick2
October 5th, 2008, 09:32 AM
Problem solved, should have put sudo in the second call to exim.

sudo exim4 -bp | awk '/^ *[0-9]+[mhd]/{print "sudo exim -Mrm " $3}' | sh

sudo exim4 -bpr | fgrep '*** frozen ***' | awk '{print $3}' | sudo xargs exim -Mrm