You want VERPs.

The problem is there's no standard for parsing a bounce message (well, DSNs are a sort of standard, but nobody follows them). To make this work, you'll have to write a filter for every mail program in existence, to pull out the right data. This doesn't sound that bad, but there are more mail server software packages than you think...

There is one thing that's standard, however---where the bounce messages go. Bounce messages are always sent to the envelope sender of the message. So if there was only some way to encode the recipient into the envelope sender, so you'd know who the bounce message was coming from...

Oh, wait, that's right---That's what VERP does! :-)

The idea is that you use a different envelope sender for each message you send out, and encode the recipient into that, along with whatever other information you'll find useful. For example, a message to me from your list might be from <jalspach-bouncemanager-sgifford=tir.com@jalspach.com>. If the message bounced, it would be sent to this user, and the mail server for jalspach.com could tell what address caused the bounce by looking at who the bounce was sent to.

This requires that your mail software supports extension addresses. qmail supports these with dashes---I can configure my system so that sgifford-anything goes to my account. sendmail does the same thing but with plus signs---sgifford+anything.

Once you've got that, you set up a program to handle mail for the account (jalspach-bouncemanager, in the above example), have it look at the envelope information, and write that information to a database or text file.

Hope that helps!


In reply to Re: email bouncebacks by sgifford
in thread email bouncebacks by jalspach

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.