• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Forwarded to devs spamassassin with razor and pyzor

sebgonzes

Silver Pleskian
User name: sebgonzes

TITLE

spamassassin with razor and pyzor

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

centos7, plesk obsidian

PROBLEM DESCRIPTION

We search to install correctly the razor and pyzor filter to make much more eficient the spam filter, we have seen some correct step to do it on the general configuration, but seem only works if the individual spam configuration is disable :

Plesk: Global bayes spamassassin with pyzor, razor and iXHash

STEPS TO REPRODUCE

Install filters and enable individual spam configuration

ACTUAL RESULT

Filters no seem works.

EXPECTED RESULT

Filters works on each mailbox.

ANY ADDITIONAL INFORMATION



YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Help with sorting out
 
From developer:

It's rather simple:
  • Install Plesk Obsidian with SA
  • Create a some mailbox, enable user prefs in SA
  • Enable epel repository: yum install epel-release
  • Install pyzor and razor: yum install perl-Razor-Agent pyzor
  • Configure pyzor: pyzor discover
Code:
install -m 0700 -d /var/qmail/.pyzor//var/qmail/.pyzor/
chown popuser:popuser /var/qmail/.pyzor//var/qmail/.pyzor/
  • Configure razor:
Code:
install -m 0755 -d /etc/mail/spamassassin/.razor/
razor-admin -home=/etc/mail/spamassassin/.razor -register
razor-admin -home=/etc/mail/spamassassin/.razor -create
razor-admin -home=/etc/mail/spamassassin/.razor -discover
 
echo "razor_config /etc/mail/spamassassin/.razor/razor-agent.conf" >> /etc/mail/spamassassin//local.cf
echo "razorhome = /etc/mail/spamassassin/.razor/" >> /etc/mail/spamassassin/.razor/razor-agent.conf
  • Enable debug of SA (required to check that all correctly works):
    add -D to SPAMDOPTIONS in /etc/sysconfig/spamassassin
  • Restart spamassassin
  • Send the message to mailbox, and check the maillog contains check razor and pyzor:
Code:
Mar 30 09:03:20 mz-ce-wh spamd[26199]: razor2: part=0 noresponse
Mar 30 09:03:20 mz-ce-wh spamd[26199]: razor2: results: spam? 0
Mar 30 09:03:20 mz-ce-wh spamd[26199]: razor2: results: engine 8, highest cf score: 0
Mar 30 09:03:20 mz-ce-wh spamd[26199]: razor2: results: engine 4, highest cf score: 0
Mar 30 09:03:20 mz-ce-wh spamd[26199]: util: executable for pyzor was found at /usr/bin/pyzor
Mar 30 09:03:20 mz-ce-wh spamd[26199]: pyzor: pyzor is available: /usr/bin/pyzor
Mar 30 09:03:20 mz-ce-wh spamd[26199]: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin26199dboaM0tmp
Mar 30 09:03:20 mz-ce-wh spamd[26199]: pyzor: [26202] finished: exit 1
Mar 30 09:03:20 mz-ce-wh spamd[26199]: pyzor: got response: public.pyzor.org:24441 (200, 'OK') 0 0

Additional info:
 
Mine wouldn't work until I changed the permissions so:

chmod a+r /var/qmail/.pyzor/servers
 
Back
Top