Flush exim queue - EMERG

cachorroyayo

Verified User
Joined
Apr 17, 2008
Messages
21
Location
Lima, Peru
Hello,

I'm having problems to flush/remove mails from que exim queue.

Excesive mails are queued and is impossible to remove from queue.


I tried this to remove all the mails from this domain (but does not work)
for i in `exiqgrep -i -f rctransportedecargas.com` ; do exim -Mrm $i ; done
When I do to remove mails from more the 15days in queue appears

universal# exiqgrep -o 1296000 -i | xargs exim -Mrm
Line mismatch: 23d 1OdOSg-000GIh-Fl <[email protected]>
universal#

And finally i have to remove one by one the queued messages, and it is really impossible.
universal# exim -Mrm 1OdOSg-000G8L-14
Spool data file for 1OdOSg-000G8L-14 does not exist
Continuing, to ensure all files removed
Spool read error for 1OdOSg-000G8L-14-H: No such file or directory
Continuing to ensure all files removed
Message 1OdOSg-000G8L-14 has been removed or did not exist

somebody has a tip for me.


Thank You very much
 
Mismatched lines mean that some files in the queue have already been deleted. Why is the example in your last quote impossible? Because you have to type it many times?

Note I've written the below a few times in an attempt to get it right... if it doesn't make sense then please don't follow it blindly; I may have made a mistake.

The exim tools don't work well when you've got mismatched lines (as they're called). If you can, delete the entire queue if you've got to many to delete manually. If you can't do this (perhaps for contractual reasons), make a list of the ones you can delete.

If you can't, then you need to figure out which ones you need to delete (I think you've writen you already have such a list). If so, use the macro tools in your text editor to make that a list of one email filename per line, and then also using macro commands to create a file with lots of lines for example:
Code:
# exim -Mrm 10dOSg-000G8L-14
and give the file execute properties and run it.

Another way to do it is to use the shell language to find directory listings by file date, filter out the file dates for which you want to delete the emails, to a file, and then do the same as above.

Another way is to use some one-line shell commands to do the same thing, but we don't attempt to teach that to others; too many chances to go wrong.

We do this sort of work for clients from time to time. Afterwards we always tell them to fix the problem so it won't happen again.

Jeff
 
You could try it with stopping exim (like /etc/init.d/exim stop)
And try now to remove the mails.

Maybe exim delivered the mail before you deleted it.
 
Back
Top