• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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