Mailing List Archive

pyzor
Hello all,

I have SpamAssassin version 2.63 with pyzor installed. When I type
spamassassin -D </home/spam/mail/saved-messages

at the command line I get
debug: executable for pyzor was found at /usr/bin/pyzor
debug: Pyzor is available: /usr/bin/pyzor
debug: entering helper-app run mode
debug: Pyzor: got response: 217.160.253.84:24441 (200, 'OK')
0 0
debug: leaving helper-app run mode

which to me I believe that pyzor is working. However ever since I added
pyzor I don't get any additional spam blocked,
is there a way to check on received e-mails to see that it is working? I
look at the header on my e-mail but I don't see pyzor anywhere.

I added the below line to my local.cf file that is located on,
/etc/mail/spamassassin/local.cf

pyzor_options --homedir /etc/mail/spamassassin

my pyzor file like, servers
lib
bin
share

are all located on /etc/mail/spamassassin

any ideas what else I need to do?

Thanks,

Jimmy Hayes
Re: pyzor [ In reply to ]
I use spamassassin at one of the e-mail gateway of my company, and it is
processing up to 10-20 messages every minutes (peak). Also, i was try to
execute at the same time
tcpdump -i eth0 src or dst port 6277
(for dcc)
and
tcpdump -i eth0 src or dst port 24441
(for pyzor)
And I see many request to dcc and no any request to pyzor at the same
time. This say, that network checking is work. But I don't see any
packets at port 24441, which means (I think) that spamd don't use pyzor...

here my statistics of mail filtering at this gateway for last ~24 hours:
[root@usa tmp]# MyMail /var/log/maillog
Mon Feb 28 07:48:34 EST 2005
Accepted: 1842
Spamassassin: 9539
By DCC: 4913
Relaying: 11402
SpamCop: 5169
Viruses: 39
Too many rcp: 949

here from config file of sapmassassin (possibly something wrong here ?)
use_pyzor 1
#pyzor_max 10
pyzor_timeout 10
pyzor_path /usr/bin/pyzor



Here the command line for spamd (from /etc/sysconfig/spamassassin)
SPAMDOPTIONS="-d -m6 --max-conn-per-child=25 -u vilter -H
/var/smtp-vilter/tmp"


Matt Kettler wrote:

> At 07:14 AM 2/28/2005, Slava Garaschenko wrote:
>
>> But, then I run spamassassin in daemon mode by
>> /etc/rc.d/init.d/spamassassinstart
>> I dont' see any request to port 24441 which is used by pyzor.
>>
>> This means that pyzor completely don't work with spamassassin. At
>> least then spamassassin is used in daemon mode.
>
>
> When you did this test, did you actually feed a message to spamc?
>
> Merely starting spamd does nothing until spamc has a message to check.


--
Garashchenko Vyacheslav
CEO
AmberNet ISP, Kiev, UKRAINE
e-mail: slava@ambernet.kiev.ua
ICQ: 11379952 (authorisation required)
RIPE: VG299-RIPE
Re: pyzor [ In reply to ]
Matt Kettler wrote the following on 28/02/2005 12:32:
> At 07:14 AM 2/28/2005, Slava Garaschenko wrote:
>
>> But, then I run spamassassin in daemon mode by
>> /etc/rc.d/init.d/spamassassinstart
>> I dont' see any request to port 24441 which is used by pyzor.
>>
>> This means that pyzor completely don't work with spamassassin. At
>> least then spamassassin is used in daemon mode.
>
>
> When you did this test, did you actually feed a message to spamc?
>
> Merely starting spamd does nothing until spamc has a message to check.

Matt

I've been wondering if there has been a problem with pyzor for a while.

On reading this I've just checked my firewall logs for traffic to the pyzor servers.

In the last 2 hours there have been 46 requests sent to the servers from one spamd daemon.

Of these there have been no responses from the pyzor servers.

While a test using spamassassin -D --lint usually shows a response from pyzor, right now they are timing out.

The problem the OP has is probably due to the remote end timing out.

I would be interested if anyone knows if there has been a change in status for the pyzor project as I have not seen a hit from them in a long while.

regards

Alan
RE: pyzor [ In reply to ]
Just found this, could be the cause of some of the problems.

2005-02-04
The public server changed its address; please re-run 'pyzor discover' to
find the new server.

http://pyzor.sourceforge.net/

Martin
Re: pyzor [ In reply to ]
martin smith wrote the following on 28/02/2005 15:33:
> Just found this, could be the cause of some of the problems.
>
> 2005-02-04
> The public server changed its address; please re-run 'pyzor discover' to
> find the new server.
>
> http://pyzor.sourceforge.net/
>
> Martin
>

Martin

As the date shows, this is an old notice. However I did run a discover before I did the testing.

Nothing coming back from the pyzor servers.

Alan
Re: pyzor [ In reply to ]
Alan,

Slava is running tcpdump, and claims to not see *any* pyzor traffic at all,
not even the outbound request.

Their problem is almost certainly not due to remote-side timeouts.

The only thing I can think of is the -H parameter to spamd... With no
parameter the docs claim it will use the spamc caller's home dir for
razor/pyzor/dcc user config files.

Slava, does the user vilter have a home directory, and rwx permissions to it?

Also, what user does spamc get called as?

At 10:07 AM 2/28/2005, Alan Munday wrote:
>Matt Kettler wrote the following on 28/02/2005 12:32:
>>At 07:14 AM 2/28/2005, Slava Garaschenko wrote:
>>
>>>But, then I run spamassassin in daemon mode by
>>>/etc/rc.d/init.d/spamassassinstart
>>>I dont' see any request to port 24441 which is used by pyzor.
>>>
>>>This means that pyzor completely don't work with spamassassin. At least
>>>then spamassassin is used in daemon mode.
>>
>>When you did this test, did you actually feed a message to spamc?
>>Merely starting spamd does nothing until spamc has a message to check.
>
>Matt
>
>I've been wondering if there has been a problem with pyzor for a while.
>
>On reading this I've just checked my firewall logs for traffic to the
>pyzor servers.
>
>In the last 2 hours there have been 46 requests sent to the servers from
>one spamd daemon.
>
>Of these there have been no responses from the pyzor servers.
>While a test using spamassassin -D --lint usually shows a response from
>pyzor, right now they are timing out.
>
>The problem the OP has is probably due to the remote end timing out.
>
>I would be interested if anyone knows if there has been a change
>in status for the pyzor project as I have not seen a hit from them in a
>long while.
>
>regards
>
>Alan
>
Re: pyzor [ In reply to ]
----- Original Message -----
From: "Slava Garaschenko" <slava@ambernet.kiev.ua>

>I use spamassassin at one of the e-mail gateway of my company, and it is
> processing up to 10-20 messages every minutes (peak). Also, i was try to
> execute at the same time
> tcpdump -i eth0 src or dst port 6277
> (for dcc)
> and
> tcpdump -i eth0 src or dst port 24441
> (for pyzor)
> And I see many request to dcc and no any request to pyzor at the same
> time. This say, that network checking is work. But I don't see any
> packets at port 24441, which means (I think) that spamd don't use pyzor...

What pyzor server are you point to? If 217.160.253.84:24441, try instead
66.250.40.33:24441. The pyzor server changed earlier this month:
https://sourceforge.net/mailarchive/forum.php?thread_id=6493585&forum_id=8711.
You can also try "pyzor discover" and that should update you to the new
server.

Bill
Re: pyzor [ In reply to ]
What firewall rule do you use for pyzor ? Did it use any other port, not
only 24441 ? Becouse I don't see any packets by
tcpdump. Not request, not answers (in daemon mode).
But then I type
spamassassin -D --lint - all OK:
debug: Pyzor is available: /usr/bin/pyzor
debug: entering helper-app run mode
debug: setuid: helper proc 32064: ruid=0 euid=0
debug: Pyzor: got response: 66.250.40.33:24441 (200, 'OK') 0 0

and tcpdump show:
10:47:59.056563 us.ambernet.kiev.ua.4831 > clapton.quatro.com.24441: udp
165 (DF)
10:47:59.080542 clapton.quatro.com.24441 > us.ambernet.kiev.ua.4831: udp
63 (DF)

Only things, with which I was surprised, that I was read that pyzor use
UDP for request and tcp for answer, but I see udp only...


Alan Munday wrote:

> Matt Kettler wrote the following on 28/02/2005 12:32:
>
>> At 07:14 AM 2/28/2005, Slava Garaschenko wrote:
>>
>>> But, then I run spamassassin in daemon mode by
>>> /etc/rc.d/init.d/spamassassinstart
>>> I dont' see any request to port 24441 which is used by pyzor.
>>>
>>> This means that pyzor completely don't work with spamassassin. At
>>> least then spamassassin is used in daemon mode.
>>
>>
>>
>> When you did this test, did you actually feed a message to spamc?
>>
>> Merely starting spamd does nothing until spamc has a message to check.
>
>
> Matt
>
> I've been wondering if there has been a problem with pyzor for a while.
>
> On reading this I've just checked my firewall logs for traffic to the
> pyzor servers.
>
> In the last 2 hours there have been 46 requests sent to the servers
> from one spamd daemon.
>
>

