procmail
[Top] [All Lists]

Re: artificial bounce?

2002-02-15 09:56:43

On Fri, Feb 15, 2002 at 11:44:42AM +0100, Pawel Krawczyk wrote:

How to generate an artificial bounce from withing procmailrc,
so that some messages are bounced back to the sender with
"no such user" message for example.

Two methods.  You can either use EXITCODE to tell your MTA to generate
an official bounce using something like:

 :0
 * conditions
 { EXITCODE=67 }

or you can run something that will generate an original message that is
set up to *look* like a legitimate bounce message; Catherine Hampton
wrote something to do this as part of SpamBouncer, which I adapted to
support MIME.  It's at http://www.it.ca/software/procmail-bounce .

The EXITCODE approach is much better than using external code, but may
not work if you aren't running procmail as your local delivery agent.
For detailed explanations, search the list archives for discussion of
EXITCODE over the last few months.

-- 
  Paul Chvostek                                             
<paul(_at_)it(_dot_)ca>
  Operations / Development / Abuse / Whatever       vox: +1 416 598-0000
  it.canada                                            http://www.it.ca/

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