procmail
[Top] [All Lists]

Re: Bouncing a mail

2002-01-16 19:05:59

On Wed, Jan 16, 2002 at 11:57:36AM +0100, Nick Wilson wrote:

Hi 
can someone point me to a tutorial on bouncing mails?
I just want to bounce mail as if it was never received.

Assuming, you're using procmail as your local delivery agent, you can:

        :0
        * [your conditions go here]
        { EXITCODE=67 }

If you're running procmail from a .forward file, you probably can't
simply tell the MTA to treat is as rejected, and may have to generate
your own bounce message based on the header material you get.  (Which
in the case of spam is almost useless.)  If you still want to do this
(for example to return non-delivery messages to an Accucast or L-soft
mailer), I've added MIME support to the bounce code from Catherine
Hampton's spambouncer package.  You can roll your own, use hers, or use
my mods at http://www.it.ca/software/procmail-bounce .

Using procmail for local delivery and then using EXITCODE=67 is *by far*
the best option.  Note that if you do this, every bounce message you
generate that is destined for a non-existent address may *also* cause
one or more bounce messages to be sent to your local postmaster.  If you
are not the postmaster, you should consult with your provider before
implementing anything that could significantly increase their workload.

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