You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by John Horne <jh...@plymouth.ac.uk> on 2005/06/23 18:54:12 UTC

RDJ from cron - is it safe?

Hello,

We have been running RDJ manually, but are now considering running it
via cron. The problem is what if something 'goes wrong'? This is on a
central mailhub, and we do not want the mail going through un-spam
checked. I gather others do run RDJ from cron, so the question is have
there been problems doing this?



Thanks,

John.

-- 
---------------------------------------------------------------
John Horne, University of Plymouth, UK  Tel: +44 (0)1752 233914
E-mail: John.Horne@plymouth.ac.uk       Fax: +44 (0)1752 233839


Re: RDJ from cron - is it safe?

Posted by Chris Thielen <cm...@someone.dhs.org>.
John Horne wrote:

>Many thanks for all the replies, which all seem positive.
>
>However, we have been seeing problems with restarting the daemon
>recently, which is why I am wary about starting to run RDJ from cron. In
>trying to restart spamassassin, on a fedora core 4 and core 3 system, we
>see:
>
>  /etc/init.d/spamassassin restart
>  Shutting down spamd:                                       [  OK  ]
>  Starting spamd: Could not create INET socket on 127.0.0.1:783: Address
>  already in use (IO::Socket::INET: Address already in use)
>                                                             [FAILED]
>
>It seems that a single child procees is left running:
>
>  ps auxww|grep -i spamd
>  mail      4156  0.0  2.7  61532 57152 ?    S    17:28   0:00 spamd
>    child
>  root      4169  0.0  0.0   3756   736 pts/1    S+   17:28   0:00 grep
>    -i spamd
>
>If we run 'restart' again then it works okay. If we do a stop and then a
>start, that too works okay.
>
>  
>
Hi John,

Maybe try changing your SA_RESTART to "killall -HUP spamd".  I think
spamd will correctly reload configuration files with a HUP signal.

Chris Thielen

PS. two copies of this email may appear.  I accidentally sent the first
from a non-subscribed address.

PPS. I also just found out I have an open proxy on my mail server
(fixed).  naughty naughty me :)


Re: RDJ from cron - is it safe?

Posted by John Horne <jh...@plymouth.ac.uk>.
On Thu, 2005-06-23 at 14:13 -0700, Ed Kasky wrote:
> At 09:54 AM Thursday, 6/23/2005, John Horne wrote -=>
> >Hello,
> >
> >We have been running RDJ manually, but are now considering running it
> >via cron. The problem is what if something 'goes wrong'? This is on a
> >central mailhub, and we do not want the mail going through un-spam
> >checked. I gather others do run RDJ from cron, so the question is
> >have there been problems doing this?
> 
> RDJ will not restart the daemon or even keep changed rulesets if the
> lint returns an error.  So, running it via a cron job is safe.
> 
Many thanks for all the replies, which all seem positive.

However, we have been seeing problems with restarting the daemon
recently, which is why I am wary about starting to run RDJ from cron. In
trying to restart spamassassin, on a fedora core 4 and core 3 system, we
see:

  /etc/init.d/spamassassin restart
  Shutting down spamd:                                       [  OK  ]
  Starting spamd: Could not create INET socket on 127.0.0.1:783: Address
  already in use (IO::Socket::INET: Address already in use)
                                                             [FAILED]

It seems that a single child procees is left running:

  ps auxww|grep -i spamd
  mail      4156  0.0  2.7  61532 57152 ?    S    17:28   0:00 spamd
    child
  root      4169  0.0  0.0   3756   736 pts/1    S+   17:28   0:00 grep
    -i spamd

If we run 'restart' again then it works okay. If we do a stop and then a
start, that too works okay.

Does anyone else see this problem? Our mail servers can get busy, so we
start SA with the options:

    -d -x -m 15 -s daemon -u mail --max-conn-per-child=100

Reducing the '-m' value made no difference to this problem.
SA version is 3.0.4 on the FC4 server.


Thanks,

John.

-- 
---------------------------------------------------------------
John Horne, University of Plymouth, UK  Tel: +44 (0)1752 233914
E-mail: John.Horne@plymouth.ac.uk       Fax: +44 (0)1752 233839


Re: RDJ from cron - is it safe?

