[pmmail-list] Built-in Anti-Spam

L.Willms pmmail-list@blueprintsoftwareworks.com
Sat, 07 Sep 2002 12:14:47 +0200 (MES)


On Sat, 07 Sep 2002 08:50:13 +0200 (MES), L.Willms wrote:

> On Sat, 07 Sep 2002 01:02:38 +0200 (CDT), Winfried Tilanus wrote:
> 
> > 
> > http://www.xs4all.nl/~wtilanus/spam.html
> > 
> > I got so fed up with the spam, I wrote a script for that.

  [...]
  
>    Did you try out calling the spamcheck in a filter by the PROGRAM 
> criterion? 
> It would then be enough to scan the headerlines, and write the result in 
> another file which is handed to the script as second parameter. The content 
> of that file is compared by the filter to a value given in the condition,
> and then you can act on that result. 

  Well, I could not resist changing that script, and attached my
changed version. 

  The main changes are: 
  1) it works for the PROGRAM tag in a PMMail filter; 
  2) it does not read in the whole message, but only the header
lines
       and does not change the original mail file;
  3) it does not check every header, but only RECEIVED: headers; 
  4) the basic mechanism of the blacklisting is explained;
  5) a debug mode is added (give "debug" as third parameter). 

  I think, it would run much faster than the original version by
Winfried Tilanus. 

  Configure the script in a PMMail filter with a complex condition
like this: 

  PROGRAM.<X:\your_path_to_it\spamcheck.cmd> = "X-Spam-Warning"

  Where X is the drive where "your_path_to_it" is the path to where
you put the script. 

   This condition can, of course, be combined with other
conditions, like "h.subject = 'Viagra'" or "h.subject = 'mortgage'"
and so on. 

  You may change the script if the checking is too strict -- in the
current version it also acts on IP-addresses which are only "Open
relay", but which may be valid sender hosts. There is a comment in
the place where that change should be made. 

Yours, 
Lüko Willms
-----------------------------------------------
Frankfurt/Main  

- pmmail-list - The PMMail Discussion List ---------------------------
To POST to the list, send your message to:
pmmail-list@blueprintsoftwareworks.com

To UNSUBSCRIBE, send a message to mdaemon@bmtmicro.com 
with the first line of the message body being...
UNSUBSCRIBE pmmail-list@blueprintsoftwareworks.com
---------------------------------------------------------------------