Hi all,
I am tasked to configure a customized bounce message. It is clear how to
reference variables that correspond to postfix settings, like $myhostname.
I have not found a way how to add the message-id of the original
message. It should be added to the In-Reply-To: header.
failure_template = <<EOF
Charset: us-ascii
In-Reply-To: $message-id
From: MAILER-DAEMON (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
Postmaster-Subject: Postmaster Copy: Undelivered Mail
This is the mail system at host $myhostname.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
EOF
postconf does not even like the header :)
postconf -b bounce.cf
postfix/bounce: warning: bounce.cf: unknown "In-Reply-To" header label
in failure template -- ignoring this template
...
Can I access the original message-id? Is it all possible to add headers
to the template? Is there another, more elegant way to solve this?
All the best,
Manu