Razor2, pyzor e DCC Antispam no iRedMail
De MochilaWiki
Revisão de 19h40min de 5 de julho de 2017 por Banto Palmarino (discussão | contribs)
Instalando Razor2
# apt-get install razor
# mkdir /var/lib/amavis/.razor
# chown -Rf amavis:amavis /var/lib/amavis/.razor
# su amavis
$ razor-admin -home=/var/lib/amavis/.razor -create
$ razor-admin -home=/var/lib/amavis/.razor -discover
$ razor-admin -home=/var/lib/amavis/.razor -register
$ exit
Instalando pyzor
# apt-get install pyzor
# mkdir /var/lib/amavis/.pyzor
# chown amavis:amavis /var/lib/amavis/.pyzor
# su amavis
$ pyzor --homedir /var/lib/amavis/.pyzor discover
$ exit
Insira no final do arquivo /etc/spamassassin/local.cf
use_razor2 1 score RAZOR2_CHECK 2.500 score PYZOR_CHECK 2.500
Reinicia o amavis
/etc/init.d/amavis restart
Testando
# su amavis
//test Razor2
$ spamassassin -t -D razor2 < /usr/share/doc/spamassassin/examples/sample-spam.txt
//test pyzor
$ spamassassin -t -D pyzor < /usr/share/doc/spamassassin/examples/sample-spam.txt