Reject, don't bounce. Search the SPAM-L archives for many recent threads as to why bouncing is "bad". A reject will refuse the mail before it is accepted by your system, and therefore does not make finding the correct sender your problem. If you bounce, you have now taken responsibility for sending notice to the correct sender (if you decide to).

It is simple to forge the envelope on a mail message. If you accept then bounce, you can easily be used to send "reflect" spam via your bounce mechanism.

I actually wrote (in perl, just to keep it slightly on topic :) a qmail delayed notification program (still available via qmail web sites, I believe), that sent notices of delayed mail in the queue to the originating party. Now days, I would not consider writing it or using it, except on a set of controlled, internal systems. The qmail "accept then bounce" model is also no longer very good in today's internet. I still use it at home, but I do not bounce, I save for spam filter fodder.


In reply to Re: Bouncing Email w/ Perl by MidLifeXis
in thread RESLOVED: Bouncing Email w/ Perl by soffen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.