mailq | \
grep -E "Connection (refused|timed out)" -B1 | \
grep -E "^[A-Z0-9]{11}\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/817e5b0950dc75a5f606fb4e02fc1c5e 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