Skip to content

Instantly share code, notes, and snippets.

@tasiot
Last active December 6, 2020 10:42
Show Gist options
  • Save tasiot/ff4533bd81864e95e85420bbde036ed2 to your computer and use it in GitHub Desktop.
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)
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