Since you are running the "server" portion as "nobody"... Then the spamd
user account needs to stay as "nobody". If you make a spamc call with a
"user" identified, then spamd will switch to that user account before
processing the message (this is for user specific needs like custom user
rules, BAYES, AWL, etc). Since the accounts now don't match, it'll give
you that error.

- Jason

-----Original Message-----
From: neil []=20
Sent: Thursday, May 01, 2008 9:31 AM
To: Jason J. Ellingson
Cc: Ben Poliakoff; Robert Blayzor;
Subject: Re: Using Pzyor with high volume

I have it running and it works, load is down and free mem up, but not=20
certain if that is just because I've restarted spamd a few times. I'm=20
getting some weird error messages has anyone else seen this?

I had to modify the make file

Then run the install manually
/usr/local/bin/python2.5 install
And cp readyexec /usr/local/bin

Finally I kicked it off with
/usr/local/bin/sudo -u nobody /tmp/pyzor1
pyzor_path /usr/local/bin/readyexec
pyzor_options /tmp/pyzor1

I'm getting pyzor hits in the logs so all appears to be working, but the

following are occasionally appearing on the terminal I started it from.
FreeBSD 6.2 by the way.

Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/", line 385,=20
in process_request
self.finish_request(request, address)
File "/usr/local/lib/python2.5/site-packages/", line 408,=20
in finish_request
super(ReadyExec, self).finish_request(request, address)
File "/usr/local/lib/python2.5/", line 254, in=20
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/lib/python2.5/site-packages/", line 173,=20
in __init__
client_address, server)
File "/usr/local/lib/python2.5/", line 522, in __init__
File "/usr/local/lib/python2.5/site-packages/", line 187,=20
in handle
File "/usr/local/lib/python2.5/site-packages/", line 209,=20
in handle_conduit
self.tell_exit(os.waitpid(pid, 0)[1] >> 8)
File "/usr/local/lib/python2.5/site-packages/", line 293,=20
in tell_exit
File "/usr/local/lib/python2.5/site-packages/", line 298,=20
in send_string
File "/usr/local/lib/python2.5/", line 262, in write
File "/usr/local/lib/python2.5/", line 249, in flush
error: (32, 'Broken pipe')


Jason J. Ellingson wrote:
> Solved the problem.
> readyexec is *USER* specific. You *MUST* launch the
> "server" part as the SAME user as the user of readyexec "client".
> My spamd service is run as a user "spamc", while I was adding the
> service as "root".
> Now, that I have the service running as "spamc", we have success!
> Thanks for your help folks!
> - Jason
> -----Original Message-----
> From: Jason J. Ellingson []=20
> Sent: Wednesday, April 30, 2008 3:21 PM
> To: Ben Poliakoff
> Cc: Robert Blayzor;
> Subject: RE: Using Pzyor with high volume
> I am trying those settings, yet I get no Pyzor hits.
> I can manually do a "readyexec /tmp/pyzor ping" which works fine...
> Any other suggestions?
> Many thanks!
> - Jason
> -----Original Message-----
> From: Ben Poliakoff []=20
> Sent: Wednesday, April 30, 2008 1:23 PM
> To: Jason J. Ellingson
> Cc: Robert Blayzor;
> Subject: Re: Using Pzyor with high volume
> * Jason J. Ellingson [20080430 11:07]:
> =20
>> Yup... I got the "server" portion running... The trick now is to get
>> SpamAssassin to use "readyexec /tmp/pyzor" instead of just "pyzor"...
>> Any suggestions? I was looking at modifying in the
>> SpamAssassin perl directory.
>> =20

> Something like this seems to work for me:
> use_pyzor 1
> pyzor_path /usr/local/bin/readyexec
> pyzor_options /tmp/pyzor
> Ben
> =20