On 06/10/12 12:35, Arthur Dent wrote:
> On Sat, 2012-10-06 at 12:25 +0200, Axb wrote:
>> On 10/06/2012 12:14 PM, Arthur Dent wrote:
>>> I am trying to improve the performance of SA on my small home
>>> server. I use the sought rules, but though I would also include
>>> Razor and Pyzor. I am no stranger to the command line and not
>>> afraid of compiling from source (and that is what I did in the
>>> past when installing Razor/Pyzor) but I noticed that Pyzor was
>>> available in the Fedora17 repos - so I yum installed it...
>>> 
>>> I put "pyzor_options --homedir /home/mark/.pyzor" in
>>> /etc/mail/spamassassin/local.cf
>>> 
>>> I ran "pyzor --homedir ~/.pyzor discover" and I restarted SA.
>>> 
>>> To test it I used the incantation recommened on the Wiki: $
>>> echo "test" | spamassassin -D pyzor 2>&1 | less
>>> 
>>> And this is what I get: 
>>> ==================================8<=======================================
>>>
>>> 
Oct  6 11:11:46.956 [10904] dbg: pyzor: network tests on, attempting Pyzor
>>> Oct  6 11:11:52.055 [10904] dbg: pyzor: pyzor is available:
>>> /bin/pyzor Oct  6 11:11:52.056 [10904] dbg: pyzor: opening
>>> pipe: /bin/pyzor --homedir /home/mark/.pyzor check <
>>> /tmp/.spamassassin10904BmyCb9tmp Oct  6 11:11:52.344 [10904]
>>> dbg: pyzor: [10906] finished: exit 1 Oct  6 11:11:52.345
>>> [10904] dbg: pyzor: check failed: no response 
>>> X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
>>> mydomain.org [snip rest...] 
>>> ==================================8<=======================================
>>>
>>>
>>> 
What have I done wrong?
>>> 
>>> (BTW I also yum installed Razor and that seem to work OK
>>> according to a similar test).
>>> 
>>> Thanks in advance
>> 
>> are you running SA as user "mark"?
> 
> Yes I am...
> 
>> 
>> pyzor ping that should create  ~/.pyzor/servers
> 
> I thought that was what "pyzor --homedir ~/.pyzor discover" did? I
> already have ~/.pyzor/servers:
> 
> $ ll ~/.pyzor/ total 4 -rw-------. 1 mark mark 23 Oct  6 00:08
> servers
> 
> $ cat ~/.pyzor/servers public.pyzor.org:24441
> 
> But I will try the ping command: $ pyzor ping 
> public.pyzor.org:24441        (200, 'OK')
> 
> Hmm... seems OK...
> 
>> and you should be ready to go
> 
> OK let's try again: 
> ==================================8<=======================================
>
> 
Oct  6 11:33:41.959 [11067] dbg: pyzor: network tests on, attempting Pyzor
> Oct  6 11:33:58.504 [11067] dbg: pyzor: pyzor is available:
> /bin/pyzor Oct  6 11:33:58.506 [11067] dbg: pyzor: opening pipe:
> /bin/pyzor --homedir /home/mark/.pyzor check <
> /tmp/.spamassassin11067FvGe8ltmp Oct  6 11:33:58.608 [11067] dbg:
> pyzor: [11069] finished: exit 1 Oct  6 11:33:58.609 [11067] dbg:
> pyzor: check failed: no response X-Spam-Checker-Version:
> SpamAssassin 3.3.2 (2011-06-06) on mydomain.org 
> ==================================8<=======================================
>
>  No change...
> 
> Could it be a problem at their end?
> 

Oct  6 11:11:52.056 [10904] dbg: pyzor: opening pipe: /bin/pyzor
--homedir /home/mark/.pyzor check < /tmp/.spamassassin10904BmyCb9tmp
Oct  6 11:11:52.344 [10904] dbg: pyzor: [10906] finished: exit 1

Seems trivial to reproduce the part where spamassassin sees the
problem: just run the piped command yourself.

'man pyzor' might give you more details on enabling debug output for
the above when the command does not emit anything useful by itself.

--
Tom

Reply via email to