Search:  
Gentoo Wiki

KMail/SpamAssassin_and_ClamAV


Please format this article according to the guidelines and Wikification suggestions, then remove this notice {{Wikify}} from the article


Image:Klogo-official_100x100.png

K Desktop Environment

Location: KMail/SpamAssassin and ClamAV

KDE Pages

Install

Applications

Upgrading

Tips

Other


edit

Contents

Securing Kmail

You can secure Kmail by using SpamAssassin and ClamAV

SpamAssassin

This is tested for Spamassassin v3.1.0

You need Spamassassin emerged and configured. It is better to have the daemon spamd running, to avoid permanent program starting delays. "rc-update add spamd default" will start the daemon at startup. Access to spamassassin is then done through the client spamc.

You have three configuration files with version 3.x :

Whitelists and blacklists can be defined in local.cf or user_prefs like, for example (see this thread):

whitelist_from  *@kickingdragon.com 
whitelist_from  *@megatron.kickingdragon.com 
blacklist_from  blythe@01casinos.com 

Once everything is configured, you can play with spamassassin in console:

spamassassin -D < mail-message

or

spamassassin -D --lint

will show a lot of debug messages and inform you if the plugins are working etc.

The literature often says that spamassassin modifies the message headers. This is wrong. Spamassassin outputs a modified version of the mail to the output you specify.

spamassassin < mail-message > new-mail-message.txt will save the modified mail message for filtering.

ClamAV

Install ClamAV

emerge -av clamav

Include clamd in the default runlevel

rc-update add clamd default

Integrate these programms with Kmail

To integrate spamassassin and ClamAV in kmail, run the appropiate wizards (Tools -> Anti-Spam Wizard; Tools -> Anti-Virus Wizard).

With spamassasin, it will set up two filters which will be applied to classify incoming email. You can manually apply the filters on email which is wrongly classified - spamassassin's statistical learning rules will be updated when you do this.

Retrieved from "http://www.gentoo-wiki.info/KMail/SpamAssassin_and_ClamAV"

Last modified: Sat, 06 Sep 2008 15:51:00 +0000 Hits: 9,355