• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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