You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Ian Zimmerman <it...@buug.org> on 2015/09/15 17:41:49 UTC
Re: [Announce] SA-Plugins: RedisAWL, RuleTimingRedis
On 2015-06-09 17:57 +0200, Benning, Markus wrote:
> RuleTimingRedis - collect SA rule timings in redis
I'm trying this out. I have a little annoying problem: the logs
beginning on line 178 seem to go to stdout or stderr as well as syslog.
The result is that cron sends me email every time spamd is restarted
(after every rule update). Do you know how to change that? I find
nothing about logging in perldoc Mail::SpamAssassin::Conf.
I suppose I could just delete those lines from the module :-) But then
I would have extra work when I merge with any new versions you have.
Thanks for your ideas.
--
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.
Re: [Announce] SA-Plugins: RedisAWL, RuleTimingRedis
Posted by Martin Gregorie <ma...@gregorie.org>.
On Tue, 2015-09-15 at 08:41 -0700, Ian Zimmerman wrote:
> On 2015-06-09 17:57 +0200, Benning, Markus wrote:
>
> > RuleTimingRedis - collect SA rule timings in redis
>
> I'm trying this out. I have a little annoying problem: the logs
> beginning on line 178 seem to go to stdout or stderr as well as
> syslog.
> The result is that cron sends me email every time spamd is restarted
> (after every rule update). Do you know how to change that? I find
> nothing about logging in perldoc Mail::SpamAssassin::Conf.
>
Assuming your sa_update script is the same as mine (I run Fedora Linux)
The obvious quick fix is to change line 2 in case 0) to read:
service spamassassin restart;;
and remove lines 1 and 3, which (in my script) are both 'echo' commands
reporting that the update completed and that Spamassassin was
restarted. If you're still seeing the unwanted messages, replace the
remaining line with:
service spamassassin restart 1>/dev/null 2>/dev.null;;
will will suppress anything that Spamassassin sends to stdout and
stderr. The sa_update script I have would still report updating errors
and the fact that there was no rules update because these are handled
by case 1, 2 and * and so can't be silenced by this edit.
> I suppose I could just delete those lines from the module :-) But
> then I would have extra work when I merge with any new versions you
> have.
>
Doing what I suggest would be easier than editing SA itself. Keep a
copy of your cron script when its doing what you want so, if an upgrade
slots in a new sa_update script that lets the unwanted text through
again, you can simply slot your modified version back in.
Martin