Hi All, I am using a custom template for bounce_template_file variable.
This template is used by sending to another postfix instance a success delivery notification. Below the file used in main.cf of the sender site smtpd_command_filter=pcre:/etc/postfix/dsn_command_filter /etc/postfix/dsn_command_filter /^(RCPT\s+TO:<.*?>\s+(?:.*?\s+)?)NOTIFY=\S+(.*)/ ${1}NOTIFY=SUCCESS${2} /^(RCPT\s+TO:.*)/ $1 NOTIFY=SUCCESS The receiver postfix sends successfully e-mail to the sender, but with a full header of the original e-mail. Is it possible to remove all the header lines from the original e-mail except the 1. recipient lines and 2. the subject All other header lines are not useful for the sender. Thanks Andreas