How to manage the postfix queues
The management is done with this tools:
postqueue -p | grep -c "^[A-Z0-9]"
postqueue -f
postqueue -i “Queue ID”
postqueue -I EmailID
postsuper -d ALL
postsuper -d EmailID
postsuper -d “Queue ID”
$PATTERN="Header: bad"
for id in `postqueue -p | grep '^[A-Z0-9]' | cut -f1 -d' ' | sed 's/*//g'`; do
postcat -q $id | grep $PATTERN && postsuper -d $id;
done
postqueue -p
You need first to list in order to retrieve the email id.
postcat -q EmailID
postsuper -h ALL
postsuper -r ALL