[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

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
0
fosiul01
Asked:
fosiul01
  • 4
  • 3
1 Solution
 
parparovCommented:
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
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
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

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now