1 (edited by giorgiolago 2009-12-02 02:26:27)

Topic: [Tutorial] Integrating Razor2 and Pyzor to Iredmail by giorgiolago

[Tutorial] Integrating Razor2 and Pyzor to Iredmail by giorgiolago

==========
Related forum topic: Install Pyzor, Razor2 and DCC on your CentOS/RHEL iRedMail Server
==========

To integrate the Razor2 pyzor in iredmail is simple enough to follow the proper steps:
ps: the port 2307/TCP on your firewall must be open to the Razor2, and port 24441/UDP must be open to pyzor  to work;)

# 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

# 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

in /etc/spamassassin/local.cf add this options:

use_razor2 1
score RAZOR2_CHECK 2.500
score PYZOR_CHECK 2.500

Restart amavisd to make it work:

# /etc/init.d/amavis restart

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [Tutorial] Integrating Razor2 and Pyzor to Iredmail by giorgiolago

This tutorial is now listed in FAQ page: http://www.iredmail.org/docs/

Thanks for your work tongue

3

Re: [Tutorial] Integrating Razor2 and Pyzor to Iredmail by giorgiolago

The firewall port to open for razor2 is the outgoing 2703 (and not 2307) as stated in the FAQ.

Hope it helps... smile

4

Re: [Tutorial] Integrating Razor2 and Pyzor to Iredmail by giorgiolago

Hi


when run the command:


$ pyzor --homedir /var/lib/amavis/.pyzor discover
/usr/lib/pymodules/python2.6/pyzor/client.py:12: DeprecationWarning: the multifile module has been deprecated since Python 2.5
  import multifile
downloading servers from http://pyzor.sourceforge.net/cgi-bin/in … vers-0-3-x

there is thi warning, it's alla ok??

Thanks!

Enrico

5

Re: [Tutorial] Integrating Razor2 and Pyzor to Iredmail by giorgiolago

Casa.it wrote:

Hi


when run the command:


$ pyzor --homedir /var/lib/amavis/.pyzor discover
/usr/lib/pymodules/python2.6/pyzor/client.py:12: DeprecationWarning: the multifile module has been deprecated since Python 2.5
  import multifile
downloading servers from http://pyzor.sourceforge.net/cgi-bin/in … vers-0-3-x

there is thi warning, it's alla ok??

Thanks!

Enrico

If this is the only warning you have, and the servers have downloaded and registered ok, no problem everything works.
I also had the same warning and everything is running smooth. The only thing I've changed is the score in spamassassin, for the moment I've lowered it to 1.5 for razor2, pyzor and dcc.
Just remember that the you have to open the port 2703 and NOT 2307 as stated in the FAQ.

---

Se è l'unico warning che hai, ma i server sono stati scaricati e la registrazione è ok, tutto funziona perfettamente. Ho avuto anch'io lo stesso warning, ma non mi ha dato nessun problema. L'unica cosa che ho cambiato per il momento è il punteggio su spamassassin, abbassato a 1.5 sia per razor2 che per pyzor e dcc.
Ricordati che c'è un piccolo errore nella FAQ, la porta da aprire sul firewall è la 2703 e non la 2307.

CIAO

Alberto

6

Re: [Tutorial] Integrating Razor2 and Pyzor to Iredmail by giorgiolago

Grazie/Thanks wink

Enrico

7

Re: [Tutorial] Integrating Razor2 and Pyzor to Iredmail by giorgiolago

razor-admin -home=/var/lib/amavis/.razor -create
Can't locate Razor2/Client/Agent.pm:   Permission denied at /usr/bin/razor-admin line 18.
BEGIN failed--compilation aborted at /usr/bin/razor-admin line 18.

Anyone have any clue how to get this working?

8

Re: [Tutorial] Integrating Razor2 and Pyzor to Iredmail by giorgiolago

neoark wrote:

razor-admin -home=/var/lib/amavis/.razor -create
Can't locate Razor2/Client/Agent.pm:   Permission denied at /usr/bin/razor-admin line 18.
BEGIN failed--compilation aborted at /usr/bin/razor-admin line 18.

Anyone have any clue how to get this working?

Looks like you don't have perl module perl-Razor2-Client-Agent installed.

9

Re: [Tutorial] Integrating Razor2 and Pyzor to Iredmail by giorgiolago

neoark wrote:

razor-admin -home=/var/lib/amavis/.razor -create
Can't locate Razor2/Client/Agent.pm:   Permission denied at /usr/bin/razor-admin line 18.
BEGIN failed--compilation aborted at /usr/bin/razor-admin line 18.

Anyone have any clue how to get this working?

I had to recompile the razor

apt-get install fakeroot dh-buildinfo
apt-get source razor
apt-get build-dep razor
dpkg-source -x razor_2.85-4.1.dsc
cd razor-2.85/
dpkg-buildpackage -rfakeroot -b
dpkg -i razor_2.85-4.1_amd64.deb