mailq | \
grep -E "Connection (refused|timed out)" -B1 | \
grep -E "^[A-Z0-9]{11}\s+" | \
awk '{print $1}' | \
postsuper -d -
mailq | \
grep -E "Connection (refused|timed out)" -B1 | \
grep -E "^[A-Z0-9]{10}\s+" | \
awk '{print $1}' | \
postsuper -d -