Brent Gardner wrote:
Eric-

Does the original script work for you?

The one I have does this:
[r...@doris ~]# cat /var/log/qmail/smtp/@400000* | /home/shubes/spamdyke-stats.pl
spamdyke-stats build 2008110408


---------------- Summary ----------------
Allowed:        0    0.00%
Timeout:        0    0.00%
Errors :        0    0.00%
Denied :        0    0.00%
Total  :        0    0.00%

I went back to look at the original thread where I got this script:

http://www.mail-archive.com/[email protected]/msg01847.html

The script was written by Felix Buenemann and later altered based on input from you and a few others so that it would work with qmail log files or maillog files.

That's what I seem to remember.
IIRC, someone else had another script with more elaborate output. I don't think the source for that one was posted though.

Spamdyke on my toasters logs to /var/log/maillog, so I don't have genuine qmail logs to run through the script. I took a maillog file, copied it to a temp file and converted it into what I think is the proper format based on your postings to the spamdyke-users list from this time period. Then I copied a bunch of data from a real qmail smtp log into the temp file and ran the whole mess through the script and it seemed to work OK with out tai64nlocal. It returned the same numbers as the original maillog file.

I can send you a sample log file if you'd like.

It doesn't work if I pipe the temp file through tai64nlocal.

I wouldn't expect so.

Jack-

After further review I don't think the script is designed to run with a qmail smtp log and tai64nlocal, but it should work just fine with a raw qmail smtp log file.

The data you ran through from a maillog file produced numbers so low that it makes me wonder... Did the qmail smtp log that you ran through that produced a bunch of zeroes actually contain any Spamdyke log entries?


Brent Gardner



--
-Eric 'shubes'


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


Reply via email to