Mailq command - show most recent emails only
I often use the mailq command to see the queue on my Exim mail server. The queue is normally about 500-1000 emails long, due to the fact that there are thousands of people using the server, and the emails stuck on the queue are having problems with delivery.
I was wondering if there is some way that I can have the mailq command only show the very last screen of its results, without having to scroll through all of the emails that have been in the queue for hours, or days.
I could then enter 'watch mailq' and see instant results of new emails coming and going from the mailq in real time.
Any ideas on whether this is possible?