Posts Tagged ‘Postfix’

Postfix queue administration

Although I’ve used many MTA’s before, I’m new to postfix so here’s a few handy commands to note: List the mail queue: postqueue -p or mailq Delete a single message: postsuper -d 4C63F2300BA

Managing the Postfix queue

This command will delete one specific email address from the mail queue (taken from the postsuper man page): #mailq | tail +2 | grep -v ‘^ *(‘ | awk¬† ‘BEGIN { RS = “” } { if ($8 == “email@address.com” && $9 == “”) print $1 } ‘ | tr -d ‘*!’ | postsuper -d [...]