I expect that it's simple too. Probably just a matter of parsing the log message(s). I'll let you have a go at it. If you get stuck, give a holler.

[email protected] wrote:
It works great as long as you are using the default log location for
Spamdyke (/var/log/maillog).  I would love to see it work on the qtp
defaulted installation though, as I would imagine that's how most people
are implementing it on this list.  I am not sure what it needs to make it
work.  Maybe I can figure out what it is looking for.  I have no clues on
perl scripting, but sometimes can figure out the simple stuff, and I am
betting this is a simple fix.


I thought someone had this working with the qmail-style logs. If/when
you guys get it fixed to work with either log type, I'll see about
adding it to the qtp package.

[email protected] wrote:
Don't be sorry - you're trying to help me!!! :)

I got the file to run now - but it returns an oddity;

[r...@mail spamdyke]# cat /var/log/qmail/smtp/current |
/etc/spamdyke/spamdyke-stats

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

I changed my logging over in Spamdyke to the normal /var/log/maillog and
I
get hits:

[r...@mail spamdyke]# cat /var/log/maillog |
/etc/spamdyke/spamdyke-stats
       2   66.66%  ALLOWED
       1   33.33%  DENIED_SENDER_BLACKLISTED

---------------- Summary ----------------
Allowed:        2   66.66%
Timeout:        0    0.00%
Errors :        0    0.00%
Denied :        1   33.33%
Total  :        3  100.00%
[r...@mail spamdyke]# cat /var/log/maillog |
/etc/spamdyke/spamdyke-stats
       2   50.00%  ALLOWED
       1   25.00%  DENIED_IP_IN_CC_RDNS
       1   25.00%  DENIED_SENDER_BLACKLISTED

---------------- Summary ----------------
Allowed:        2   50.00%
Timeout:        0    0.00%
Errors :        0    0.00%
Denied :        2   50.00%
Total  :        4  100.00%
[r...@mail spamdyke]# cat /var/log/maillog |
/etc/spamdyke/spamdyke-stats
       2   50.00%  ALLOWED
       1   25.00%  DENIED_IP_IN_CC_RDNS
       1   25.00%  DENIED_SENDER_BLACKLISTED

---------------- Summary ----------------
Allowed:        2   50.00%
Timeout:        0    0.00%
Errors :        0    0.00%
Denied :        2   50.00%
Total  :        4  100.00%


You have some problem using the normal qmt logs at
/var/log/qmail/smtp/current.  That is where Spamdyke logs are kept by
default of the script Jake has in QTP.  I gotta learn some perl
scripting
- that is really nice.


[email protected] wrote:
Maybe I am challenged today - I don't know.  I extracted the files in
my
directory.

Then:
[r...@mail spamdyke]# chmod +x /etc/spamdyke/spamdyke-stats

Since my Spamdyke logs are in /var/log/qmail/smtp/ I sent this
command:
[r...@mail spamdyke]# cat /var/log/qmail/smtp/current | egrep -i -e
"(^Feb
23 )" | /etc/spamdyke/spamdyke-stats

I get this in return:

[r...@mail spamdyke]# cat /var/log/qmail/smtp/current | egrep -i -e
"(^Feb
23 )" | /etc/spamdyke/spamdyke-stats
Missing right curly or square bracket at /etc/spamdyke/spamdyke-stats
line
185, at end of line
syntax error at /etc/spamdyke/spamdyke-stats line 185, at EOF
Execution of /etc/spamdyke/spamdyke-stats aborted due to compilation
errors (#1)
    (F) The lexer counted more opening curly or square brackets than
closing
    ones.  As a general rule, you'll find it's missing near the place
you
    were last editing.

Uncaught exception from user code:
        Missing right curly or square bracket at
/etc/spamdyke/spamdyke-stats line 185, at end of line
syntax error at /etc/spamdyke/spamdyke-stats line 185, at EOF
Execution of /etc/spamdyke/spamdyke-stats aborted due to compilation
errors.
 at /etc/spamdyke/spamdyke-stats line 185


What did I do to it???


Sorry, it was me.  I missed a right curly bracket ('}') at about line
98
when I was copying it.

I corrected it and tested it before attaching it this time.


Brent


---------------------------------------------------------------------------------
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]


--
-Eric 'shubes'




--
-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