Last active
December 6, 2020 10:42
-
-
Save tasiot/ff4533bd81864e95e85420bbde036ed2 to your computer and use it in GitHub Desktop.
Process n mail from postfix mail queue with 5 seconds sleep for every mail (fix too many connection Orange)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for mailid in `mailq | awk '$1 ~ /^[0-9A-F]{11}$/ {print $1}' | head -n 50`; do postqueue -i $mailid; sleep 5; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment