procmail
[Top] [All Lists]

EXITCODE doesn't seem to work

2002-06-20 01:59:36
Hello,

In an attempt to fight the daily tons of spam, I decided to call in 
procmail. I already use it for automatically sorting incoming mail, 
but this is different.

What I want is a "permission denied" when a messages is found to be 
spam: I want the message to bounce. Searching through several faqs 
and howto's, I experimented with the EXITCODE, but to no avail. I 
copied an example that first sets EXITCODE and then "HOST=" to abort 
procmail. The abort goes just fine, but no bounce... We use Sendmail 
here, btw.

This is the recipe I have so far. Nothing special, just for testing... 
It's supposed to bounce messages I send from somewhere.org containing 
"This is spam." but it doesn't. What do I do wrong?

Thanks already,

Hans


:0 H
* ^From (_dot_)*woefdram(_at_)somewhere(_dot_)org
{
    :0 B
    * ^This is spam\.$
    {
        EXITCODE=77
        HOST=
    }
}

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>