Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5378994
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2010-01-06 08:37:52

Razor Pyzor DCC

From dghartung.com/docs

Jump to: ,
wget !
wget !
wget !
wget !
tar -xjvf razor-agents-sdk-2.07.tar
tar -xjvf razor-agents-2.77.tar.bz2
tar -xjvf pyzor-0.4.0.tar.bz2
tar -zxvf dcc.tar.Z
cd razor-agents-sdk-2.07
perl Makefile.PL
make
make test
make install
cd razor-agents-2.77
perl Makefile.PL
make
make test
make install
razor-admin -d -create
razor-admin -register
vi /root/.razor/razor-agent.conf

Change the Following line:

debug =3D 3

To

debug =3D 0

Add the Following to this file:

razorhome =3D /var/amavis/.razor
cp -r /root/.razor/ /var/amavis/
razor-admin -d -create -home=3D/var/amavis/.razor/
cd /etc/mail/spamassassin/
vi init.pre
amavisd debug
cd /usr/local/src
cd pyzor-0.4.0
python setup.py build
python setup.py install
chmod -R a+rX /usr/share/doc/pyzor /usr/lib/python#.#/site-packages/pyzor /usr/bin/pyzor /usr/bin/pyzord
chmod -R a+rX /usr/share/doc/pyzor /usr/lib/python*/site- packages/pyzor/usr/bin/pyzor /usr/bin/pyzord
python -c 'import gdbm' && echo 'gdbm found'
pyzor discover
cp /root/.pyzor/servers /var/amavis/.pyzor/
su amavis -c "pyzor ping"
cd ../
cd dcc-1.3.20/
./configure --with-uid=3Damavis
make
make install
cdcc "delete 127.0.0.1"
cdcc "delete 127.0.0.1 Greylist"
ln -s /var/dcc/libexec/cron-dccd /usr/bin/cron-dccd

crontab -e

Add the following line to this file:

0 5 * * * /usr/bin/cron-dccd

spamassassin --lint -D
cp -ir /root/.spamassassin/ /var/amavis/
cd /root/.spamassassin/
rm -f user_prefs
ln -s /var/amavis/.spamassassin/user_prefs user_prefs
chown -R amavis:amavis /var/amavis/
vi /etc/mail/spamassassin/local.cf

Add the following to this file :

razor_config /var/amavis/.razor/razor-agent.conf
bayes_path /var/amavis/.spamassassin/bayes
auto_whitelist_path /var/amavis/.spamassassin/auto-whitelist
lock_method flock
 
add_header all Status _YESNO_, score=3D_SCORE_ required=3D_REQD_tests=3D_TESTSSCORES(,)_ _DCCR_ 
_PYZOR_ _RBL_autolearn=3D_AUTOLEARN_version=3D_VERSION_

add_header all Checker-Version !SpamAssassin _VERSION_ (_SUBVERSION_) on_HOSTNAME_
阅读(1734) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~