You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Andy Spiegl <sp...@spiegl.de> on 2007/04/13 18:52:04 UTC

what to do if spamc fails?

Hi,

I call spamc to scan the messages (like most of you I assume :-)
But if spamd isn't running (see my other postings) spamc returns the
messages unprocessed.  How are you guys coping with that?

I guess I have to check the processed messages for the
"X-Spam-Checker-Version" header to see whether it was processed.

And if it was not, what should I do?
 - call /etc/init.d/spamassassin restart, then call spamc again
 - or wait a while for spamd to come back up by itself(?)
 - or call spamassassin directly?

I don't like neither of these solutions.

Thanks,
 Andy.

-- 
 "Some people say that cats are sneaky, evil, and cruel.  True, and they
  have many other fine qualities as well."  --Missy Dizick

Re: what to do if spamc fails?

Posted by mouss <mo...@netoyen.net>.
Andy Spiegl wrote:
> Hi,
>
> I call spamc to scan the messages (like most of you I assume :-)
> But if spamd isn't running (see my other postings) spamc returns the
> messages unprocessed.  How are you guys coping with that?
>
> I guess I have to check the processed messages for the
> "X-Spam-Checker-Version" header to see whether it was processed.
>
> And if it was not, what should I do?
>  - call /etc/init.d/spamassassin restart, then call spamc again
>  - or wait a while for spamd to come back up by itself(?)
>  - or call spamassassin directly?
>
> I don't like neither of these solutions.
>   


There are times when an MTA is missed ;-)

unless you want to manage a queue in your scripts/..., thus reinventing 
a (big part of a) MTA, deliver the message unfiltered. if you can use an 
MTA, then do (but not by resubmitting the message. your filter should 
return a temp error, so that the MTA will retry after some time).