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). Wietse