Do you know if any log analizer that will deal with tmda log files to give
stats
on everything?

-John

----- Original Message ----- 
From: "Gre7g Luterman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 01, 2003 6:36 PM
Subject: Re: Statistics


On Wed, 2 Jul 2003 11:57:34 +1200, "Mike Usmar" <[EMAIL PROTECTED]>
wrote:

> I want to able to record how many emails are either being dropped or
bounced
> from all our customers blacklists (we as an ISP implement a spamfilter
based
> on tmda to our customers).

1. Create an incoming log by adding to your /etc/tmdarc:

FILTER_INCOMING="/path/to/in/log"

2. Create a daily cron job that does the following three things...

a. Count the number of bounces in the log:

echo `date` bounces: `grep "^Actn: BOUNCE " /path/to/in/log | wc -l` \
  >> /path/to/running/log

b. Count the number of dropped messages in the log:

echo `date` bounces: `grep "^Actn: DROP " /path/to/in/log | wc -l` \
  >> /path/to/running/log

c. Flush today's log:

rm -f /path/to/in/log

Gre7g.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to