Configuring razor and pyzor

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
patrickwilson82
Advanced member
Advanced member
Posts: 134
Joined: Tue Mar 13, 2018 5:37 pm
ZCS/ZD Version: 8.8.15

Configuring razor and pyzor

Post by patrickwilson82 »

Hello,

I've installed razor and pyzor, but I'm having some trouble getting them configured. I run this command "zimbra@ZM01:~$ razor-admin -home=/opt/zimbra/data/amavisd/.razor -create" and I keep getting "Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Razor2/Client/Config.pm line 33.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Razor2/Client/Config.pm line 122."

Also, when I go to configure my cf file it keeps telling me "/opt/zimbra/conf/sa/sauser.cf" doesn't exist. I'm assuming the two are related, but I'm not sure what I'm doing wrong.

I'm running Zimbra 8.7.11 on Ubuntu. Thanks in advance for the help.
darkfader
Posts: 20
Joined: Sat Dec 11, 2021 11:39 pm

Re: Configuring razor and pyzor

Post by darkfader »

patrickwilson82 wrote:Hello,

I've installed razor and pyzor, but I'm having some trouble getting them configured. I run this command "zimbra@ZM01:~$ razor-admin -home=/opt/zimbra/data/amavisd/.razor -create" and I keep getting "Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Razor2/Client/Config.pm line 33.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Razor2/Client/Config.pm line 122."

Also, when I go to configure my cf file it keeps telling me "/opt/zimbra/conf/sa/sauser.cf" doesn't exist. I'm assuming the two are related, but I'm not sure what I'm doing wrong.

I'm running Zimbra 8.7.11 on Ubuntu. Thanks in advance for the help.
For others who run into this...

it's a bug in razor2 that seems to exist since 2012.
similarly, the -discover option to pyzor listed at https://wiki.zimbra.com/wiki/Anti-spam_Strategies has been removed in 2010.
The wiki page is tagged as verified in 8.8 but that simply can't be true.

given the combination of outdated software with outdated docs, it is advisable to disable these components. you can never expect that security fixes would be made in a timely manner.
User avatar
barrydegraaff
Zimbra Employee
Zimbra Employee
Posts: 242
Joined: Tue Jun 17, 2014 3:31 am
Contact:

Re: Configuring razor and pyzor

Post by barrydegraaff »

Yes the mentioned wiki is out of date, I am working on it.

In the mean time you can take a look at https://wiki.zimbra.com/wiki/Anti-spam
--
Barry de Graaff
Email: barry.degraaff [at] synacor [dot] com
Admin of Zimbra-Community Github: https://github.com/orgs/Zimbra-Community/ and the
Zimlet Gallery https://gallery.zetalliance.org/extend/
Post Reply