全部博文(1144)
分类: LINUX
2010-01-06 08:37:52
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_