Spam Filter

From IT Service Wiki
Revision as of 16:17, 7 July 2008 by Thomas (talk | contribs)
Jump to: navigation, search

The spam filter must be activated on per users basis. The system administrator is not allowed to manipulate the users mail until he is adviced to.

We have predefined filter sets which you can include into your .procmailrc. Open or create a file .procmailrc in the root of you home directory enter the following line:

 INCLUDERC=FILENAME

FILENAME can be

/etc/procmailrc.junkfilter/mark 
Only analyses and marks the mail (in the header). The mark are spam points, which is the basis for sorting in the following filter rules
/etc/procmailrc.junkfilter/keep-all  
moves the junk to subfolders, but does not delete it. A mail need to get 5 spam points to be moved to the subfolder "Junk". Mails with more then 8 points are moved to the Folder "Definitely" which is a subfolder of "Junk". This rule set is not recommended, because in the past many users were not subscribed to "Junk/Definitely" never noticed that ten thousands of spam mail are messing up their home. If you really want this, please check if you are subscribed to both folders and regularly check the contents and delete.
/etc/procmailrc.junkfilter/purge-high
Junk Mails with 5 to 8 points are moved to "Junk". Junk with more the 8 points is deleted silently, instead of stored in the "Definitely" Folder. This is the recommended setting, because no correct mail gets more than 8 points. Even more than 5 for a correct mail does realy seldom. Use still have to delete spam from the "Junk"-Folder.
/etc/procmailrc.junkfilter/purge-all 
Every suspected spam is delete (more than 5 points). This rule set is recommended for accounts which are rarely used or get massiv spam.

It is up to you, we are not responsible if you miss an important Mail!

To be translated:

Wer sein Spam-Limit anpassen will, muss die entsprechende Zeile in .spamassassin/user_prefs aktivieren (Kommentarzeichen weg) und den Wert anpassen. Weniger als 2 würde ich auf keinen Fall setzen.

Das Spam-Markieren läuft in /etc/procmailrc.junkfilter/mark über Aufruf von 'spamc' mit entsprechender Server-Auswahl. Der entsprechende Daemon 'spamd' läuft derzeit auf 'tre' (FIAS) und 'tantalos' (ITP), wobei ersterem der Vorzug gegeben wird, weil die bessere Maschine. Generell darf sich niemand darauf verlassen, wie es bei uns genau konfiguriert ist. Wer den Spam-Filter braucht, macht INCLUDERC=... mit einem der obigen Scripts.