You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "M.Lewis" <_S...@cajuninc.com> on 2005/09/06 06:20:05 UTC

SA Reporting script

I have a perl script to report some SPAM statistics from maillog. It 
started with something I found on the www that I could not make work. So 
it is pretty much a complete rewrite of the 'concept' of the original 
script except that mine works, at least for me.

I'm using Amavis-New, SA, and ClamAV.

I'd like to get a few people to test it with their installations and see 
if it works properly. Also any ideas that you might have for improvement.

If you're interested in testing, please mail me off list 'cajun' (same 
domain).

Thanks,
Mike


The output of the script looks like this (hopefully it won't wrap):

                                    Mail Statistics
----------------------------------------------------------------------------------------
           Total   spamassassin    rejected      scanner      total 
mails    total mails
           Mails   says 'spam'    by ruleset    says virus 
undelivered     delivered
----------------------------------------------------------------------------------------
  Aug  20   382   275 (71.99%)    0 ( 0.00%)    2 ( 0.52%)   277 
(72.51%)   105 (27.49%)
  Aug  21   258   153 (59.30%)    0 ( 0.00%)    2 ( 0.78%)   155 
(60.08%)   103 (39.92%)
  Aug  22   400   227 (56.75%)    0 ( 0.00%)    7 ( 1.75%)   234 
(58.50%)   166 (41.50%)
  Aug  23   330   149 (45.15%)    6 ( 1.82%)   18 ( 5.45%)   173 
(52.42%)   157 (47.58%)
  Aug  24   368   209 (56.79%)    0 ( 0.00%)    6 ( 1.63%)   215 
(58.42%)   153 (41.58%)
  Aug  25   340   194 (57.06%)    0 ( 0.00%)    0 ( 0.00%)   194 
(57.06%)   146 (42.94%)
  Aug  26   347   170 (48.99%)    0 ( 0.00%)    6 ( 1.73%)   176 
(50.72%)   171 (49.28%)
  Aug  27   178    91 (51.12%)    0 ( 0.00%)    0 ( 0.00%)    91 
(51.12%)    87 (48.88%)
  Aug  28   218   120 (55.05%)    3 ( 1.38%)    0 ( 0.00%)   123 
(56.42%)    95 (43.58%)
  Aug  29   366   212 (57.92%)    0 ( 0.00%)    0 ( 0.00%)   212 
(57.92%)   154 (42.08%)
  Aug  30   357   195 (54.62%)    0 ( 0.00%)    6 ( 1.68%)   201 
(56.30%)   156 (43.70%)
  Aug  31   331   163 (49.24%)    0 ( 0.00%)    0 ( 0.00%)   163 
(49.24%)   168 (50.76%)
  Sep   1   349   165 (47.28%)    0 ( 0.00%)    4 ( 1.15%)   169 
(48.42%)   180 (51.58%)
  Sep   2   364   183 (50.27%)    0 ( 0.00%)    2 ( 0.55%)   185 
(50.82%)   179 (49.18%)
  Sep   3   271   131 (48.34%)    2 ( 0.74%)    2 ( 0.74%)   135 
(49.82%)   136 (50.18%)
  Sep   4   308   176 (57.14%)    4 ( 1.30%)    2 ( 0.65%)   182 
(59.09%)   126 (40.91%)
  Sep   5   301   157 (52.16%)    3 ( 1.00%)    4 ( 1.33%)   164 
(54.49%)   137 (45.51%)

========================================================================================
Totals    9424  6094 (64.66%)   70 ( 0.74%)   95 ( 1.01%)  6259 (66.42%) 
  3165 ( 1.45%)


Processed 211745 lines
Processing time was  4 wallclock secs ( 3.58 usr +  0.10 sys =  3.68 CPU)