Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft) - Page 4
9 Install amavisd-new, SpamAssassin, And ClamAVTo install amavisd-new, spamassassin and clamav, run the following command: apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 unzoo libnet-ph-perl libnet-snpp-perl libnet-telnet-perl nomarch lzop pax Afterwards we must configure amavisd-new. The configuration is split up in various files which reside in the /etc/amavis/conf.d directory. Take a look at each of them to become familiar with the configuration. Most settings are fine, however we must modify three files: First we must enable ClamAV and SpamAssassin in /etc/amavis/conf.d/15-content_filter_mode by uncommenting the @bypass_virus_checks_maps and the @bypass_spam_checks_maps lines: vi /etc/amavis/conf.d/15-content_filter_mode The file should look like this:
And then you should take a look at the spam settings and the actions for spam-/virus-mails in /etc/amavis/conf.d/20-debian_defaults. There's no need to change anything if the default settings are ok for you. The file contains many explanations so there's no need to explain the settings here: vi /etc/amavis/conf.d/20-debian_defaults
Finally, edit /etc/amavis/conf.d/50-user and add the line $pax='pax'; in the middle: vi /etc/amavis/conf.d/50-user
Afterwards, run these commands to add the clamav user to the amavis group and to restart amavisd-new and ClamAV: adduser clamav amavis Next we must edit the configuration file of the Freshclam daemon (that's the daemon that regularly and automatically fetches the newest virus signatures from a ClamAV mirror) because it contains a small bug. Open /etc/clamav/freshclam.conf and modify the NotifyClamd line as shown below: vi /etc/clamav/freshclam.conf
Then restart Freshclam (make sure no other Freshclam process (maybe of another ClamAV installation) is running because then our Freshclam will fail to start): /etc/init.d/clamav-freshclam restart Now we have to configure Postfix to pipe incoming email through amavisd-new: postconf -e 'content_filter = amavis:[127.0.0.1]:10024' Afterwards append the following lines to /etc/postfix/master.cf: vi /etc/postfix/master.cf
Then restart Postfix: /etc/init.d/postfix restart Now run netstat -tap and you should see Postfix (master) listening on port 25 (smtp) and 10025, and amavisd-new on port 10024: root@server1:/usr/local/sbin# netstat -tap
10 Install Razor, Pyzor And DCC And Configure SpamAssassinRazor, Pyzor and DCC are spamfilters that use a collaborative filtering network. To install them, run apt-get install razor pyzor dcc-client Now we have to tell SpamAssassin to use these three programs. Edit /etc/spamassassin/local.cf and add the following lines to it: vi /etc/spamassassin/local.cf
Restart amavisd-new afterwards: /etc/init.d/amavis restart
|
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
Red Hat Virtual Experience - a free virtual event. Dec. 9th




![Creative Commons Attribution License [Creative Commons Attribution License]](http://creativecommons.org/images/public/somerights20.gif)

print: 
Recent comments
8 hours 21 min ago
14 hours 10 min ago
16 hours 1 min ago
17 hours 46 min ago
21 hours 36 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 7 hours ago
1 day 13 hours ago
1 day 18 hours ago