If you are running your own mail server you may need to delete messages. If you would like to delete them all use this command. you must be logged in as root.
[code]postsuper -d ALL[/code]
The next command will let you delete all email in the queue that is from a certain domain. You will have to be logged in as root.
[code]postqueue -p | tail -n +2 | awk ‘BEGIN { RS = "" } /@example\.com/ { print 1 }’ | tr -d ‘*!’ | postsuper -d -[/code]
If you only want to delete emails from a specific email address run this command. Make sure you are logged in as root.
[code]postqueue -p | tail -n +2 | awk ‘BEGIN { RS = "" } /username@example\.com/ { print 1 }’ | tr -d ‘*!’ | postsuper -d -[/code]
This last linux command works to delete a single message:
[code]postuper -d 070788B31[/code]
CLICK HERE to see our full Postfix Cheat Sheet using linux commands.
A1WEBSITEPRO Social Media Pages
Here are my social media pages, lets hook up!