mailq | \
grep -E "Connection (refused|timed out)" -B1 | \
grep -E "^[A-Z0-9]{10}\s+" | \
awk '{print $1}' | \
postsuper -d -
Last active
February 19, 2021 16:35
-
-
Save jkullick/9bb938e05481e47a74850b443bc132b8 to your computer and use it in GitHub Desktop.
Delete Connection Error Mails from Postfix Queue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment