procmail
[Top] [All Lists]

Re: Halting delivery on program failure

2006-03-23 03:05:23
Jim Nasby wrote:

I just ended up with a bunch of spam in my inbox because Spamassassin  
went belly-up for some reason. In my procmail log I see:

procmail: Program failure (-25) of "spamassassin"

What I don't understand is why procmail continued delivering the  
email instead of bouncing back to the mailer/exiting with an error.  
I'm calling spamassassin like this:

:0fw : spamassassin.lck
| spamassassin
 

You can check if the spamassassin step was successful by looking for the 
SpamAssassin headers, e.g.

:0fw: spamassassin.lck
| spamassassin

:0
* !^X-Spam-Status:
{
    EXITCODE=75
}

Are you sure though that you want to bounce legitimate mail if your 
spamassassin fails for some reason ?

-- 
Klaus Johannes Rusch
KlausRusch(_at_)atmedia(_dot_)net
http://www.atmedia.net/KlausRusch/


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail