Ryan Kish wrote:
Hello,

I would like to move from exim4 to postfix, however I one issue I can
not figure out how to solve with postfix.

I have an application that will send out email on behalf of a user.
The message is sent from the application, and includes a "reply to"
including the user's email address:

from: Users Name <[EMAIL PROTECTED]>
sender: Users Name <[EMAIL PROTECTED]>
reply to: Users Name <[EMAIL PROTECTED]>
to: [EMAIL PROTECTED]

The problem arises when an email address specified by the end user is
not valid and a bounce message is generated. As one would expect, the
bounce notification is sent to '[EMAIL PROTECTED]'.  However, I need to have
the bounce message sent to the user to inform them of the problem.

I have looked at the "bounce_template_file" directive and template
syntax. However, as its currently implemented it does not seem to be
able to solve my issue. I have been searching this list and google for
an answer but have come up empty handed. Are there any other methods I
could go about to solve the issue?

Thank you for your time,
Ryan


Bounces must be sent to the envelope sender address and don't rely on anything listed in the headers. You control where the bounce goes by setting the envelope sender address.

If you submit the mail via the sendmail(1) command, set the envelope sender with the -f option. If you use SMTP, use the address that should receive the bounce as the MAIL FROM command.

--
Noel Jones

Reply via email to