Crucial
02-12-2004, 12:03 AM
How do you FLUSH qmails queued mail?
![]() | View Full Version : Flushing QMAIL Queue Crucial 02-12-2004, 12:03 AM How do you FLUSH qmails queued mail? dynamicnet 02-12-2004, 12:42 AM Greetings: For selective flushing, see http://www.redwoodsoft.com/~dru/mailRemove/ Also see http://www.tnpi.biz/internet/mail/qqtool/docs.html Thank you. dan_erat 02-12-2004, 03:42 PM "killall -ALRM qmail-send" (that's with the GNU version of killall, mind you) will make qmail attempt to deliver all queued mail immediately. blessen 02-13-2004, 10:07 AM There is a binary - qmailctl which can be used to flush queue. usage : qmailctl flush allera 02-13-2004, 10:48 AM Also search google for qmhandle. Very handy little script. chrisS 02-15-2004, 12:57 PM Besure to stop qmail before flushing. #!/bin/bash cd /var/qmail/queue/mess for file in `find . -type f` ; do echo $file ; rm $file rm ../info/$file rm ../remote/$file done echo -n "Killing qmail." killqmail=`ps auxc | grep qmail | awk '{print $2}' | xargs -i kill -9 {}` echo " ..done" echo -n "Killing tcpserver" killtcpserver=`ps auxc | grep tcpserver | awk '{print $2}' | xargs -i kill -9 {}` echo " ..done" Brightadmin 02-23-2004, 10:06 PM Try Qmail mailRemove.py a python script to remove the mails from queue. 1.download the script. 2.install and configure the script. The below URL will provide enough details. http://www.redwoodsoft.com/~dru/mailRemove/ Regards, Bright mmm 02-25-2004, 07:23 AM Originally posted by Brightadmin Try Qmail mailRemove.py a python script to remove the mails from queue. 1.download the script. 2.install and configure the script. The below URL will provide enough details. http://www.redwoodsoft.com/~dru/mailRemove/ Regards, Bright All the filtered emails are moved to filter directory. Could I remove them manually? |