4

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.

Thanks in advance.

Cheer

6

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

You can run either of those through watch:

$  watch -n1 mailq
  • 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

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.