Clamav 版本:0.88.4
SpamAssassin 版本:3.1.4
Amavisd-new 版本:2.4.2
解压 install-Clam-SA-20060812.tar.gz 文件后,进入目录,里面有安装脚本:
install.sh,详细安装步骤如下:
# tar -zxvf install-Clam-SA-20060812.tar.gz
# cd install-Clam-SA
# cd perl-tar
# tar -zxvf perl-5.8.8.tar.gz (升级系统的 perl 版本)
# cd perl-5.8.8
# ./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"
# make
# make test (测试一下,没问题后再 install )
# make install
注意升级 perl 的话,可能会造成系统的其他perl应用不正常,请慎重升级.
# ./install.sh
(开始安装 Clamav-0.88.4 Mail-SpamAssassin-3.1.4 以及后续
安装 amavisd-new-2.4.2 所需要的各模块文件 )
说明: Clamav-0.88.4 默认安装在 /usr/local/clamav
SpamAssassin 默认配置文件在 /etc/mail/spamassassin/
SpamAssassin 默认规则文件在 /usr/share/spamassassin/
接下来,你还需要安装下面三个模块文件,(安装文件已经放置在 perl-tar 目录里)
razor-agents-2.82.tar
razor-agents-sdk-2.07.tar
dcc.tar.Z
接下来,就需要安装 amavisd-new-2.4.2 了,安装步骤如下:
====================== install Rar Zip Arj ======================
# cd rpm
# rpm -ivh *.rpm
# cd ..
====================== install compress 4.0.1 ======================
# cd perl-tar
# mkdir compress
# tar -zxvf compress-4.0.1.tar.gz -C compress
# cd compress
# make
# make install
# cd ..
# rm -rf compress
============================================================================
# /usr/sbin/adduser -s /bin/false -c "Amavis User" -d /var/amavis amavis
# mkdir /var/amavis/tmp /var/amavis/var /var/amavis/db /var/amavis/home
# chown -R amavis:amavis /var/amavis
# chmod -R 750 /var/amavis
# tar -zxvf amavisd-new-2.4.2.tar.gz
# cd amavisd-new-2.4.2
# cp amavisd /usr/local/sbin/
# chown root /usr/local/sbin/amavisd
# chmod 755 /usr/local/sbin/amavisd
# cp amavisd_init.sh /etc/init.d/amavisd
# chmod 755 /etc/init.d/amavisd
# /sbin/chkconfig --add amavisd
# /sbin/chkconfig amavisd on
# mkdir /var/virusmails
# chown -R amavis:amavis /var/virusmails
# chmod 750 /var/virusmails
# patch -p0 # cp amavisd.conf /etc/# cd ..# rm -rf amavisd-new-2.4.2# chown -R root:root /etc/amavisd.conf# chmod 600 /etc/amavisd.conf==============================================附件为我实际安装使用后,配置好了的一些文件。(仅供参考)1)其中 amavisd.conf 文件中有些重要的参数,需根据你的实际情况加以修改。$mydomain = 'test.com.cn';$myhostname = 'test.com.cn';$final_virus_destiny = D_PASS;$final_banned_destiny = D_PASS;$final_spam_destiny = D_PASS;$final_bad_header_destiny = D_PASS;2)clamd 文件为 clamav 的启动文件,使用:cd clamav-0.88.4cp contrib/init/RedHat/clamd /etc/rc.d/init.d/chmod 755 /etc/rc.d/init.d/clamd/sbin/chkconfig --add clamd/sbin/chkconfig clamd on 设置 clamav 为系统自启动项3)mkdir /var/log/clamavchown -R amavis:amavis /var/log/clamav===========================================