On 4/8/2015 7:45 PM, Vernon Fort wrote:
> On Wed, Apr 08, 2015 at 09:45:30PM +0000, Vernon Fort wrote:
> 
>>> I have a setup that I need the bounce message recipient to be 
>>> different than the default domain name.  Meaning if postfix attempts 
>>> to deliver an message and cannot, it sends the internal bounce message 
>>> to a different email address than whats set in mydomain =, i.e. 
>>> r...@anotherdoamin.com
> 
>> I can't make much sense of the above description, but bounces are sent to 
>> the envelope sender.  Since in the bounce message the original envelope 
>> >sender is now the envelope recipient, it is subject to all the usual 
>> rewriting features like all other recipients.
> 
> A better description:  postfix is sending (relaying) email for an order 
> notification system using a valid domain.  If the receiving server rejects 
> the message(s), I need the bounce messages to be sent to a different (single) 
> email address instead of back to the original sender.  The email for this 
> valid domain is hosted elsewhere and we want all bounced or rejected email to 
> go do a general account for further review.
> 
> Vernon
> 


Use smtp_generic_maps to rewrite the address to the proper return
address when postfix sends it out.
http://www.postfix.org/postconf.5.html#smtp_generic_maps

Or use virtual_alias_maps to rewrite the unwanted address to the
desired one when the bounce arrives or the delivery is rejected.
The domain *should not* be listed in virtual_alias_domains.
http://www.postfix.org/postconf.5.html#virtual_alias_maps

The details of these differ somewhat.  You might want to read up on
them in the ADDRESS_REWRITING_README.
http://www.postfix.org/ADDRESS_REWRITING_README.html



  -- Noel Jones

Reply via email to