>Turned it back on and let it deliver them.
I pass out a .pl script with IMGate basic that I picked up somewhere the
puts the key info from the output of mailq command on a single line. a
grep filter and one awk command gave me an output file to a .sh file:
mailq | one_line_q.pl |\ # get mailq recrods on one line
egrep -i "@hanmail" |\ # extract lines with <string>
awk '{print "postsuper -d " $1 }' \ # extract first field into command
> /var/tmp/cleanq.sh # write to file
chmod +x /var/tmp/cleanq.sh # make the file executable
/var/tmp/cleanq.sh # execute it
I used this on an IMGate that had 110K files from an internal open relay
on a mynetworks ip, all msgs containing @hanmail. Running mailq on 110K
qeueu and then deleting 11O k msgs on a ATA33 disk and slow CPU took some
time, but all went ok. I stopped postfix during the cleanq.sh operation so
postfix and postsuper wouldn't be fighting for the files.
I wouldn't have wanted to deal with a single windows directory with 110K
files in it and try to manipulate 110K lines with FileManager.
Len