On Sun, Oct 26, 2008 at 11:55 AM, slamp slamp <[EMAIL PROTECTED]> wrote:
> On Sun, Oct 26, 2008 at 12:48 AM, Felix Buenemann
> <[EMAIL PROTECTED]> wrote:
>> Am 24.10.2008 22:45 Uhr, Felix Buenemann schrieb:
>>>> Here's what I'd prefer to see as output
>>>> > format:
>>>> >
>>>> > spamdyke-stats.pl v???
>>>> > Total  :  122154
>>>> > Allowed:   19514  15.97%
>>>> > Timeout:     141   0.12%
>>>> > Denied :  102499  83.91%
>>>> > ____Denied Breakdown____
>>>> > RDNS_MISSING         34229  33.39%
>>>> > IP_IN_CC_RDNS        26702  26.05%
>>>> > RBL_MATCH            21848  21.32%
>>>> > RDNS_RESOLVE         14910  14.55%
>>>> > SENDER_NO_MX          2684   2.62%
>>>> > OTHER                 2123   2.07%
>>>> > TOO_MANY_RECIPIENTS      3   0.00%
>>>> >
>>>> > Or something along those lines. ;) Note the Denied percentages are
>>>> > percents of Denied, not percents of Total.
>>> It's certainly possible to add this kind of output. I'll look into it,
>>> but I have some commercial projects coming up, so it'll have to be
>>> postponed for a while, unless you wanna add it yourself.
>>>
>>
>> Attached is a new versionl, that does approcimately what you want
>> (percentages are total no relative to DENIED or whatever):
>>
>> spamdyke-stats build 2008102607
>>
>>  173123   41.20%  DENIED_RDNS_MISSING
>>  130998   31.18%  DENIED_IP_IN_CC_RDNS
>>   37253    8.86%  DENIED_IP_IN_RDNS
>> --------------- Breakdown ---------------
>>   25200   81.68%  .net
>>    5533   17.93%  .com
>>      87    0.28%  .in-addr.arpa
>>      13    0.04%  host
>>      13    0.04%  pool
>>       5    0.01%  dial
>>       1    0.00%  dhcp
>> -----------------------------------------
>>   35246    8.38%  DENIED_RBL_MATCH
>> --------------- Breakdown ---------------
>>   24814   88.72%  zen.spamhaus.org
>>    1778    6.35%  ix.dnsbl.manitu.net
>>    1374    4.91%  bl.spamcop.net
>> -----------------------------------------
>>   34045    8.10%  DENIED_RDNS_RESOLVE
>>    5731    1.36%  ALLOWED
>>    2316    0.55%  TIMEOUT
>>     831    0.19%  DENIED_OTHER
>>     474    0.11%  ERROR
>>     114    0.02%  DENIED_SENDER_NO_MX
>>
>> ---------------- Summary ----------------
>> Allowed:     5731    1.36%
>> Timeout:     2316    0.55%
>> Errors :      474    0.11%
>> Denied :   411610   97.97%
>> Total  :   420131  100.00%
>>
>>
>> -- Felix
>>
>>
>> _______________________________________________
>> spamdyke-users mailing list
>> [email protected]
>> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
>>
>>
>
> this script does not work for me at all. i think i have the same setup as 
> eric.
>
> log-target=stderr
>
> spamdyke logs go to /var/log/qmail/smtp/current and i see them there.
>
> # cat /var/log/qmail/smtp/current  | perl ./spamdyke-stats.pl
> spamdyke-stats build 2008102607
>
>
> ---------------- Summary ----------------
> Allowed:        0    0.00%
> Timeout:        0    0.00%
> Errors :        0    0.00%
> Denied :        0    0.00%
> Total  :        0    0.00%
>

works after modifying the following line to:
 if( m/(ALLOWED|ERROR|TIMEOUT|((DENIED|FILTER)_[^ ]+))/ ) {
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users

Reply via email to