You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Keith De Souza <kb...@googlemail.com> on 2010/10/29 01:17:11 UTC

--timeout-child=secs

Hi Users,

======
SpamAssassin version 3.2.5
  running on Perl version 5.10.0
======

I'm pretty new to spamassassin and recently been asked to change the flag
timeout-child
to 180 seconds, its currently set to to 60.

I've googled this and some say that this can be changed in /etc/conf.d/spamd
however
I don't seem to have this file.

I've tried using spamd --timeout-child=180 afterwhich i ran a ps aux | grep
spamd
and here are my results:

======
root     15967  0.1  0.3  31732 29268 ?        Ss   Oct28   0:01
/usr/sbin/spamd --create-prefs --max-children 8 -u mail
--helper-home-dir *--timeout-child=180
*-d --pidfile=/var/run/spamd.pid
======

However when I restart the spamassassin deamon and run ps aux | grep spamd,
it goes back to what it was set before the my change:

======
root     15967  0.1  0.3  31732 29268 ?        Ss   Oct28   0:01
/usr/sbin/spamd --create-prefs --max-children 8 -u mail --helper-home-dir *
--timeout-child=60* -d --pidfile=/var/run/spamd.pid
======

So it does seem to have a config file for where it is reading from. My
question is:

1. Where would it be?

or

2. How do I find it?

As mentioned, I'm pretty new at this so if you need me to provided further
details please let me know.

Many Thanks

Keith

Re: --timeout-child=secs

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
OMG. Thanks a ton for this perfect example why HTML mail sucks bleep.

Not only did your $MUA [1] allow you to write your response indented as
if it where written by me. It also managed to gray-out the first line of
your response. Not the second one, mind you. And injected an HTML br tag
arbitrarily.

Even worse! For some unknown reason, that $MUA seriously managed to
*invert* the '> ' quote indentation. The OP is prefixed once, the reply
to that twice. Never mind the crappy LGHFTR [2] blockquote class name
and per-element styling.

OK, end of sarcasm and bitching. Next time, please do not use HTML on
mailing lists. :)

[1] Hey, at least gmail can handle Umlauts and uses an even half-way
    sane date format.
[2] Looks Good Here, Bleep The Rest


Terribly fscked up indentation fixed for the remainder.

> > The correct file to edit (and track down the current *custom* value of
> > 60) depends on your distro. It's either some distro specific "default
> > conf" file, or directly inside your init script.
> 
> Really appreciate your response Karsten and just to let you know that
> I've managed to find it and it was locate in /etc/default/spamassassin

Great! And nice session of permanent mid-air collisions in this thread.

Just for reference -- if you ever ask again, where settings or default
settings might be stored, the OS and distro should be included. ;)


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


Re: --timeout-child=secs

Posted by Keith De Souza <kb...@googlemail.com>.
2010/10/29 Karsten Bräckelmann <gu...@rudersport.de>

> On Fri, 2010-10-29 at 00:17 +0100, Keith De Souza wrote:
> > I'm pretty new to spamassassin and recently been asked to change the
> > flag timeout-child to 180 seconds, its currently set to to 60.
>
> >>The spamd default is 300. See 'man spamd'. Why has this been changed in
> >>the first place?
>
> >>Btw, whoever knows why, knows where. ;)
>
> > I've googled this and some say that this can be changed
> > in /etc/conf.d/spamd however I don't seem to have this file.
>
> >>A very brief googling seems to suggest this is an archlinux-ism.
>
> >>The correct file to edit (and track down the current *custom* value of
> >>60) depends on your distro. It's either some distro specific "default
> >>conf" file, or directly inside your init script.
>
> Really appreciate your response Karsten and just to let you know that I've
> managed to find
> it and it was locate in /etc/default/spamassassin
>

Many thanks

Keith

> --
> char *t="\10pse\0r\0dtu\0.@ghno
> \x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
> main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8?
> c<<=1:
> (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0;
> }}}
>
>

Re: --timeout-child=secs

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Fri, 2010-10-29 at 00:17 +0100, Keith De Souza wrote:
> I'm pretty new to spamassassin and recently been asked to change the
> flag timeout-child to 180 seconds, its currently set to to 60.

The spamd default is 300. See 'man spamd'. Why has this been changed in
the first place?

Btw, whoever knows why, knows where. ;)

> I've googled this and some say that this can be changed
> in /etc/conf.d/spamd however I don't seem to have this file.

A very brief googling seems to suggest this is an archlinux-ism.

The correct file to edit (and track down the current *custom* value of
60) depends on your distro. It's either some distro specific "default
conf" file, or directly inside your init script.


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


Re: --timeout-child=secs

Posted by Keith De Souza <kb...@googlemail.com>.
>>With Debian, it's /etc/default/spamassassin -- or, again, the init
>>script directly. Also see my previous post. It *has* been changed in one
>>of these places.

Excellent and thanks again :-)

Keith

Re: --timeout-child=secs

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Fri, 2010-10-29 at 00:28 +0100, Keith De Souza wrote:
> > On 29 October 2010 00:19, Gary Smith wrote:
> > > Check /etc/sysconfig/spamassassin config file

> Thanks for your swift response, unfortunately I dont seem to have the
> sysconfig directory.
> If it helps, the linux distro running is Debian Lenny. Any more
> thoughts?

With Debian, it's /etc/default/spamassassin -- or, again, the init
script directly. Also see my previous post. It *has* been changed in one
of these places.


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


Re: --timeout-child=secs

Posted by Keith De Souza <kb...@googlemail.com>.
>>On 29 October 2010 00:19, Gary Smith <ga...@holdstead.com> wrote:

> >>Check /etc/sysconfig/spamassassin config file


Hi Gary,

Thanks for your swift response, unfortunately I dont seem to have the
sysconfig directory.
If it helps, the linux distro running is Debian Lenny. Any more thoughts?

Many thanks

Keith




> ------------------------------
> *From: * Keith De Souza <kb...@googlemail.com>
> *Date: *Fri, 29 Oct 2010 00:17:11 +0100
> *To: *<us...@spamassassin.apache.org>
> *Subject: *--timeout-child=secs
>
> Hi Users,
>
> ======
> SpamAssassin version 3.2.5
>   running on Perl version 5.10.0
> ======
>
> I'm pretty new to spamassassin and recently been asked to change the flag
> timeout-child
> to 180 seconds, its currently set to to 60.
>
> I've googled this and some say that this can be changed in
> /etc/conf.d/spamd however
> I don't seem to have this file.
>
> I've tried using spamd --timeout-child=180 afterwhich i ran a ps aux | grep
> spamd
> and here are my results:
>
> ======
> root     15967  0.1  0.3  31732 29268 ?        Ss   Oct28   0:01
> /usr/sbin/spamd --create-prefs --max-children 8 -u mail --helper-home-dir
> *--timeout-child=180 *-d --pidfile=/var/run/spamd.pid
> ======
>
> However when I restart the spamassassin deamon and run ps aux | grep spamd,
> it goes back to what it was set before the my change:
>
> ======
> root     15967  0.1  0.3  31732 29268 ?        Ss   Oct28   0:01
> /usr/sbin/spamd --create-prefs --max-children 8 -u mail --helper-home-dir
> *--timeout-child=60* -d --pidfile=/var/run/spamd.pid
> ======
>
> So it does seem to have a config file for where it is reading from. My
> question is:
>
> 1. Where would it be?
>
> or
>
> 2. How do I find it?
>
> As mentioned, I'm pretty new at this so if you need me to provided further
> details please let me know.
>
> Many Thanks
>
> Keith
>
>