postfix antivirus
Posted On 2008年11月8日星期六 at 时间: 22:19:00 by David Lu1. Install Spamassassin
a) yum install spamassassin -y
b) service spamassassin start
2. Install Fprot
a) wget http://files.fprot.com/files/linuxx86/fplinuxws.rpm
b) rpm -ivh fplinuxws.rpm
c) /usr/local/fprot/tools/check-updates.pl ( edit crontab if you want it to auto update)
3. Install MailScanner
a) Download from http://www.mailscanner.info/downloads.html
b) tar zxvf MailScanner-4.69.9-3.rpm.tar.gz
c) cd MailScanner
d) ./install.sh
e) mkdir /var/spool/MailScanner/spamassassin; chown postfix.postfix /var/spool/MailScanner/*
f) vi /etc/MailScanner/MailScanner.conf(change follow lines, like so)
Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
Mta = postfix
Virus Scanners = fprot
Always Include Spamassassin report = yes
Use Spamassassin = yes
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
g) echo /^Received:/ HOLD >>/etc/postfix/header_checks
postmap /etc/postfix/header_checks
(make sure uncomment header_checks in /etc/postfix/main.cf)
h) postfix stop; chkconfig postfix off
i) service MailScanner start
j) chkconfig MailScanner on
4. Virus test
a) Download “eicar.com” from http://www.eicar.org/anti_virus_test_file.htm
b) mail test include “eicar.com”.
加强贝式分析广告信件需要安装密码学演算和特征比对的 Razor Pyzor Dcc
1. Install Razor and Razor-agent
Download razor from: http://razor.sourceforge.net/
tar jxvf razor-agents-sdk2.07.tar.bz2
cd razor-agents-sdk2.07
perl Makefile.PL && make && make install
tar jxvf razo-ragents-2.84.tar.bz2
cd razor-agents-2.84
perl Makefile.PL && make && make install
razor-admin --register user= test@tencent.org -pass=test
2. Install Pyzor
wget http://jaist.dl.sourceforge.net/sourceforge/pyzor/pyzor-0.4.0.tar.bz2
tar jxvf pyzor-0.4.0.tar.bz2
cd pyzor-0.4.0
python setup.py build && python setup.py install
chmod -R a+rx /usr/share/doc/pyzor /usr/lib/python2.4/site-packages/pyzor /usr/bin/pyzor
/usr/bin/pyzord
3. Install DCC
wget http://www.rhyolite.com/anti-spam/dcc/source/dcc.tar.Z
tar zxvf dcc.tar.Z
cd dcc-1.3.90
./configure && make && make install
--
知行合一