Hello,
What you can do :
- stop SMTP delivery (esmtpd stop)
- Just look in your queue directory : you always have at lease two files :
content, headers, and step... each part of the mail has the same filename but
it's in a different folder.
What i have done for qmail/vpopmail:
- stop qmail manually
- rgrep -l $string_to_match $queue/mess/ ==> Now you have the filenames
- find $queue -name $each_file | xargs rm
- restart qmail manually
And the queue is clean !
take care : smtpd daemon has to be stopped !!! else results can be... weird.
HTH.
Jerome Blion.
Selon Mark Constable <mar...@renta.net>:
Just a thought, at the moment we have 21,000 messages in our
mailq after blocking with spamcop and a few others. I'm sure
we're in the middle of a spamstorm and that it's 95% spam in
the queue.
We've got so much load atm that some messages are taking up
to 20 hours to be actually delivered. Spamassassin seems to
be the main culprit slowing things down.
Would it be reasonable to script up something that could
roll over the messages in the queue and "purge" the most
obvious spam quickly and easily ?