Command Line to Delete Mailq Postfix
mailq | tail -n +2 | awk 'BEGIN { RS = "" } / root@mailhub.mailserver\.com$/ { print $1 }' | tr -d '*!' | postsuper -d -
Change the root@mailhub.mailserver\.com$/ as per emails you want to delete from mailq.
No comments:
Post a Comment