On Thu, Mar 23, 2006 at 10:54:10AM +0100, Klaus Johannes Rusch wrote:
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
}
Ahh, outstanding! I new there had to be an easy way to do that.
Are you sure though that you want to bounce legitimate mail if your
spamassassin fails for some reason ?
Well, exitcode 75 shouldn't bounce anything, it should just cause mail
to queue up in postfix. Given the volume of email I normally deal with,
I'll very quickly realize if that's happening...
--
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