You will need to adjust the search string to match your mail logs.

my $t = grep /connect from/, @wholefile;                        # total
                my $s = grep /identified spam/, @wholefile;     # spam
                my $d = grep /reject:/, @wholefile;                 #
ruleset
                my $c = grep /Cleaned/, @wholefile;              # cleaned
                my $v = grep / FOUND  $/, @wholefile;       # virus found by
ClamAV
                my $u = $s + $d + $v;                                   #
undelivered

Just tail -f your maillog and look for the identifying lines to match what
the script is looking for.  For instannce, the downloaded had /from=/ and on
my postfix install it uses /connect from/  I also don't use ClamAV, so that
column is always going to be 0's for me until I tweak the script to discard
that column.

I also need to change logrotate to gzip my files.  (Great idea actually.  I
still have the default 4 week rotation and I would like to change that.)

Thanks for the script!

----- Original Message ----- 
From: "Greg Webster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, October 30, 2003 1:18 PM
Subject: [SAtalk] stats script, by (fairly) popular demand


> Interesting...once I changed to the Debian mail.log.#.gz filename spec,
> I got the following:
>          Mails spamassassin  rejected      scanner       total mails
>          Total says 'spam'   by ruleset    says virus    undelivered
>  Oct  12 35052 0 ( 0.00%)    0 ( 0.00%)    0 ( 0.00%)     0 ( 0.00%)
>  Oct   5 47425 0 ( 0.00%)    0 ( 0.00%)    0 ( 0.00%)     0 ( 0.00%)
>  Sep  28 42819 1 ( 0.00%)    0 ( 0.00%)    0 ( 0.00%)     1 ( 0.00%)
>
> Any idea what I've done wrong?
>
> Thanks,
>
> Greg
>
> -- 
> Greg Webster - [EMAIL PROTECTED]
> In-Touch Software Corporation
> Ph: (604)278-0515 - Fax: (604)608-3112
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Spamassassin-talk mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to