Continuously monitor the postfix Mailqueue (real time)

monitoringpostfixrealtime

Is there a command to look at the Mailqueue of Postfix in real time.

I know of the commands, postqueue -p and mailq.

What I am looking for is real time monitoring of the queue. Similar to when I monitor a log with tail -f.

Best Answer

I know of the commands, postqueue -p and mailq.

You can run either of those through watch:

$  watch -n1 mailq