Continuously monitor the postfix Mailqueue (real time)

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.


Solution 1:

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

You can run either of those through watch:

$  watch -n1 mailq