About Razor2

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
User avatar
zimico
Outstanding Member
Outstanding Member
Posts: 225
Joined: Mon Nov 14, 2016 8:03 am
Location: Vietnam
ZCS/ZD Version: 8.8.15 P3
Contact:

About Razor2

Post by zimico »

Dear everyone,
Are you using Razor? I install and set up Pyzor and Razor according to Zimbra Wiki but only see Pyzor score and never see Razor2 score. When testing a spam email sample (/opt/zimbra/common/bin/spamassassin -D < sample-spam.txt), I see Razor info as the following:

Code: Select all

check_razor2: 1971 (16.3%), 
and the scores:

Code: Select all

Content preview: This is the GTUBE, the Generic Test for Unsolicited Bulk Email
If your spam filter supports it, the GTUBE provides a test by which you can
verify that the filter is installed correctly and is detecting incoming spam.
You can send yourself a test mail containing t [...]

Content analysis details: (1007.2 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 NO_RELAYS Informational: message was not relayed via SMTP
1000 GTUBE BODY: Generic Test for Unsolicited Bulk Email
2.2 DCC_CHECK Detected as bulk mail by DCC (dcc-servers.net)
2.0 PYZOR_CHECK Listed in Pyzor
(https://pyzor.readthedocs.io/en/latest/)
0.0 DIGEST_MULTIPLE Message hits more than one network digest check
0.0 KAM_DMARC_STATUS Test Rule for DKIM or SPF Failure with Strict
Alignment
3.0 Z_NODOMAIN_UNDISC More points if not send to our domain
0.0 FSL_BULK_SIG Bulk signature with no Unsubscribe
-0.0 NO_RECEIVED Informational: message has no Received headers
The sample-spam.txt is from apache spamassassin site.

How I confirm that razor2 is running as expected?

My warmest regards,
Minh.
User avatar
zimico
Outstanding Member
Outstanding Member
Posts: 225
Joined: Mon Nov 14, 2016 8:03 am
Location: Vietnam
ZCS/ZD Version: 8.8.15 P3
Contact:

Re: About Razor2 (solved)

Post by zimico »

My razor2 now is working! I tried to add some additional steps:

Code: Select all

- Create .pyzor, .razor and .spamassassin directories, as root user:
mkdir -p /opt/zimbra/.pyzor
chown zimbra:zimbra /opt/zimbra/.pyzor
mkdir -p /opt/zimbra/.razor
chown zimbra:zimbra /opt/zimbra/.razor
mkdir -p /opt/zimbra/.spamassassin
chown -R zimbra:zimbra /opt/zimbra/.spamassassin
- Copy razor-agent.conf
cp /opt/zimbra/data/amavisd/.razor/razor-agent.conf /opt/zimbra/.razor/
chown zimbra:zimbra /opt/zimbra/.razor/razor-agent.conf
Regards,
Minh.
Post Reply