Andreas Haralambopoulos: > 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
You are aware that this violates RFC 5322, because it does not inform the sender of delivery failures. > The receiver postfix sends successfully e-mail to the sender, but > with a full header of the original e-mail. As per the RFC for delivery status notifications, specify RET=FULL or RET=HDRS to be explicit about what content should be returned. > Is it possible to remove all the header lines from the original > e-mail except the No. Postfix implements delivery status notifications according to the RFC. HDRS and FULL are the only available options. Wietse