Lifesaver

If your monitoring tool get’s out of control this is your lifesaver!!

mailq | tail +2 | awk ‘BEGIN { RS = “” }
# $7=sender, $8=recipient1, $9=recipient2
{ if ($7 == “monitoring@pczone.be” && $9 == “”)
print $1 }
‘ | tr -d ‘*!’ | postsuper -d –

Leave a Reply