SpamFilter

To filter out spam on your s23.org accounts:

We have AmaVis running, which already marks the Spam and Virii it finds in the mail subject for you.

Now you just want to sort that out automatically?

You can use an Exim filter file, to sort it out before it arrives in your Inbox:

Make a file called .forward  in your /home directory:

If the first line looks like this:


 * 1)   Exim filter   <<== do not edit or remove this line!

it becomes a filter, rather than just a regular forwarding.

Here is a simple example i use to sort out the messages from amavis:

if $header_from: contains "amavisd" then save ~/Mail/Spam endif
 * 1)   Exim filter   <<== do not edit or remove this line!

you can make very extensive filtering rules, using all variables explained here:

http://www.exim.org/exim-html-3.30/doc/html/filter_toc.html

you can also do things like this of course:

if $h_To: contains "debate" then save ~/Mail/CCC elif $header_from: contains "amavisd" then save ~/Mail/Spam ... and so on..

if you make your own filter remember to test it first, using the -bf option:

read here: http://www.exim.org/exim-html-3.30/doc/html/filter_3.html#SEC3 /usr/lib/sendmail -bf new-filter <test-message

more examples: http://www.exim.org/exim-html-3.30/doc/html/filter_29.html#SEC29