Kris Deugau wrote:
> Bob Proulx wrote:
> > How hard would it be to use SpamAssassin's mail handling routines to
> > extract the Received: IP address header chain using the already
> > configured trusted_networks configuration?  Does anyone have any hints
> > on how I might go about doing this?  If I could get this information
> > into my own Perl script then I would be able to do some exploration of
> > a few ideas.
> 
> I wrote a tool to do this as a part of a custom-local-DNSBL utility set;
>  https://secure.deepnet.cx/trac/dnsbl.  The particular script that sucks
> up relay IPs (and message URIs) is
> https://secure.deepnet.cx/svn/dnsbl/trunk/dnsbl/extract-data.  Note that
> there are quite a few things hard-coded that you may want to tweak - or
> more likely just drop.

Ah, very good!  Yes.  Something like that is what I was looking for.
Thank you very much for suggesting it.  

I should also note that I looked at spamikaze too.  But spamikaze's
scanner could use some more implementation.  It is just a little too
simplistic.

> This particular script happens to slurp up messages via IMAP, but it
> should be fairly simple to pull them from somewhere else for processing.

It has a good set of comments around the interesting places.  I think
this will help get me going much more quickly than otherwise.

Thanks!
Bob

Reply via email to