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.

1 Answer 1

9

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

You can run either of those through watch:

$  watch -n1 mailq
1
  • 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, 2014 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.