Posted by Ed Kasky <ed...@esson.net>.
At 09:54 AM Thursday, 6/23/2005, John Horne wrote -=>
>Hello,
>
>We have been running RDJ manually, but are now considering running it
>via cron. The problem is what if something 'goes wrong'? This is on a
>central mailhub, and we do not want the mail going through un-spam
>checked. I gather others do run RDJ from cron, so the question is have
>there been problems doing this?

RDJ will not restart the daemon or even keep changed rulesets if the lint 
returns an error.  So, running it via a cron job is safe.

Ed Kasky
~~~~~~~~~
Randomly Generated Quote (462 of 478):
When angry, count to 10.  When really angry, curse.
- M. Twain


Re: RDJ from cron - is it safe?

Posted by Richard Ozer <ro...@ois-online.com>.
I have it running from cron on 12 servers.  Never a problem.

----- Original Message ----- 
From: "Martyn Drake" <ma...@drake.org.uk>
To: <us...@spamassassin.apache.org>
Sent: Thursday, June 23, 2005 10:02 AM
Subject: Re: RDJ from cron - is it safe?


> John Horne wrote:
> 
>> We have been running RDJ manually, but are now considering running it
>> via cron. The problem is what if something 'goes wrong'? This is on a
>> central mailhub, and we do not want the mail going through un-spam
>> checked. I gather others do run RDJ from cron, so the question is have
>> there been problems doing this?
> 
> When there has been a problem (since RDJ lints the rules before 
> attempting a restart IIRC) any problematic updated rules didn't get 
> installed and everything kept on running as it should.  As such, I've 
> not experienced any problems on a live system running RDJ from cron.
> 
> Regards,
> 
> Martyn
> 
> -- 
> Martyn Drake
> http://www.drake.org.uk
> http://www.ourlittleduckling.com
>

Re: Sys::Syslog with SA 3.0 and Perl 5.8.7?

Posted by Kai Schaetzl <ma...@conactive.com>.
Dr Robert Young wrote on Thu, 23 Jun 2005 22:04:57 -0400:

> So when using CPAN to get Sys::Syslog with Perl 5.8.3, it states that 
> it requires Perl 5.8.7 as a depedancy. 
>  
> Just checking to be sure that the later version of Perl is needed if 
> one is intending to use SA 2.6 and/or 3.0 with sendmail?

SA doesn't need it. It's the module which seems to need it. Looks like 
version 0.6 wants that Perl version because it's only available as part of 
the Perl core distribution. Try installing an earlier version directly 
from a tar.gz file. I wonder why it's not part of your Perl distribution. 
Are you sure it's not installed?

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org




Sys::Syslog with SA 3.0 and Perl 5.8.7?

Posted by Dr Robert Young <rc...@aliconsultants.com>.
I have Perl 5.8.3 installed.  I am going to be installing SA 2.6, and 
then perform an upgrade to SA 3.0 as part of a test before attempting a 
"real" upgrade on an existing production system.

I noted in O'Reilly's Spamassassin book that Sys::Syslog is listed as 
being required. I also saw this on another www source regarding SA 
3.0.1 specifically.

So when using CPAN to get Sys::Syslog with Perl 5.8.3, it states that 
it requires Perl 5.8.7 as a depedancy.

Just checking to be sure that the later version of Perl is needed if 
one is intending to use SA 2.6 and/or 3.0 with sendmail? If Perl needs 
to be updated as well, then additional testing is going to be needed as 
Perl gets used in other places "besides" the SA tool. 


Re: RDJ from cron - is it safe?

Posted by Martyn Drake <ma...@drake.org.uk>.
John Horne wrote:

> We have been running RDJ manually, but are now considering running it
> via cron. The problem is what if something 'goes wrong'? This is on a
> central mailhub, and we do not want the mail going through un-spam
> checked. I gather others do run RDJ from cron, so the question is have
> there been problems doing this?

When there has been a problem (since RDJ lints the rules before 
attempting a restart IIRC) any problematic updated rules didn't get 
installed and everything kept on running as it should.  As such, I've 
not experienced any problems on a live system running RDJ from cron.

Regards,

	Martyn

-- 
Martyn Drake
http://www.drake.org.uk
http://www.ourlittleduckling.com