SonicChicken
A bumbling foray into tumblr...


The campus mail infrastructure got a major upgrade this weekend, but unfortunately they didn’t warn me about all of the things that would be changed. Little things like the fact that the SMTP servers were getting new IP addresses, which broke our firewall rules.
After fixing everything, I still had a bunch of messages stuck in the postfix queue. I didn’t want to send them all at once, so I ran the following “one-liner” every minute or so:
# postqueue -p | \
grep ^[0-9A-F] | \
head -n10 | \
cut -d' ' -f1 | \
postsuper -r - && \
postkick public pickup W
This will list the mail queue, grab each of the queued message ID’s, select the first 10 of those, requeue the messages, and finally ask postfix to process them.