mailq | \
grep -E "Connection (refused|timed out)" -B1 | \
grep -E "^[A-Z0-9]{10}\s+" | \
awk '{print $1}' | \
postsuper -d -
Forked from jkullick/postfix-queue-delete-connection-error-mails.md
Created
October 16, 2019 17:33
-
-
Save Sam-R/620c4bf05283bef97dffe5dda343e30c 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