Has anybody found a way to log the size of the mail queue? The last line of the output of the mailq command shows the number of messages in the queue.
-- 4 Kbytes in 3 Requests.
We have a rather old machine running Zimbra. Sometimes, mostly in the afternoon, it can get a little overloaded and messages can take 15-30 minutes to go through. When that happens I started getting IM's from our users wondering why they haven't received their email that was sent 5 minutes ago. I'd like to find a way to log the size of the mail queue and create a graph showing the data. Then the users can just check a URL pointing to the graph and see how backed up the queue is without asking me.