Jesse Guardiani <[EMAIL PROTECTED]> writes:

> Hmmm... I wonder how I could keep track of messages/day?
>
> My users each have their own .tmdarc file and their own log
> files.
>
> I suppose I could write a script that enters each virtual
> home dir and pulls stats from the log files, but that would
> be incredibly inefficient...

How about just using your MTA's logfiles?  For example, my Postfix
system has entries that look like this:

Aug  7 11:05:12 hrothgar postfix/local[12463]: C1E84164681:
to=<[EMAIL PROTECTED]>, orig_to=<jasonrm>, relay=local, 
delay=5, status=sent ("| /sw/bin/python2.1 $HOME/cvs/tmda/dist/bin/tmda-filter")

So it's easy to count the occurrences of 'tmda-filter' to arrive at a
system total.
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to