Retrieving Emails From Remote Servers With getmail (Debian Etch) - Page 2
4 Integrating SpamAssassin Into getmailIf you'd like getmail to invoke SpamAssassin, you can do it as follows: First we must install SpamAssassin. As root, we run apt-get install spamassassin spamc Then we must configure SpamAssassin. This can be done in the file /etc/mail/spamassassin/local.cf. A valid file could look like this: vi /etc/mail/spamassassin/local.cf
(The comments in /etc/mail/spamassassin/local.cf will tell you more about the above settings.) If you enable Bayes (use_bayes 1), it is important that you put the line bayes_ignore_header X-getmail-filter-classifier into /etc/mail/spamassassin/local.cf so that Bayes ignores headers added by getmail. Finally we must enable the SpamAssassin daemon by setting ENABLED to 1 in /etc/default/spamassassin: vi /etc/default/spamassassin
Then we start the SpamAssassin daemon: /etc/init.d/spamassassin start Now log in as falko again on the command line and open ~/.getmail/getmailrc and add the following [filter] section: vi ~/.getmail/getmailrc
(If this is not your first [filter] section, you must rename the first [filter] section to [filter-1], the second one to [filter-2], and so on.) That's it. SpamAssassin is now integrated into getmail.
5 Integrating ClamAVClamAV is a project that publishes new releases very often, and once a new release is published, old versions will print out warnings. Therefore we must make sure that we install the latest ClamAV release by adding the following line to /etc/apt/sources.list (as root): vi /etc/apt/sources.list
Afterwards we update our packages database: apt-get update (- if you get GPG warnings, you can ignore them -) and install ClamAV: apt-get install clamav clamav-base clamav-daemon clamav-freshclam Then log in as the user falko again and edit ~/.getmail/getmailrc. If you want getmail to delete virus emails, add the following filter: vi ~/.getmail/getmailrc
If you want getmail to deliver infected messages, add the following filter instead: vi ~/.getmail/getmailrc
Again, keep in mind what I said about multiple [filter] sections in the previous chapter: If this is not your first [filter] section, you must rename the first [filter] section to [filter-1], the second one to [filter-2], and so on. That's it for the ClamAV integration.
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





print: 
Recent comments
3 hours 8 min ago
4 hours 51 min ago
7 hours 16 min ago
7 hours 22 min ago
11 hours 56 min ago
13 hours 57 min ago
17 hours 21 min ago
19 hours 27 min ago
19 hours 38 min ago
22 hours 5 min ago