procmail
[Top] [All Lists]

EXITCODE and stdout

2000-08-24 08:56:53
Hi *,

I'm trying to discard emails from somebody and have procmail return a hard
error code (like 67, 77 or 100) *with* my own brief error message. The MTA is
qmail. Currently I have "|preline procmail" in my .qmail file. I have tried
this following recipe with partial success (email is discarded and bounced, but
my brief error message is not there):

:0
* ^From:(_dot_)*abuser(_at_)example\(_dot_)com
{
    EXITCODE=100

    :0
    | echo "Permission denied"
}

Apparently that echo goes nowhere. This is the bounce from qmail:

Hi. This is the qmail-send program at haryan.to
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<ronny at haryan.to>:

--- Below this line is a copy of the message.
[...message deleted...]

I don't know how to make procmail print to stdout.  Any help or
suggestions will be greatly appreciated. Thanks in advance.

Cheers,

Ronny

_______________________________________________
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>