在postfix下编译安装amavisd-new+clamav+SpamAss…

2009-05-13 15:15:50来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


1.安装
[url=javascript:;]clamav[/url]
wget
http://keihanna.dl.sourceforge.net/sourceforge/clamav/clamav-0.88.tar.gz

groupadd clamav
useradd -g clamav -s/bin/false -d/dev/null clamav
./configure --prefix=/usr/local/clamav --with-dbdir=/usr/local/share/clamav
make
make check
make install

vi /usr/local/clamav/etc/clamd.conf
LogSyslog
LogVerbose
LogFacility LOG_MAIL
LogFile /var/log/clamav/clamd.log
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /usr/local/share/clamav
LocalSocket /var/run/clamav/clamd
StreamMaxLength 10M
User amavis
ScanMail
ScanArchive
ScanRAR
vi /usr/local/clamav/etc/freshclam.conf
DatabaseDirectory /usr/local/share/clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogSyslog
LogVerbose
DatabaseOwner amavis
Checks 12
DatabaseMirror db.CN.clamav.net
DatabaseMirror database.clamav.net
NotifyClamd
注意:注释掉两个
[url=javascript:;]文件[/url]
中Example那行
添加amavis用户和组,配合
[url=javascript:;]amavisd[/url]
使用
groupadd amavis
useradd -g amavis -s /bin/false -c "Amavis User" -d /dev/null amavis
创建日志文件夹并设置权限
mkdir /var/log/clamav
chmod -R 744 /var/log/clamav
chown -R amavis:amavis /var/log/clamav
chown -R amavis.amavis /usr/local/share/clamav
mkdir /var/run/clamav
chmod 700 /var/run/clamav
chown amavis.amavis /var/run/clamav
手动更新
[url=javascript:;]病毒[/url]

/usr/local/clamav/bin/freshclam
设置自动更新病毒库
[url=javascript:;]crontab[/url]
-e
0 4 * * *
[url=javascript:;]root[/url]
/usr/local/clamav/bin/freshclam --quiet -l /var/log/clamd.log
[url=javascript:;]启动[/url]
# /usr/local/clamav/sbin/clamd
2.安装amavisd

wget
http://www.ijs.si/software/amavisd/amavisd-new-2.4.1.tar.gz

升级file,可以通过file -v看一下版本,要求4.06版本以上
wget
ftp
://ftp.astron.com/pub/file/file-4.17.tar.gz


[url=javascript:;]安装[/url]
以下文件,这些都是安装amavisd需要的

perl -MCPAN -e
[url=javascript:;]shell[/url]
cpan>install Archive::Tar  
cpan>install Archive::Zip  
cpan>install Compress::Zlib
cpan>install Convert::UUlib
cpan>install MIME::Base64  
cpan>install Mail::Internet

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Maildrop安装调试笔记

下一篇:warning: do not list domain in BOTH mydestination