On Wed, Jun 03, 2009 at 04:11:42PM +0100, no7find - wrote: > Hi list ! > > I want to know if there is any way to find out the IN and OUT messages > per queue (active, incoming, ...). And later I want to estimate the > rate on each queue.
The rate at which messages enter the incoming queue is determined by looking at log entries of the form (system dependent): postfix/cleanup[<pid>]: <queue-id>: message-id=... > The way I'm trying to this is by parsing mail.log file and it require > to active verbose/debug mode of queue manager daemon. > > master.cf: > qmgr fifo n - n 300 1 qmgr -v NO. DO NOT DO THIS. This totally destroys the performance you are trying to measure, and is COMPLETELY unnecessary. > Apr 16 17:52:44 debian postfix/qmgr[3012]: qmgr_active_feed: > incoming/809BB459F <-------------------------------------- > IN to You are measuring the wrong thing. When the rates are unequal and the queue manager is falling behind you won't see this until long after the message enters the incoming queue. The other log entry of interest is: postfix/qmgr[<pid>]: <queue-id>: from=<...>, which indicates entry into the active queue, from either incoming or deferred, to know which, you need state parsed from the logs for messages not yet logged as "removed" that have been in the active queue before. What's wrong with just measuing the incoming queue size? It is generally very near zero, and if not, you probably have a problem. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.