Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

Slightly OT: parsing spamass-milter logs

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


forrie at gmail

Jun 7, 2012, 2:50 PM

Post #1 of 3 (233 views)
Permalink
Slightly OT: parsing spamass-milter logs

We have sendmail and spamass-milter running -- I'm trying to figure out how
to parse out the SA-blocked IP addresses, but because of how spamass-milter
logs data (ie: no IP address), you have to use the MESSAGE-ID to find the
relay.

There must be some clever way to do this -- I don't know if the IP address
of the incoming rejected system is available to the spamass-milter process;
if it is, a modification to the code would suffice. otherwise, it would
require multiple parses of the maillog to determine the IP.

This is frustrating... but I'm sure someone else better at scripting has
figured it out.

Thanks.
--
View this message in context: http://old.nabble.com/Slightly-OT%3A--parsing-spamass-milter-logs-tp33978526p33978526.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


me at junc

Jun 8, 2012, 4:42 AM

Post #2 of 3 (202 views)
Permalink
Re: Slightly OT: parsing spamass-milter logs [In reply to]

Den 2012-06-07 23:50, forrie skrev:
> We have sendmail and spamass-milter running -- I'm trying to figure
> out how
> to parse out the SA-blocked IP addresses, but because of how
> spamass-milter
> logs data (ie: no IP address), you have to use the MESSAGE-ID to find
> the
> relay.

incorrect since if sender eq spammer dont add @ in massage-id then
sendmil will add you own hostname in sendmail and you will end block
your own mta by this rule

atleast that is what postfix does

> There must be some clever way to do this -- I don't know if the IP
> address
> of the incoming rejected system is available to the spamass-milter
> process;
> if it is, a modification to the code would suffice. otherwise, it
> would
> require multiple parses of the maillog to determine the IP.

if you need to make blocking, then you need aswell more loging, if you
do not do this there is only one way to make rejecting of spam but parse
spamming ips with

spamassassin 2>&1 -D -t spammsg | grep untrusted | less

this is a ip relay list, build a local rbl from it, and use that as rbl
check in sendmail

og make it as a rbl check in spamassassin with a high score so
spamas-milter will reject it :=)

> This is frustrating... but I'm sure someone else better at scripting
> has
> figured it out.

its just that you have no logs from sendmail/spamas-milter

nothing todo with spamassassin


KMcGrail at PCCC

Jun 8, 2012, 6:02 AM

Post #3 of 3 (203 views)
Permalink
Re: Slightly OT: parsing spamass-milter logs [In reply to]

On 6/7/2012 5:50 PM, forrie wrote:
> We have sendmail and spamass-milter running -- I'm trying to figure out how
> to parse out the SA-blocked IP addresses, but because of how spamass-milter
> logs data (ie: no IP address), you have to use the MESSAGE-ID to find the
> relay.
Continuing the off-topic thread, I switched from spamassmilter to
MIMEDefang back in 2003. I think it's a much better framework and an
amazing tool. I suggest you look into it.

Regards,
KAM

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.