On Thu, 11 Mar 2004, Cybertime Hostmaster wrote:
|->> I really am my own worst enemy. BACH is going crazy trying to deliver
|->mail
|->> to [EMAIL PROTECTED]
|->>
|->> I don't what it's trying to deliver to cshore.com instead of
|->> imgate1.cshore.com. There's nothing listed in relay or transport map.
|->Didn't
|->> you have a script that would delete all mail for a particular sender.
|->
|->There is a quick command line one in man postsuper
|->
|->mailq | tail +2 | awk 'BEGIN { RS = "" } \
|-> / [EMAIL PROTECTED]/ { print $1 } \
|-> ' | tr -d '*!' | postsuper -d -
I use a little perl script called cleanq that puts the mailq entries on
one line:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
B28B223734F 1931 Fri Mar 12 17:24:13 [EMAIL PROTECTED] (connect to
m3xico-com.mr.outblaze.com[205.158.62.177]: Operation timed out) [EMAIL PROTECTED]
then one can do:
mailq | ./cleanq | grep -i <whatever> | awk '{print $1}' | postsuper -d -
Had to come up with something a few months back when we were hit with
customer machines mailbombing AOL via our server.
Biggest one we had was when we caught it about 20 mins after it started
there were over 10000 mails in the queue. Postfix kept on chugging away.
Caused mail delivery to slow down but didnt lose any mail as far as I
could tell.
Keith