Hello,

thank you for response.

On Wed, 2015-05-13 at 11:28 -0400, Wietse Venema wrote:
> Jiri Vitek:
> > Hello,
> > 
> > i need to change subject of bounce messages for undelivered mails. To be
> > specific i have to use old message subject as part of bounce message.
> > For example:
> > 
> > defalt bounce message from postfix:
> > "Undelivered Mail Returned to Sender"
> > 
> > proposal message with original subject:
> > "Undelivered Mail Returned to Sender: <original message subject >"
> > 
> > I found, that i can create custom template for this message. But i'm
> > unable to find some variable with subject of original message.
> > 
> > http://www.postfix.org/bounce.5.html 
> 
> It is not documented, because there is no such variable. It is not
> implemented due to overwhelming lack of demand.
> 
> > So my question is, if there exist some variable with subject of original
> > message. Eventually what is your proposed solution.
> 
> Good luck, this will require major surgery. Postfix does not know
> any message header information at the time that it formats the
> template. At that time it knows only a little about the message
> envelope (mainly, the recipient of the bounce message).

I have decided to solve this via custom content filtering of bounce
message. I will write own script to do that.

> 
>       Wietse

-- 
Jiří Vítek
System administrator

BCV solutions s.r.o.
Mobile: +420 777 785 892
E-mail: jiri.vi...@bcvsolutions.eu
www.bcvsolutions.eu <http://bcvsolutions.eu>

Identity Management: www.czechidm.com <http://czechidm.com/cs>
Správa privilegovaných účtů: www.czechpam.com <http://czechpam.com>



Reply via email to