[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering attachments off by ZMailer



I at one time had a little thing sitting before teh router that looked
for spam.

    $spamchance+= 10 if ( $body =~ /remove ?.? (?:(?:in)|(?:as)) (?:the)? .?subject/six );
    $spamchance += 10
	if ( $body =~ /(?:(?:like)|(?:instructions)) to be removed from our.{1,15}list/six );
    $spamchance ++ if ( $body =~ /\bauto-?responder\b/si );
    $spamchance += 10
	if ( $body =~ /our research indicates.{1,8}the following material/six );

    $spamchance += 10
	if ( $body =~ /Please do ?n[\'o]t .{,5} reply.{,10} send all inquiries to/six );


    $spamchance += 4 if ( $body =~ /remove.{1,15} from .{0,20} mailing/six );
    $spamchance += 10 if ( $body =~ /\bwildauction\b/six );

    $spamchance += 3
	if ( $body =~ /If you do not want to receive/six );

... and so on, and if the overall score was too high, *poof*.

I had the router scan a directory other than the expected one, and had
my scanner look for files in router/ and move OK files to the router's
new directory.

Simple.  But it didn't really take the spam.  Spammers learnt.

Looking for attachments should be just as simple.

--Arnt