--
Garashchenko Vyacheslav
CEO
AmberNet ISP, Kiev, UKRAINE
e-mail: slava@ambernet.kiev.ua
ICQ: 11379952 (authorisation required)
RIPE: VG299-RIPE
Re: pyzor [ In reply to ]
Matt Kettler wrote the following on 28/02/2005 15:48:
> Alan,
>
> Slava is running tcpdump, and claims to not see *any* pyzor traffic at
> all, not even the outbound request.
>
> Their problem is almost certainly not due to remote-side timeouts.
>
> The only thing I can think of is the -H parameter to spamd... With no
> parameter the docs claim it will use the spamc caller's home dir for
> razor/pyzor/dcc user config files.
>
> Slava, does the user vilter have a home directory, and rwx permissions
> to it?
>
> Also, what user does spamc get called as?
>

Matt/Bill

My issue is that although a pyzor discover has updated the servers file, and shows the new server address Bill pointed out, when called in debug mode the old address is still being used.

Alan
Re: pyzor [ In reply to ]
It seems you are right - it is something with home directory...
User vilter have home directory and it is all OK with permissions, but
after I start spamd with -D option I see this:

Feb 28 11:29:28 usa spamd[2512]: debug: Pyzor is available: /usr/bin/pyzor
Feb 28 11:29:28 usa spamd[2512]: debug: entering helper-app run mode
Feb 28 11:29:28 usa spamd[2519]: debug: setuid: helper proc 2519:
ruid=97 euid=97
Feb 28 11:29:28 usa spamd[2512]: debug: Pyzor: got response:
/usr/bin/python2: can't open file '/usr/bin/pyzor'
Feb 28 11:29:28 usa spamd[2512]: debug: leaving helper-app run mode
Feb 28 11:29:28 usa spamd[2512]: debug: Pyzor: couldn't grok response
"/usr/bin/python2: can't open file '/usr/bin/pyzor'"
Feb 28 11:29:28 usa spamd[2512]: debug: DCCifd is available: /var/dcc/dccifd
Feb 28 11:29:28 usa spamd[2512]: debug: entering helper-app run mode
Feb 28 11:29:29 usa spamd[2512]: debug: DCCifd: got response:
X-DCC-Servercave-Metrics: usa.ambernet.kiev.ua 1183; bulk Body=1 Fuz1=1
Fuz2=many
Feb 28 11:29:29 usa spamd[2512]: debug: leaving helper-app run mode
Feb 28 11:29:29 usa spamd[2512]: debug: DCCifd: Listed! BODY: 1 of 500
FUZ1: 1 of 500 FUZ2: 999999 of 500

I don't (now) understand why... Why all OK with DCC for example and not
OK with pyzor... But now I see error, and it's will be help. Thank you !

Matt Kettler wrote:

> Alan,
>
> Slava is running tcpdump, and claims to not see *any* pyzor traffic at
> all, not even the outbound request.
>
> Their problem is almost certainly not due to remote-side timeouts.
>
> The only thing I can think of is the -H parameter to spamd... With no
> parameter the docs claim it will use the spamc caller's home dir for
> razor/pyzor/dcc user config files.
>
> Slava, does the user vilter have a home directory, and rwx permissions
> to it?
>
> Also, what user does spamc get called as?
>
> At 10:07 AM 2/28/2005, Alan Munday wrote:
>
>> Matt Kettler wrote the following on 28/02/2005 12:32:
>>
>>> At 07:14 AM 2/28/2005, Slava Garaschenko wrote:
>>>
>>>> But, then I run spamassassin in daemon mode by
>>>> /etc/rc.d/init.d/spamassassinstart
>>>> I dont' see any request to port 24441 which is used by pyzor.
>>>>
>>>> This means that pyzor completely don't work with spamassassin. At
>>>> least then spamassassin is used in daemon mode.
>>>
>>>
>>> When you did this test, did you actually feed a message to spamc?
>>> Merely starting spamd does nothing until spamc has a message to check.
>>
>>
>> Matt
>>
>> I've been wondering if there has been a problem with pyzor for a while.
>>
>> On reading this I've just checked my firewall logs for traffic to the
>> pyzor servers.
>>
>> In the last 2 hours there have been 46 requests sent to the servers
>> from one spamd daemon.
>>
>> Of these there have been no responses from the pyzor servers.
>> While a test using spamassassin -D --lint usually shows a response
>> from pyzor, right now they are timing out.
>>
>> The problem the OP has is probably due to the remote end timing out.
>>
>> I would be interested if anyone knows if there has been a change in
>> status for the pyzor project as I have not seen a hit from them in a
>> long while.
>>
>> regards
>>
>> Alan
>>
>

