Install Pyzor: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 10: Line 10:
  Run a check -
  Run a check -
  # echo "test" | spamassassin -D pyzor 2>&1 | less
  # echo "test" | spamassassin -D pyzor 2>&1 | less
  You should see some output like this
  You should see some output like this<br>
 
  Feb  9 16:24:58.824 [23979] dbg: pyzor: network tests on, attempting Pyzor
  Feb  9 16:24:58.824 [23979] dbg: pyzor: network tests on, attempting Pyzor
  Feb  9 16:24:59.787 [23979] dbg: pyzor: pyzor is available: /usr/bin/pyzor
  Feb  9 16:24:59.787 [23979] dbg: pyzor: pyzor is available: /usr/bin/pyzor
  Feb  9 16:24:59.788 [23979] dbg: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin23979z26KDDtmp
  Feb  9 16:24:59.788 [23979] dbg: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin23979z26KDDtmp
  Feb  9 16:24:59.841 [23979] dbg: pyzor: [23981] finished: exit 1
  Feb  9 16:24:59.841 [23979] dbg: pyzor: [23981] finished: exit 1
  Feb  9 16:24:59.842 [23979] dbg: pyzor: check failed: no response
  Feb  9 16:24:59.842 [23979] dbg: pyzor: check failed: no response<br>
   
  Add the following lines to the end of /etc/spamassassin/local.cf
pyzor_options --homedir /etc/mail/spamassassin/pyzor<br>
# systemctl restart spamassassin


  Add the following lines to the end of /etc/spamassassin/local.cf
  [[https://www.binarytides.com/install-spamassassin-with-postfix-dovecot/ Razor]]
pyzor_options --homedir /etc/mail/spamassassin/pyzor


<!--
  Make sure that pyzor is enabled in your /etc/mail/spamassassin/v310.pre file:
  Make sure that pyzor is enabled in your /etc/mail/spamassassin/v310.pre file:


Line 51: Line 52:
|-
|-
|}
|}
 
-->
== [[User Tips & Tricks]] ==
== [[User Tips & Tricks]] ==

Latest revision as of 19:37, 16 April 2024

Back

[Documentation]:

# dnf install -y pyzor
# pyzor --homedir /etc/mail/spamassassin/pyzor discover
# pyzor --homedir /etc/mail/spamassassin/pyzor discover
Make the servers file readable by all
# cd /etc/mail spamassassin/pyzor
# chmod a+r servers
Run a check -
# echo "test" | spamassassin -D pyzor 2>&1 | less
You should see some output like this
Feb 9 16:24:58.824 [23979] dbg: pyzor: network tests on, attempting Pyzor Feb 9 16:24:59.787 [23979] dbg: pyzor: pyzor is available: /usr/bin/pyzor Feb 9 16:24:59.788 [23979] dbg: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin23979z26KDDtmp Feb 9 16:24:59.841 [23979] dbg: pyzor: [23981] finished: exit 1 Feb 9 16:24:59.842 [23979] dbg: pyzor: check failed: no response
Add the following lines to the end of /etc/spamassassin/local.cf pyzor_options --homedir /etc/mail/spamassassin/pyzor
# systemctl restart spamassassin
[Razor]

User Tips & Tricks