From: joe.joesmith4j on
Hi,

I'd like to accomplish the following task with postfix. Please tell
me if it can be done and if so, please point me in the right
direction.

First a little background. We have a form on a web site. After the
form is submitted, the web server hosting the form does some
processing and then sends an email to the email address entered into
the form. There is some basic checking on the email address (such as
an @ sign, etc.). The email will then be relayed via a separate Linux
box running postfix 2.2.10.

What we want to do is capture those emails that are undeliverable for
whatever reason. We will do the capturing on the Linux box. If we
can capture the undeliverable email, then our plan would be to
populate a database on the Linux box with some basic information
(email address, date, time, subject, etc.). Separately, we will have
programs to analyze the data in the database and send out reports.

Is it possible to have the undeliverable emails redirected to a
program?

Thanks,

- Joe