You can check your current mail queue like this:
postqueue -p
To delete all mails from the mail queue that come from falko@example.com or are sent tofalko@example.com (the command is the same regardless of if it’s the sender or recipient address), you can use this command:
mailq | tail +2 | awk ‘BEGIN { RS = “” } / falko@example\.com$/ { print $1 }’ | tr -d ‘*!’ | postsuper -d –
Afterwards check your mail queue again:
postqueue -p
mailq | tail +2 | grep -v ‘^ *(‘ | awk ‘BEGIN { RS = “” } { if ($8 == “email@address.com” && $9 == “”) print $1 } ‘ | tr -d ‘*!’ | postsuper -d –
Afterwards check your mail queue again:
postqueue -p
postqueue -p | tail -n +2 | awk ‘BEGIN { RS = “” } / byrdsnestquilt@bellsouth\.net/ { print $1 }’ | tr -d ‘*!’ | postsuper -d –
Recent Comments