You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by LuKreme <kr...@kreme.com> on 2013/11/10 16:19:36 UTC
Restarting spamd?
After I run sa-learn, I noticed that spamd did not apply the changed rules.
If I setup sa-learn to run automatically, I need to setup spamd to restart afterwards, I suppose. What's a reasonable interval for running sa-learn out of crontab? (I have it setup for weekly)
Or should I be doing something else?
--
I've never seen religious faith move mountains, but I've seen what it does
to skyscrapers.
Re: Restarting spamd?
Posted by Benny Pedersen <me...@junc.eu>.
RW skrev den 2013-11-10 17:46:
> On Sun, 10 Nov 2013 08:19:36 -0700
> LuKreme wrote:
>
>> After I run sa-learn, I noticed that spamd did not apply the changed
>> rules.
>
> I assume that everywhere you have written sa-learn, you actually mean
> sa-update.
# sa-update.sh
sa-update
sa-compile
/etc/init.d/spampd restart
this is what i do on gentoo
note i use spampd not spamd/spamc, but the same is the order for spamd
sa-compile need to have one more plugin enabled to be usefull
Re: Restarting spamd?
Posted by LuKreme <kr...@kreme.com>.
On 10 Nov 2013, at 09:46 , RW <rw...@googlemail.com> wrote:
> On Sun, 10 Nov 2013 08:19:36 -0700
> LuKreme wrote:
>
>> After I run sa-learn, I noticed that spamd did not apply the changed
>> rules.
>
> I assume that everywhere you have written sa-learn, you actually mean
> sa-update.
doh. Yes, I did.
> sa-update && /etc/init.d/spamassassin reload
Perfect.
> It doesn't matter if you run it frequently since it tests whether your
> rules are up to date by a simple dns query which can be cached by your
> local cache.
I'll run it daily in that case. I still remember the old days of, "don't check too often and don't check at 0 0 or 1 1".
--
The older you get the more you need the people you knew when you were
young.
Re: Restarting spamd?
Posted by RW <rw...@googlemail.com>.
On Sun, 10 Nov 2013 08:19:36 -0700
LuKreme wrote:
> After I run sa-learn, I noticed that spamd did not apply the changed
> rules.
I assume that everywhere you have written sa-learn, you actually mean
sa-update.
> If I setup sa-learn to run automatically, I need to setup spamd to
> restart afterwards, I suppose.
From the manpage:
Note that "sa-update" will not restart "spamd" or otherwise
cause a scanner to reload the now-updated ruleset
automatically. Instead, "sa-update" is typically used in
something like the following manner:
sa-update && /etc/init.d/spamassassin reload
This works because "sa-update" only returns an exit status of 0
if it has successfully downloaded and installed an updated
ruleset.
There's probably some kind of periodic script supplied by your
OS's Spamassassin package.
> What's a reasonable interval for
> running sa-learn out of crontab? (I have it setup for weekly)
It doesn't matter if you run it frequently since it tests whether your
rules are up to date by a simple dns query which can be cached by your
local cache.
Re: Restarting spamd?
Posted by Benny Pedersen <me...@junc.eu>.
LuKreme skrev den 2013-11-10 16:19:
> After I run sa-learn, I noticed that spamd did not apply the changed
> rules.
hmm, sa-laern is bayes, not spamassassin rules, if you update rules then
it must restart spamd
> If I setup sa-learn to run automatically, I need to setup spamd to
> restart afterwards,
nope this is inccorect, bayes is learning by rules and sa-learn, only
need to restart spamd if rules are changed, for the sa-learn part it
does not need restart of spamd
> I suppose. What's a reasonable interval for
> running sa-learn out of crontab? (I have it setup for weekly)
this is another question outside of subject
> Or should I be doing something else?
tell what you are doing would be a start :=)
Re: Restarting spamd?
Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 11/10/2013 10:19 AM, LuKreme wrote:
> After I run sa-learn, I noticed that spamd did not apply the changed rules.
>
> If I setup sa-learn to run automatically, I need to setup spamd to restart afterwards, I suppose. What's a reasonable interval for running sa-learn out of crontab? (I have it setup for weekly)
>
> Or should I be doing something else?
We try hard to publish updates nightly so once per day at max is the
highest.
Regards,
KAM