--
Garashchenko Vyacheslav
CEO
AmberNet ISP, Kiev, UKRAINE
e-mail: slava@ambernet.kiev.ua
ICQ: 11379952 (authorisation required)
RIPE: VG299-RIPE
Re: pyzor [ In reply to ]
At 10:51 AM 2/28/2005, Slava Garaschenko wrote:
>and tcpdump show:
>10:47:59.056563 us.ambernet.kiev.ua.4831 > clapton.quatro.com.24441: udp
>165 (DF)
>10:47:59.080542 clapton.quatro.com.24441 > us.ambernet.kiev.ua.4831: udp
>63 (DF)
>
>Only things, with which I was surprised, that I was read that pyzor use
>UDP for request and tcp for answer, but I see udp only...

grepping the code for pyzor 0.4.0, there's no SOCK_STREAM (tcp) in use,
only SOCK_DGRAM (udp).

I ran grep -ri with several different search strings:
"tcp", "udp", "stream", "dgram", "connect", "recv", "bind", "accept",
"listen" and "socket"

In the process I came up with nothing to suggest use of TCP. Everything
seems to be datagrams sent via sendto and received with recvfrom. Unless
there's some python wrapper object with a rather obscure name, I'd be
surprised if there's any support for TCP at all.
Re: pyzor [ In reply to ]
At 11:42 AM 2/28/2005, Slava Garaschenko wrote:
>Feb 28 11:29:28 usa spamd[2512]: debug: Pyzor is available: /usr/bin/pyzor
>Feb 28 11:29:28 usa spamd[2512]: debug: entering helper-app run mode
>Feb 28 11:29:28 usa spamd[2519]: debug: setuid: helper proc 2519: ruid=97
>euid=97
>Feb 28 11:29:28 usa spamd[2512]: debug: Pyzor: got response:
>/usr/bin/python2: can't open file '/usr/bin/pyzor'

That doesn't look like a home dir issue, it looks like a file permission
issue.... What are the file perms on /usr/bin/pyzor? Is it world r_x?
Re: pyzor [ In reply to ]
Fixed !!!! Thank you for idea !
After install the pyzor from src, it is set permission for
/usr/bin/pyzor to:
read/write/execute for owner and execute only for group and other.
But pyton is interpreter and it is need to read file for execute.
Then I set /usr/bin/pyzor readable for group and for other, all became OK.

Thank you again for help !
Possilby this question is good candidate for FAQ ? Because I think not
only I have the same problem, but not all users are check how pyzor work
with tcpdump...

Matt Kettler wrote:

> Alan,
>
> Slava is running tcpdump, and claims to not see *any* pyzor traffic at
> all, not even the outbound request.
>
> Their problem is almost certainly not due to remote-side timeouts.
>
> The only thing I can think of is the -H parameter to spamd... With no
> parameter the docs claim it will use the spamc caller's home dir for
> razor/pyzor/dcc user config files.
>
> Slava, does the user vilter have a home directory, and rwx permissions
> to it?
>
> Also, what user does spamc get called as?
>
> At 10:07 AM 2/28/2005, Alan Munday wrote:
>
>> Matt Kettler wrote the following on 28/02/2005 12:32:
>>
>>> At 07:14 AM 2/28/2005, Slava Garaschenko wrote:
>>>
>>>> But, then I run spamassassin in daemon mode by
>>>> /etc/rc.d/init.d/spamassassinstart
>>>> I dont' see any request to port 24441 which is used by pyzor.
>>>>
>>>> This means that pyzor completely don't work with spamassassin. At
>>>> least then spamassassin is used in daemon mode.
>>>
>>>
>>> When you did this test, did you actually feed a message to spamc?
>>> Merely starting spamd does nothing until spamc has a message to check.
>>
>>
>> Matt
>>
>> I've been wondering if there has been a problem with pyzor for a while.
>>
>> On reading this I've just checked my firewall logs for traffic to the
>> pyzor servers.
>>
>> In the last 2 hours there have been 46 requests sent to the servers
>> from one spamd daemon.
>>
>> Of these there have been no responses from the pyzor servers.
>> While a test using spamassassin -D --lint usually shows a response
>> from pyzor, right now they are timing out.
>>
>> The problem the OP has is probably due to the remote end timing out.
>>
>> I would be interested if anyone knows if there has been a change in
>> status for the pyzor project as I have not seen a hit from them in a
>> long while.
>>
>> regards
>>
>> Alan
>>
>

--
Garashchenko Vyacheslav
CEO
AmberNet ISP, Kiev, UKRAINE
e-mail: slava@ambernet.kiev.ua
ICQ: 11379952 (authorisation required)
RIPE: VG299-RIPE
Re: pyzor [ In reply to ]
And my problem, should anyone find this useful:

