You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Frank Niedermann <fb...@thelogic.org> on 2007/10/02 08:09:22 UTC

pyzor check failed (can't fork at Util.pm)

Hi,

on a fresh Debian 4.0 installation with Spamassassin 3.1.7 I get to
following message:

Oct  2 06:01:20 zoidberg spamd[17975]: spamd: connection from localhost
[127.0.0.1] at port 58519 
Oct  2 06:01:21 zoidberg spamd[17975]: spamd: processing message
<71...@fry.3pyramids.zzn.com> for
mail3@apfelshampoo.de:2000 
Oct  2 06:01:25 zoidberg spamd[17975]: pyzor: check failed: Can't fork at
/usr/share/perl5/Mail/SpamAssassin/Util.pm line 1308. 
Oct  2 06:01:27 zoidberg spamd[17975]: spamd: identified spam (1001.9/6.5)
for mail3@apfelshampoo.de:2000 in 6.3 seconds, 1959 bytes. 

Spam mail is getting recognized, I've tried with the GTUBE test. But
something seems to be wrong with starting the pyzor checks, does anybody
know why?

Regards,
  Frank
-- 
View this message in context: http://www.nabble.com/pyzor-check-failed-%28can%27t-fork-at-Util.pm%29-tf4553028.html#a12993203
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: pyzor check failed (can't fork at Util.pm)

Posted by Frank Niedermann <fb...@thelogic.org>.
Hi Mark,


Mark Martinec wrote:
> 
>> >   pyzor_timeout 5
>> where do I have to look for this parameter? I grepped through /etc
>> recursive but there was no value pyzor_timeout.
> 
> $ man Mail::SpamAssassin::Plugin::Pyzor
> 
> A different question is why pyzor took longer than 5 seconds.
> Make sure pyzor works from a command line first.
> Perhaps you need to run its server discovery first,
> or open up firewall rules.
> 
>   Mark
> 
> 

I see the timeout parameter in the man page, but it won't point me to the
place where I have to configure it. I'm not that familar with pyzor so I
don't know how to invoke it from command line. Do you have any tips for me?
There is no firewall running.

Regards,
  Frank
-- 
View this message in context: http://www.nabble.com/pyzor-check-failed-%28can%27t-fork-at-Util.pm%29-tf4553028.html#a12999022
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: pyzor check failed (can't fork at Util.pm)

Posted by Mark Martinec <Ma...@ijs.si>.
Frank,

> >   pyzor_timeout 5

> where do I have to look for this parameter? I grepped through /etc
> recursive but there was no value pyzor_timeout.

$ man Mail::SpamAssassin::Plugin::Pyzor

A different question is why pyzor took longer than 5 seconds.
Make sure pyzor works from a command line first.
Perhaps you need to run its server discovery first,
or open up firewall rules.

  Mark

RE: pyzor check failed (can't fork at Util.pm)

Posted by Frank Niedermann <fb...@thelogic.org>.
Hi Gary,


Gary V-2 wrote:
> 
> You will get better response time from a server other than the one
> provided via the 'pyzor discover' command.
> http://marc.info/?l=spamassassin-users&m=117907371211470
> Gary V
>  

wow that was some great info! The ping command to the default server
provided with discover ran into timeouts and with the server you've
mentioned it seems to work.

I'll check the next few days how this is evolving.

Thank you all for you help,
  Frank
-- 
View this message in context: http://www.nabble.com/pyzor-check-failed-%28can%27t-fork-at-Util.pm%29-tf4553028.html#a13006194
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


RE: pyzor check failed (can't fork at Util.pm)

Posted by Gary V <mr...@hotmail.com>.
> From: fbn
> Hi Matthias,> > > Matthias Haegele-2 wrote:> > > >> where do I have to look for this parameter? I grepped through /etc> >> recursive> >> but there was no value pyzor_timeout.> > > > Where did you configure it?> > > >> with amavis its here:> >> > >> /var/lib/amavis/.pyzor/> > > > man pyzor> > /usr/share/doc/pyzor/README.Debian> > > >> FILES> >> ~/.pyzor/config> > > > So its probably at the users home which runs pyzor.> > > > > > I did not configure the parameter, maybe it's a Debian default or pyzor> default?> > It's not in the amavis directory you mentioned but I have a> /home/vmail/.pyzor but there is only a server IP listed (as mentioned in the> README.Debian) but nothing else.> > Regards,> Frank> -- 
 
You will get better response time from a server other than the one provided via the 'pyzor discover' command.
http://marc.info/?l=spamassassin-users&m=117907371211470
Gary V
 
_________________________________________________________________
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033

Re: pyzor check failed (can't fork at Util.pm)

Posted by Frank Niedermann <fb...@thelogic.org>.
Hi Matthias,


Matthias Haegele-2 wrote:
> 
>> where do I have to look for this parameter? I grepped through /etc
>> recursive
>> but there was no value pyzor_timeout.
> 
> Where did you configure it?
> 
>> with amavis its here:
>> 
>> /var/lib/amavis/.pyzor/
> 
> man pyzor
> /usr/share/doc/pyzor/README.Debian
> 
>> FILES
>>        ~/.pyzor/config
> 
> So its probably at the users home which runs pyzor.
> 
> 

I did not configure the parameter, maybe it's a Debian default or pyzor
default?

It's not in the amavis directory you mentioned but I have a
/home/vmail/.pyzor but there is only a server IP listed (as mentioned in the
README.Debian) but nothing else.

Regards,
  Frank
-- 
View this message in context: http://www.nabble.com/pyzor-check-failed-%28can%27t-fork-at-Util.pm%29-tf4553028.html#a12999026
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: pyzor check failed (can't fork at Util.pm)

Posted by Matthias Haegele <mh...@linuxrocks.dyndns.org>.
Frank Niedermann schrieb:
> Hi Mark,
> 
> 
> Mark Martinec wrote:
>>> run mode Oct  2 09:16:02 localhost spamd[6032]: pyzor: check timed out
>>> after 5 seconds
>>>
>>> But I have no idea why pyzor get's terminated :(
>> Because you told it to. You probably have a
>>   pyzor_timeout 5
>> somewhere in config files.
>>
>>   Mark
>>
>>
> 
> where do I have to look for this parameter? I grepped through /etc recursive
> but there was no value pyzor_timeout.

Where did you configure it?

> with amavis its here:
> 
> /var/lib/amavis/.pyzor/

man pyzor
/usr/share/doc/pyzor/README.Debian

> FILES
>        ~/.pyzor/config

So its probably at the users home which runs pyzor.

> Frank


-- 
Grüsse/Greetings
MH


Dont send mail to: ubecatcher@linuxrocks.dyndns.org
--


Re: pyzor check failed (can't fork at Util.pm)

Posted by Frank Niedermann <fb...@thelogic.org>.
Hi Mark,


Mark Martinec wrote:
> 
>> run mode Oct  2 09:16:02 localhost spamd[6032]: pyzor: check timed out
>> after 5 seconds
>>
>> But I have no idea why pyzor get's terminated :(
> 
> Because you told it to. You probably have a
>   pyzor_timeout 5
> somewhere in config files.
> 
>   Mark
> 
> 

where do I have to look for this parameter? I grepped through /etc recursive
but there was no value pyzor_timeout.

Frank
-- 
View this message in context: http://www.nabble.com/pyzor-check-failed-%28can%27t-fork-at-Util.pm%29-tf4553028.html#a12997744
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: pyzor check failed (can't fork at Util.pm)

Posted by Mark Martinec <Ma...@ijs.si>.
Frank,

> Oct  2 09:15:57 localhost spamd[6032]: info: entering helper-app run mode
> Oct  2 09:15:57 localhost spamd[6032]: pyzor: opening pipe: /usr/bin/pyzor
> check < /tmp/.spamassassin6032naLz9htmp
> Oct  2 09:15:57 localhost spamd[6033]: util: setuid: ruid=0 euid=0
> Oct  2 09:16:02 localhost spamd[6032]: pyzor: killed stale helper [6033]
> Oct  2 09:16:02 localhost spamd[6032]: pyzor: [6033] terminated:
> exit=0x000f Oct  2 09:16:02 localhost spamd[6032]: info: leaving helper-app
> run mode Oct  2 09:16:02 localhost spamd[6032]: pyzor: check timed out
> after 5 seconds
>
> But I have no idea why pyzor get's terminated :(

Because you told it to. You probably have a
  pyzor_timeout 5
somewhere in config files.

  Mark

Re: pyzor check failed (can't fork at Util.pm)

Posted by Frank Niedermann <fb...@thelogic.org>.
Hi,

thanks for your reply. In the file /etc/spamassassin/v310.pre there are the
lines

# Pyzor - perform Pyzor message checks.
loadplugin Mail::SpamAssassin::Plugin::Pyzor

which are enabling pyzor I think.

If I enable -D I see the following:

Oct  2 09:15:57 localhost spamd[6032]: util: executable for pyzor was
found at /usr/bin/pyzor
Oct  2 09:15:57 localhost spamd[6032]: pyzor: pyzor is available:
/usr/bin/pyzor
Oct  2 09:15:57 localhost spamd[6032]: info: entering helper-app run mode
Oct  2 09:15:57 localhost spamd[6032]: pyzor: opening pipe: /usr/bin/pyzor
check < /tmp/.spamassassin6032naLz9htmp
Oct  2 09:15:57 localhost spamd[6033]: util: setuid: ruid=0 euid=0
Oct  2 09:16:02 localhost spamd[6032]: pyzor: killed stale helper [6033]
Oct  2 09:16:02 localhost spamd[6032]: pyzor: [6033] terminated: exit=0x000f
Oct  2 09:16:02 localhost spamd[6032]: info: leaving helper-app run mode
Oct  2 09:16:02 localhost spamd[6032]: pyzor: check timed out after 5
seconds

But I have no idea why pyzor get's terminated :(

Frank


Matthias Haegele-2 wrote:
> 
> Frank Niedermann schrieb:
>> Hi,
>> 
>> on a fresh Debian 4.0 installation with Spamassassin 3.1.7 I get to
>> following message:
>> 
>> Oct  2 06:01:20 zoidberg spamd[17975]: spamd: connection from localhost
>> [127.0.0.1] at port 58519 
>> Oct  2 06:01:21 zoidberg spamd[17975]: spamd: processing message
>> <71...@fry.3pyramids.zzn.com> for
>> mail3@apfelshampoo.de:2000 
>> Oct  2 06:01:25 zoidberg spamd[17975]: pyzor: check failed: Can't fork at
>> /usr/share/perl5/Mail/SpamAssassin/Util.pm line 1308. 
> 
> [1]
> 
>> Oct  2 06:01:27 zoidberg spamd[17975]: spamd: identified spam
>> (1001.9/6.5)
>> for mail3@apfelshampoo.de:2000 in 6.3 seconds, 1959 bytes. 
>> 
>> Spam mail is getting recognized, I've tried with the GTUBE test. But
>> something seems to be wrong with starting the pyzor checks, does anybody
>> know why?
> 
> 
> How do you call pyzor?
> 
> Perhaps you find hints with:
> 
> spamassassin -D
> 
>>  spamassassin -d [ < mailmessage | path ... ]
> 
> 
> as described in "man 3 spamassassin"
> 
> btw:
> 
> Debian Etch too here:
>> ii  perl           5.8.8-7
>> ii  perl-base      5.8.8-7        The Pathologically Eclectic Rubbish
>> Lister
>> ii  perl-modules   5.8.8-7        Core Perl modules
>> ii  spamassassin   3.1.7-2        Perl-based spam filter using text
>> analysis
> 
> But i call SA from:
>> ii  amavisd-new               2.4.2-6.1
> 
> dunno if it makes a difference in this case ...
> 
> [1] Perhaps someone could help:
> How could i show/jump to line 1308 of Util.pm and more important are the 
> "comments "##"" counted as lines or not?
> (I tried "less" with the command "g" but not sure if it jumped to the 
> exact position)
> 
>> Regards,
>>   Frank
> 
> 
> -- 
> Grüsse/Greetings
> MH
> 
> 
> Dont send mail to: ubecatcher@linuxrocks.dyndns.org
> --
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/pyzor-check-failed-%28can%27t-fork-at-Util.pm%29-tf4553028.html#a12995394
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: pyzor check failed (can't fork at Util.pm)

Posted by Matthias Haegele <mh...@linuxrocks.dyndns.org>.
Frank Niedermann schrieb:
> Hi,
> 
> on a fresh Debian 4.0 installation with Spamassassin 3.1.7 I get to
> following message:
> 
> Oct  2 06:01:20 zoidberg spamd[17975]: spamd: connection from localhost
> [127.0.0.1] at port 58519 
> Oct  2 06:01:21 zoidberg spamd[17975]: spamd: processing message
> <71...@fry.3pyramids.zzn.com> for
> mail3@apfelshampoo.de:2000 
> Oct  2 06:01:25 zoidberg spamd[17975]: pyzor: check failed: Can't fork at
> /usr/share/perl5/Mail/SpamAssassin/Util.pm line 1308. 

[1]

> Oct  2 06:01:27 zoidberg spamd[17975]: spamd: identified spam (1001.9/6.5)
> for mail3@apfelshampoo.de:2000 in 6.3 seconds, 1959 bytes. 
> 
> Spam mail is getting recognized, I've tried with the GTUBE test. But
> something seems to be wrong with starting the pyzor checks, does anybody
> know why?


How do you call pyzor?

Perhaps you find hints with:

spamassassin -D

>  spamassassin -d [ < mailmessage | path ... ]


as described in "man 3 spamassassin"

btw:

Debian Etch too here:
> ii  perl           5.8.8-7
> ii  perl-base      5.8.8-7        The Pathologically Eclectic Rubbish Lister
> ii  perl-modules   5.8.8-7        Core Perl modules
> ii  spamassassin   3.1.7-2        Perl-based spam filter using text analysis

But i call SA from:
> ii  amavisd-new               2.4.2-6.1

dunno if it makes a difference in this case ...

[1] Perhaps someone could help:
How could i show/jump to line 1308 of Util.pm and more important are the 
"comments "##"" counted as lines or not?
(I tried "less" with the command "g" but not sure if it jumped to the 
exact position)

> Regards,
>   Frank


-- 
Grüsse/Greetings
MH


Dont send mail to: ubecatcher@linuxrocks.dyndns.org
--