LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-30-2012, 10:42 AM   #1
herewego
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
Exclamation Exim Mail Queue (2,875,262 messages)


following a spam outbreak we are left with 2875262 messages in queue. In times past just cleaning up a few thousand email from the exim mail queue takes forever however with this amount of messages im not sure how to handle it.


Ive tried the following;
-skipped trying to manage it via whm a
-exim -bp | exiqgrep -i | xargs exim -Mrm
find /var/spool/exim/input -type f -exec rm -f {} +

I've tried back grounding these, running them on an active console and they just run for days.

I was think about trying to break the message down into group in order to handle such a large queue but any exim sorting take so ling on a queue as big as ours. Any help would be greatly appreciated.
 
Old 10-30-2012, 01:01 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Well, you seem to know how to get Message_IDs so have a look at some of the exim stuff I noted over here...

basically:
Remove a Message from the Queue:
Code:
exim -Mrm <MessageID>
but I forget how to "get" MessageID as I haven't had to support a mail-serving exim host for over 2 years.

You will have to "chop it up" (the exim -Mrm...parsing) I believe as removing 2 million+ messages would be a nightmare.

Edit0:
http://bradthemad.org/tech/notes/exim_cheatsheet.php

Last edited by Habitual; 10-30-2012 at 01:03 PM.
 
Old 10-30-2012, 01:39 PM   #3
herewego
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
that we're i seemed to be stuck. No matter which way i try and dice splitting the list up i am still dealing with a 2 million message queue. My thought of using exiqgrep to just give the message id by date etc still seems to have to parse out of the entire email log
 
  


Reply



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
How to untar my tarred mail queue folder back to the sendmail queue directory again? Md.Abul Quashem Linux - Server 6 02-16-2010 08:32 AM
Postfix - queue up messages while rolling out new mail server retrovertigo Linux - Server 4 03-03-2009 11:52 AM
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

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

All times are GMT -5. The time now is 04:39 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
Open Source Consulting | Domain Registration