pyzor discover was correctly updating the servers file for the user account it was called from.

However I have a --homedir set for pyzor in local.cf and as this is not the same dir as the user file hence the failure to update.

Deleting/renaming the servers file in the --homedir and then running spamassasin in debug mode sees this copy of servers being updated correctly.

Alan
Re: pyzor [ In reply to ]
About UDP for request and TCP for answers I was read here:
http://wiki.apache.org/spamassassin/NetTestFirewallIssues

>>Pyzor uses both udp and tcp port 24441. It looks as though the client
communicates with the server via udp but the server answers back with a
tcp connection.

But as I see by tcpdump now, pyzor is use only udp. Possibly this
information is too old...


Matt Kettler wrote:

> At 10:51 AM 2/28/2005, Slava Garaschenko wrote:
>
>> and tcpdump show:
>> 10:47:59.056563 us.ambernet.kiev.ua.4831 > clapton.quatro.com.24441:
>> udp 165 (DF)
>> 10:47:59.080542 clapton.quatro.com.24441 > us.ambernet.kiev.ua.4831:
>> udp 63 (DF)
>>
>> Only things, with which I was surprised, that I was read that pyzor
>> use UDP for request and tcp for answer, but I see udp only...
>
>
> grepping the code for pyzor 0.4.0, there's no SOCK_STREAM (tcp) in
> use, only SOCK_DGRAM (udp).
>
> I ran grep -ri with several different search strings:
> "tcp", "udp", "stream", "dgram", "connect", "recv", "bind", "accept",
> "listen" and "socket"
>
> In the process I came up with nothing to suggest use of TCP.
> Everything seems to be datagrams sent via sendto and received with
> recvfrom. Unless there's some python wrapper object with a rather
> obscure name, I'd be surprised if there's any support for TCP at all.
>
>

--
Garashchenko Vyacheslav
CEO
AmberNet ISP, Kiev, UKRAINE
e-mail: slava@ambernet.kiev.ua
ICQ: 11379952 (authorisation required)
RIPE: VG299-RIPE
Re: pyzor [ In reply to ]
----- Original Message -----
From: "Alan Munday" <spamassassin@brightheadtechnology.com>

> My issue is that although a pyzor discover has updated the servers file,
and shows the new server address Bill pointed out, when called in debug mode
the old address is still being used.

How are you executing SA? If via something like amavisd-new, you may need
to check "/var/amavis/.pyzor/servers" instead of the default location at
"/root/.pyzor/servers".

Bill
Re: pyzor [ In reply to ]
At 01:50 AM Sunday, 1/28/2007, Rodney Richison wrote -=>
>Is pyzor down? I keep getting timeout, can not do a pyzor ping etc..
>
>Is this safe to use? I can at least "pyzor ping" it. Course, pyzor
>discover will break it again... :)
>
>82.94.255.100:24441

$ pyzor ping
82.94.255.100:24441 (200, 'OK')

I've been using that server for some time with no issues. And just
don't run discover....

HTH,

Ed

. . . . . . . . . . . . . . . . . .
Randomly Generated Quote (14 of 1168):
"Actions speak louder than words." --Theodore Roosevelt
Re: pyzor [ In reply to ]
On 2021-04-21 11:00 AM, Eric Broch wrote:
> Does anyone one have a solution to this:
>
> spamd[xxxx]: pyzor: check failed: internal error, python traceback
> seen in response
>
> I have this in my local.cf
>
> #pyzor
> use_pyzor 1
> pyzor_path /usr/bin/pyzor

I don't have this in my config at all. Maybe you are following outdated
advice?

Make sure you have the pyzor plugin line uncommented:

loadplugin Mail::SpamAssassin::Plugin::Pyzor

Also, ensure you have installed the pyzor package on your OS.
Re: pyzor [ In reply to ]
On 21/04/2021 16:15, Steve Dondley wrote:
> On 2021-04-21 11:00 AM, Eric Broch wrote:
>> Does anyone one have a solution to this:
>>
>> spamd[xxxx]: pyzor: check failed: internal error, python traceback
>> seen in response
>>
>> I have this in my local.cf
>>
>> #pyzor
>> use_pyzor 1
>> pyzor_path /usr/bin/pyzor
>
> I don't have this in my config at all. Maybe you are following
> outdated advice?
>
> Make sure you have the pyzor plugin line uncommented:
>
> loadplugin Mail::SpamAssassin::Plugin::Pyzor
>
> Also, ensure you have installed the pyzor package on your OS.

+1

If you have installed pyzor the default settings for SA should use it.
You can look for all SA pyzor settings with something like:

grep -hEr pyzor /var/lib/spamassassin /etc/spamassassin

