Install Pyzor: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| No edit summary | No edit summary | ||
| Line 3: | Line 3: | ||
| [[https://www.pyzor.org/en/latest/installation.html#downloading Documentation]]: | [[https://www.pyzor.org/en/latest/installation.html#downloading Documentation]]: | ||
|   # dnf install -y pyzor |   # 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 | |||
| 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: | ||
| <pre># Pyzor - perform Pyzor message checks. | <pre># Pyzor - perform Pyzor message checks. | ||
Revision as of 21:10, 14 April 2024
# 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
Make sure that pyzor is enabled in your /etc/mail/spamassassin/v310.pre file:
# Pyzor - perform Pyzor message checks. # loadplugin Mail::SpamAssassin::Plugin::Pyzor
And then make sure that spamassassin is going to use Pyzor as a check:
echo "use_pyzor 1" >> /etc/mail/spamassassin/local.cf
Now check to make sure it shows. Note: You will frequently show a timeout on Pyzor. This is normal - the server is very busy.
spamassassin -D --lint
And that's it.
Some more tips for Pyzor:
The default server will timeout 50% of the time. Google to find another server to use - most do NOT allow high volume servers to check against theirs. If you find some that DO allow this, please post them here for the rest of us!
| IP:Port | Last Verified | Where Found | 
|---|---|---|
| 82.94.255.100:24441 | 11/20/2006 | http://www.nabble.com/Pyzor-issue-since-upgrade-to-3.1.3-t1742083.html | 
| <new ip:port> | <new date> | <new URL> |