procmail
[Top] [All Lists]

Halting delivery on program failure

2006-03-23 02:37:52
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

And procmail is called via my .forward (I'm running postfix)

"|/usr/local/bin/procmail -t || exit 75"

I'm almost certain that at one point I had this setup so that if  
there was a failure, procmail would stop what it was doing and return  
a non-zero exit code, which would then result in postfix seeing a  
return code of 75, so it would keep the message in it's queue.
--
Jim C. Nasby, Database Architect                decibel(_at_)decibel(_dot_)org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"



____________________________________________________________
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