My only personal setting is:

# overcome 'SA info: pyzor: [num] error: TERMINATED, signal 15 (000f)'
pyzor_timeout 20
Re: pyzor [ In reply to ]
On Wed, Apr 21, 2021 at 09:00:28AM -0600, Eric Broch wrote:
> Does anyone one have a solution to this:
>
> spamd[xxxx]: pyzor: check failed: internal error, python traceback seen in
> response
>
> I have this in my local.cf
>
> #pyzor
> use_pyzor 1
> pyzor_path /usr/bin/pyzor
>
> Perusing the internet it seems this has been around for a while. Is there a
> simple fix?

Has it ever worked? Did you run pyzor discover?

https://cwiki.apache.org/confluence/display/SPAMASSASSIN/UsingPyzor

Only SA 3.4.6 will log the full traceback to investigate..
Re: pyzor [ In reply to ]
Eric Broch writes:
> From: Eric Broch <ebroch@whitehorsetc.com>
> Date: Wed, 21 Apr 2021 09:00:28 -0600
>
> Does anyone one have a solution to this:
>
> spamd[xxxx]: pyzor: check failed: internal error, python traceback seen
> in response
>
> I have this in my local.cf
>
> #pyzor
> use_pyzor 1
> pyzor_path /usr/bin/pyzor
>
> Perusing the internet it seems this has been around for a while. Is
> there a simple fix?

Spamd says that Pyzor got a traceback instead of a valid response.

Try running pyzor by itself to verify that it works, eg:

% pyzor ping
public.pyzor.org:24441 (200, 'OK')
% pyzor check < spam_msg
public.pyzor.org:24441 (200, 'OK') 34 0

IIRC, probably a permission error
-jeff
Re: pyzor [ In reply to ]
Thanks for all the replies.

1) I've removed

use_pyzor 1
pyzor_path /usr/bin/pyzor

from local.cf (The issue occurred even if commented anyway).

2) I do have

v310.pre:# Pyzor - perform Pyzor message checks.
v310.pre:loadplugin Mail::SpamAssassin::Plugin::Pyzor (Which, I think, is where the error originates)

3) The check

pyzor check < /home/vpopmail/domains/xxx.com/usr/Maildir/.1-learned/cur/1618952484.M171574P20444V000000000000FD04I0000000010E5CC23_0.server.xxx.com,S=38290:2,
public.pyzor.org:24441 (200, 'OK') 0 0

Successful

4) This check errors...

echo "test" | spamassassin -D pyzor 2>&1 | less

Apr 22 06:35:30.576 [23089] dbg: pyzor: network tests on, attempting Pyzor
Apr 22 06:35:33.388 [23089] dbg: pyzor: pyzor is available: /usr/bin/pyzor
Apr 22 06:35:33.389 [23089] dbg: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin23089PekOCctmp
Apr 22 06:35:33.440 [23089] dbg: pyzor: [23097] finished: exit 1
Apr 22 06:35:33.441 [23089] dbg: pyzor: check failed: no response
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
pet110ii.whitehorsetc.com
X-Spam-Flag: YES
X-Spam-Level: *******
X-Spam-Status: Yes, score=8.0 required=5.0 tests=EMPTY_MESSAGE,MISSING_DATE,
MISSING_FROM,MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,NO_HEADERS_MESSAGE,
NO_RECEIVED,NO_RELAYS autolearn=no autolearn_force=no version=3.4.0
X-Spam-Report:
* -0.0 NO_RELAYS Informational: message was not relayed via SMTP
* 1.0 MISSING_HEADERS Missing To: header
* 0.5 MISSING_MID Missing Message-Id: header
* 1.8 MISSING_SUBJECT Missing Subject: header
* 2.3 EMPTY_MESSAGE Message appears to have no textual parts and no
* Subject: text
* 1.0 MISSING_FROM Missing From: header
* -0.0 NO_RECEIVED Informational: message has no Received headers
* 1.4 MISSING_DATE Missing Date: header
* 0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822
* headers
test
Subject: ***SPAM***[sa]
X-Spam-Prev-Subject: (nonexistent)


Still the error (pyzor: check failed: internal error, python traceback seen in response) and not sure why. I've never noticed it until recently.


Eric

On 4/21/2021 9:24 AM, Henrik K wrote:
> On Wed, Apr 21, 2021 at 09:00:28AM -0600, Eric Broch wrote:
>> Does anyone one have a solution to this:
>>
>> spamd[xxxx]: pyzor: check failed: internal error, python traceback seen in
>> response
>>
>> I have this in my local.cf
>>
>> #pyzor
>> use_pyzor 1
>> pyzor_path /usr/bin/pyzor
>>
>> Perusing the internet it seems this has been around for a while. Is there a
>> simple fix?
> Has it ever worked? Did you run pyzor discover?
>
> https://cwiki.apache.org/confluence/display/SPAMASSASSIN/UsingPyzor
>
> Only SA 3.4.6 will log the full traceback to investigate..
>
Re: pyzor [ In reply to ]
Hello,

Stupid questions:
What version of OS do you have? pyzor is compiled on install(ex: Gentoo)
or comes pre-compiled ?
Did you made any python upgrade lately ? All the modules have been
upgraded as well ?
Did you tried to remove it and install it again ?

Best regards,
Iulian Stan



On 2021-04-22 15:39, Eric Broch wrote:
> Thanks for all the replies.
>
> 1) I've removed
>
> use_pyzor 1
> pyzor_path /usr/bin/pyzor
>
> from local.cf (The issue occurred even if commented anyway).
>
> 2) I do have
>
> v310.pre:# Pyzor - perform Pyzor message checks.
> v310.pre:loadplugin Mail::SpamAssassin::Plugin::Pyzor (Which, I think,
> is where the error originates)
>
> 3) The check
>
> pyzor check <
> /home/vpopmail/domains/xxx.com/usr/Maildir/.1-learned/cur/1618952484.M171574P20444V000000000000FD04I0000000010E5CC23_0.server.xxx.com,S=38290:2,
> public.pyzor.org:24441 (200, 'OK') 0 0
>
> Successful
>
> 4) This check errors...
>
> echo "test" | spamassassin -D pyzor 2>&1 | less
>
> Apr 22 06:35:30.576 [23089] dbg: pyzor: network tests on, attempting
> Pyzor
> Apr 22 06:35:33.388 [23089] dbg: pyzor: pyzor is available:
> /usr/bin/pyzor
> Apr 22 06:35:33.389 [23089] dbg: pyzor: opening pipe: /usr/bin/pyzor
> check < /tmp/.spamassassin23089PekOCctmp
> Apr 22 06:35:33.440 [23089] dbg: pyzor: [23097] finished: exit 1
> Apr 22 06:35:33.441 [23089] dbg: pyzor: check failed: no response
> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
> pet110ii.whitehorsetc.com
> X-Spam-Flag: YES
> X-Spam-Level: *******
> X-Spam-Status: Yes, score=8.0 required=5.0
> tests=EMPTY_MESSAGE,MISSING_DATE,
>
> MISSING_FROM,MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,NO_HEADERS_MESSAGE,
> NO_RECEIVED,NO_RELAYS autolearn=no autolearn_force=no
> version=3.4.0
> X-Spam-Report:
> * -0.0 NO_RELAYS Informational: message was not relayed via
> SMTP
> * 1.0 MISSING_HEADERS Missing To: header
> * 0.5 MISSING_MID Missing Message-Id: header
> * 1.8 MISSING_SUBJECT Missing Subject: header
> * 2.3 EMPTY_MESSAGE Message appears to have no textual parts
> and no
> * Subject: text
> * 1.0 MISSING_FROM Missing From: header
> * -0.0 NO_RECEIVED Informational: message has no Received
> headers
> * 1.4 MISSING_DATE Missing Date: header
> * 0.0 NO_HEADERS_MESSAGE Message appears to be missing most
> RFC-822
> * headers
> test
> Subject: ***SPAM***[sa]
> X-Spam-Prev-Subject: (nonexistent)
>
>
> Still the error (pyzor: check failed: internal error, python traceback
> seen in response) and not sure why. I've never noticed it until
> recently.
>
>
> Eric
>
> On 4/21/2021 9:24 AM, Henrik K wrote:
>> On Wed, Apr 21, 2021 at 09:00:28AM -0600, Eric Broch wrote:
>>> Does anyone one have a solution to this:
>>>
>>> spamd[xxxx]: pyzor: check failed: internal error, python traceback
>>> seen in
>>> response
>>>
>>> I have this in my local.cf
>>>
>>> #pyzor
>>> use_pyzor 1
>>> pyzor_path /usr/bin/pyzor
>>>
>>> Perusing the internet it seems this has been around for a while. Is
>>> there a
>>> simple fix?
>> Has it ever worked? Did you run pyzor discover?
>>
>> https://cwiki.apache.org/confluence/display/SPAMASSASSIN/UsingPyzor
>>
>> Only SA 3.4.6 will log the full traceback to investigate..
>>
Re: pyzor [ In reply to ]
 pyzor.noarch 0:0.5.0-10.el7

