Tuesday, October 29, 2013

How to Empty Postfix Mail Queue

mailq | tail +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($8 == "email@address.com" && $9 == "") print $1 } ' | tr -d '*!' | postsuper -d - sudo postsuper -d ALL ifconfig | grep netmask | grep -v 127.0.0.1 | awk {'print $2'}L

Monday, October 28, 2013

Saturday, October 5, 2013

How to count mail on queue

sudo find /var/spool/postfix/deferred/. ! -name . ! -name '?' -print | wc -l