[Mimedefang] Seeing whitelist/blacklist status in mail and log?

Jan Pieter Cornet johnpc at xs4all.nl
Fri Aug 6 09:47:04 EDT 2004


On Thu, Aug 05, 2004 at 04:22:42PM -0700, Tory Blue wrote:
> Now we can have some fune.
> 
> Want to make my logs a bit more understandable.
> 
> I would like to identify if a user is whitelisted, or blacklisted.
> 
> So in the log I would be able to see, User in whitelist, User in blacklist,
> so that while watching the log I can easily test new whiteliste/blacklist
> additions..

If you use the blacklist/whitelist feature of spamassassin, then you're
going to have to figure out how spamassassin communicates that information
back to you. I'm not sure it even can, and at first glance I don't see
how exactly. It might be in one of the symbolic test names... you
could try logging the result of
    spam_assassin_status($sa_config)->get_names_of_tests_hit();

-- 
#!perl -wpl # mmfppfmpmmpp mmpffm <pmmppfmfpppppfmmmf at fpffmm4mmmpmfpmf.ppppmf>
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}->(map{/p|f/i+/f/i}split//,$&)+97):qw(m p f)[map{((ord$&)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$&;$f.eig;                                # Jan-Pieter Cornet



More information about the MIMEDefang mailing list