On 4/22/2021 7:29 AM, iulian stan wrote:
> Hello,
>
> Stupid questions:
> What version of OS do you have? pyzor is compiled on install(ex:
> Gentoo) or comes pre-compiled ?
> Did you made any python upgrade lately ? All the modules have been
> upgraded as well ?
> Did you tried to remove it and install it again ?
>
> Best regards,
> Iulian Stan
>
>
>
> On 2021-04-22 15:39, Eric Broch wrote:
>> Thanks for all the replies.
>>
>> 1) I've removed
>>
>> use_pyzor 1
>> pyzor_path /usr/bin/pyzor
>>
>> from local.cf (The issue occurred even if commented anyway).
>>
>> 2) I do have
>>
>> v310.pre:# Pyzor - perform Pyzor message checks.
>> v310.pre:loadplugin Mail::SpamAssassin::Plugin::Pyzor (Which, I think,
>> is where the error originates)
>>
>> 3) The check
>>
>> pyzor check <
>> /home/vpopmail/domains/xxx.com/usr/Maildir/.1-learned/cur/1618952484.M171574P20444V000000000000FD04I0000000010E5CC23_0.server.xxx.com,S=38290:2,
>>
>> public.pyzor.org:24441  (200, 'OK')   0 0
>>
>> Successful
>>
>> 4) This check errors...
>>
>> echo "test" | spamassassin -D pyzor 2>&1 | less
>>
>> Apr 22 06:35:30.576 [23089] dbg: pyzor: network tests on, attempting
>> Pyzor
>> Apr 22 06:35:33.388 [23089] dbg: pyzor: pyzor is available:
>> /usr/bin/pyzor
>> Apr 22 06:35:33.389 [23089] dbg: pyzor: opening pipe: /usr/bin/pyzor
>> check < /tmp/.spamassassin23089PekOCctmp
>> Apr 22 06:35:33.440 [23089] dbg: pyzor: [23097] finished: exit 1
>> Apr 22 06:35:33.441 [23089] dbg: pyzor: check failed: no response
>> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
>>         pet110ii.whitehorsetc.com
>> X-Spam-Flag: YES
>> X-Spam-Level: *******
>> X-Spam-Status: Yes, score=8.0 required=5.0
>> tests=EMPTY_MESSAGE,MISSING_DATE,
>>
>> MISSING_FROM,MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,NO_HEADERS_MESSAGE,
>>
>>         NO_RECEIVED,NO_RELAYS autolearn=no autolearn_force=no
>> version=3.4.0
>> X-Spam-Report:
>>         * -0.0 NO_RELAYS Informational: message was not relayed via SMTP
>>         *  1.0 MISSING_HEADERS Missing To: header
>>         *  0.5 MISSING_MID Missing Message-Id: header
>>         *  1.8 MISSING_SUBJECT Missing Subject: header
>>         *  2.3 EMPTY_MESSAGE Message appears to have no textual parts
>> and no
>>         *      Subject: text
>>         *  1.0 MISSING_FROM Missing From: header
>>         * -0.0 NO_RECEIVED Informational: message has no Received
>> headers
>>         *  1.4 MISSING_DATE Missing Date: header
>>         *  0.0 NO_HEADERS_MESSAGE Message appears to be missing most
>> RFC-822
>>         *      headers
>> test
>> Subject: ***SPAM***[sa]
>> X-Spam-Prev-Subject: (nonexistent)
>>
>>
>> Still the error (pyzor: check failed: internal error, python traceback
>> seen in response)  and not sure why. I've never noticed it until
>> recently.
>>
>>
>> Eric
>>
>> On 4/21/2021 9:24 AM, Henrik K wrote:
>>> On Wed, Apr 21, 2021 at 09:00:28AM -0600, Eric Broch wrote:
>>>> Does anyone one have a solution to this:
>>>>
>>>> spamd[xxxx]: pyzor: check failed: internal error, python traceback
>>>> seen in
>>>> response
>>>>
>>>> I have this in my local.cf
>>>>
>>>> #pyzor
>>>> use_pyzor 1
>>>> pyzor_path /usr/bin/pyzor
>>>>
>>>> Perusing the internet it seems this has been around for a while. Is
>>>> there a
>>>> simple fix?
>>> Has it ever worked?  Did you run pyzor discover?
>>>
>>> https://cwiki.apache.org/confluence/display/SPAMASSASSIN/UsingPyzor
>>>
>>> Only SA 3.4.6 will log the full traceback to investigate..
>>>
Re: pyzor [ In reply to ]
On 22 Apr 2021, Eric Broch outgrape:

>  pyzor.noarch 0:0.5.0-10.el7

Ah. Upgrade (pyzor moved, and is now found at
https://github.com/SpamExperts/pyzor). Pyzor 1.0.* fixes this and many
other problems, and is Python 3 compatible.