LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-04-2008, 08:18 PM   #1
Shwick
Member
 
Registered: Jun 2008
Posts: 111

Rep: Reputation: 15
Exim can't delete queue


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?
 
Old 10-05-2008, 08:32 AM   #2
Shwick
Member
 
Registered: Jun 2008
Posts: 111

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
exim mail queue too big Lzolcsi Linux - Server 1 04-06-2007 09:00 AM
exim mail queue alexr186 Linux - Server 1 01-03-2007 07:00 AM
Exim Mail Queue - Force Delivery Cheza Red Hat 1 07-24-2006 11:09 AM
Exim queue problem jademan83 *BSD 0 08-08-2005 12:49 PM
how to use qmHandle to delete qmail queue falawang Linux - General 1 03-01-2004 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration