>i'm wondering if exists some binaries or scripts to cleanup/fix
>the qmail queue
>( /opt/qmail/queue/mess
>                          /remote
>                          /info
>                          /bounce)

Have a look at:
http://www.faqts.com/knowledge_base/view.phtml/aid/1217/fid/206 :
--------------------------
How can I delete a lot of spam mail from the qmail queue?
May 9th, 2000 06:35

Howard Jones, Nathan Wallace
Magnus Bodin





Take a look at qmhandle:

    http://www.io.com/~mick/soft/qmhandle.html

Don't forget to stop qmail before you mess around in the queue.

----

An alternative that I've used successfully is to
1) Stop qmail, qmail-smtpd and anything else that might try to deliver
messages - leave qmail-pop3d, then at least users can get their
existing mail.
2) Delete the offending messages from the /var/qmail/queue/mess
directories with something like:
find /var/qmail/queue/mess -type f -exec grep "^Subject: Want a
University Diploma" {} \; -print -exec rm {} \;
3) run queue-fix to clean up the appropriate related files in todo,
intd etc.
4) restart qmail.

qmhandle requires individual message numbers to delete messages. When
you have 100,000 messages, this is impractical! queue-fix is written by
Eric Huss, and is available at
http://www.netmeridian.com/e-huss/queue-fix.tar.gz

It's also worth knowing that the find command will still potentially
take hours to delete all that junk - be prepared for some phonecalls!
--------------------------

cya
Joel


Reply via email to