X-Git-Url: http://git.jankratochvil.net/?p=PerlMail.git;a=blobdiff_plain;f=My-Audit.pm;h=fbcb4d9f32006c62f04d18849c800e0772ade03b;hp=d3e4013b30e3178ad78d56576d09517b734b8f53;hb=dbd2c430a60390525dc17a0083867a006763c50f;hpb=815d559db331524d589531a8add62fec0f359ea2 diff --git a/My-Audit.pm b/My-Audit.pm index d3e4013..fbcb4d9 100644 --- a/My-Audit.pm +++ b/My-Audit.pm @@ -24,6 +24,11 @@ sub audit_init "atrey.karlin.mff.cuni.cz", # short@atrey.karlin.mff.cuni.cz "k332.feld.cvut.cz", # short@k332.feld.cvut.cz ); + @dnsbl_whitelist=( + "195.250.128.83", # smtp3.vol.cz; vol.cz.multistage.blackholes.five-ten-sg.com. + "64.49.222.22", # mail.pm.org: rackspace.com.spam-support.blackholes.five-ten-sg.com. + "208.147.243.5", # gambit.liquidcomm.net: cw.net.spam-support.blackholes.five-ten-sg.com. + ); } sub audit @@ -51,6 +56,7 @@ sub audit store "=spamo" if headeris "From",''; store "=spamo" if headeris "From",''; store "=spamo" if headeris "From",''; + store "=spamo" if headeris "From",''; { # weak detection: files with text/html w/o text/plain are usually a spam my @types_linear=map({ mime_type($_); } parts_linear()); @@ -80,6 +86,7 @@ sub audit store "=err","bell" and return if headerhas \&Received_for,''; # ppl-wished foreign remapping, Reply-To is left untouched! + # FIXME: modifications are now being dropped by &write_message! header_remap("From",{ 'kerere@post.cz' =>'kamzik@k332.feld.cvut.cz', 'profes@mbox.vol.cz' =>'kratochvilova@egp.cz', @@ -124,6 +131,7 @@ sub audit store "=9kd","log" if headeris "Sender" ,''; store "=spong","log" if headeris "List-Id" ,''; store "=gtkd","silent" if headeris "List-Id" ,''; + store "=gnomevfs","log" if headeris "List-Id" ,''; store "=mffstatnice","bell" if headeris "List-Post",''; store "=hw","log" if headeris "List-Post",''; store "=gnokii","log" if headeris "List-Id" ,''; @@ -160,6 +168,9 @@ sub audit store "=libtoolpat","log" if headeris "List-Id" ,''; # own webs store "=energie","bell" if headeris "From" ,qr/^EnergieWeb/; + store "=ats","log" if headeris("From" ,'') + || (headeris("From",'') && headerhas("To",'')); + store "=atscasablanca","log" if headeris "From" ,''; # Petr Koutecky does not mark his Stuff store "=koutecky","log" if headeris "From" ,'';