how to remove all email from exim queue(urgent)

hi
my exim mail server queue is full of email.
i need to clear those

can you please tel me the accurate commadn to clear all the email from exim queue

i am using few command from cibercity but they dont working

its debian server

pls its  urgent
LVL 29
fosiul01Asked:
Who is Participating?
 
parparovConnect With a Mentor Commented:
http://www.cyberciti.biz/faq/exim-remove-all-messages-from-the-mail-queue/
To print a list of the messages in the queue, enter:

# exim -bp

Open in new window

To remove a message from the queue, enter:

# exim -Mrm {message-id}

Open in new window

To remove all messages from the queue, enter:

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

Open in new window

Dallas Marlow, suggested following clean command:
# exim -bp | exiqgrep -i | xargs exim -Mrm

Open in new window

0
 
fosiul01Author Commented:
i told in the question

cybertity does not work

i get this error

exim -bp | exiqgrep -i | xargs exim -Mrm

exim: no message ids given after -Mrm option
0
 
parparovCommented:
What about the third command?
Do you get any output with exim -bp?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
fosiul01Author Commented:
yes. exim -bp shows output
0
 
parparovCommented:
can you post here a sample of it?
0
 
fosiul01Author Commented:
6h  1.6K 1RCCEb-0006q9-Up <xxxx@zzzz.co.uk>
          zzzz@xxxxxx.co.uk
0
 
fosiul01Author Commented:
i had write a script and put the command in their to delete all the queue

if i use direct command it does not work

anyway thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.