Am 26.10.2008 17:19 Uhr, slamp slamp schrieb:
> On Sun, Oct 26, 2008 at 12:12 PM, slamp slamp <[EMAIL PROTECTED]> wrote:
>> On Sun, Oct 26, 2008 at 11:55 AM, slamp slamp <[EMAIL PROTECTED]> wrote:
[...]
>>> 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)_[^ ]+))/ ) {
>>
>
> changing 28 to 43 works as well if you keep the ^ in the following
> line: if( m/^(ALLOWED|ERROR|TIMEOUT|((DENIED|FILTER)_[^ ]+))/ ) {
> if( substr($_,0,1) eq '@' ) {
> $_ = substr $_,43;
It'd be helpful to see some sample lines from your logs to see how they
differ fromt he expected format.
-- Felix
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users