On Thursday, July 09, 2009 at 03:44 CEST, Sahil Tandon <sa...@tandon.net> wrote:
[...] > You might be able to use the fact that qmgr(8) logs the original recipient > count. Example: > > postfix/qmgr[54662]: 98EF25C51: from=<f...@bar.org>, size=717, nrcpt=5 > > Take care to avoid double counting in situations where mail to some > recipients is temporarily deferred. In that case, Postfix periodically > retries and similar qmgr(8) log entries will contain that same recipient > count with that same queue ID. That is probably one of many caveats when > parsing the logs to aggregate recipients per sender over any time period. Doesn't the nrcpt atttribute contain the number of *remaining* recipients? In that case the number will be steadily decreasing. But regardless qmgr(8) will log this line multiple times when deferrals occur, so care must be taken not to count the recipients multiple times. [...] -- Magnus Bäck mag...@dsek.lth.se