Vautrin makes a very good point above. The only people likely to be writing to addresses you don't support aren't the sort of people who have their headers set up so they can properly receieve bounces.

I do something similar to you although the details will be different.

I have a hosting account that forwards all mail to the domain to a given address. fetchmail then retrieves the mail, and procmail filters it. Anything to a 'whitelist' address gets filtered by SpamAssassin and kept. Anything to a blacklist gets permanently deleted. Anything not on a list gets logged and held in quarantine, a report then comes to me telling me that 'A message addresses to something@domain.com' has been receieved from 'someone@somewhere.com''. I can then add that address to either list and the quarantine releases the mail. (SpamAssassin itself uses whitelists so that friends can send me stuff without it getting munged!)

The reason I outline all this is so that I can tell you that I never bounce a message. I figure a bounce is yet another email going nowhere that noone will read.

(The reason I do all this rather than just deleting stuff to unrecognised addresses is that I make up addresses whenever I need to. If I register here with 'perlmonks@mydomain.com' rather than 'me@mydomain.com' then I can firstly create easy-to-use filters and secondly, if I get spam sent to that address I know the owners of this site sold me out!)


In reply to Re: Re: Bouncing Email w/ Perl by BigLug
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.