If you like to delete mails from the mail queue of postfix on a given pattern (from/sender email) you can use this command:
postqueue -p | grep "name@sender.toplevel" | cut -f 1 -d ' ' | xargs -n 1 postsuper -d
postqueue -pyou’ll get the queue.grepjust selects the line with the sender AND the message id.cutextracts the message id.xargs/postsuperwill delete the message
