5

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,366
  • 4
  • 17
  • 34
elJoel
  • 53
  • 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
  • 108,414
  • 18
  • 172
  • 242
  • 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