6

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.

Stuggi
  • 3,506
  • 4
  • 19
  • 36
elJoel
  • 63
  • 1
  • 1
  • 3

1 Answers1

9

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

You can run either of those through watch:

$  watch -n1 mailq
EEAA
  • 109,363
  • 18
  • 175
  • 245
  • 1
    If you want to filter the output using `grep`, you will have to specify the command inside quotes like this: `watch 'mailq | grep "[^A-F0-9]"'`. – Ladadadada Oct 20 '14 at 16:12