Stefan Palme: > On Fri, 2008-09-05 at 06:52 -0400, Wietse Venema wrote: > > Stefan Palme: > > > Hi all, > > > > > > Our mail server is configured to use special envelope sender addresses > > > for some outgoing mail so that bounces can be processed automatically. > > > > > > The "bounce processor" is a self-made script. Are there any hints what > > > to look for in a bounced mail to be sure, that it really is a bounce > > > caused by "undeliverable mail" (and not only a vacation message), and > > > how to clearly detect the email address that bounced? My goal is to > > > collect invalid email addresses, but not email addresses that only send > > > a vacation message or other auto-reply-stuff. > > > > Use an envelope sender address that does not appear in From: or reply-To:. > > I do. But not only "real bounces" are sent back to the envelope sender > address, but vacation-auto-replies too. See thread with subject > "where to send auto-replies?".
Bounce messages are defined in RFC 3462/3464, and have Content-Type: multipart/report; report-type=delivery-status. Mail software that produces its own home-grown format requires that you maintain an increasingly complex tangle of regular expressions. Wietse