postfix

See queue stats

qshape active
qshape deferred

Flush queue (deferred —> active)

postqueue -f

Delete specific emails (sent to moc.niamod|resu#moc.niamod|resu) in the queue

mailq | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($8 == "user@domain.com" && $9 == "") print $1 }' | tr -d '*!' | postsuper -d -

See postsuper man page for example
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License