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 == “[email protected]” && $9 == “”)
print $1 }
‘ | tr -d ‘*!’ | postsuper -d –
Fix (Bjorn Monnens) his personal and business blog
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 == “[email protected]” && $9 == “”)
print $1 }
‘ | tr -d ‘*!’ | postsuper -d –