m...@ruggedinbox.com: > Hi! > At the end of the /etc/postfix/master.cf file (Debian Wheezy) > we have a nice custom PHP script which checks and limits outgoing > emails: > > outCustomFilter unix - n n - - pipe > flags=F user=vmail:vmail argv=/etc/postfix/outCustomFilter.php > ${recipient} > > This script does its checks and if everything looks fine, it sends the > email to the destination: > > unset($argv[0]); > $sendmail = '/usr/sbin/sendmail -G -i ' . implode(' ', $argv); > $handle = popen($sendmail, 'w'); > fwrite($handle, $content); > $sendmail_return_value = pclose($handle); > > Problem: when postfix runs the script, it also adds an header, not sure > if > X-Postfix-Sender: rfc822; vm...@ruggedinbox.com > or > Return-Path: <vm...@ruggedinbox.com>
The Postfix bounce(8) daemon reports X-Postfix-Sender in a delivery status notification, but evenm there, it is not part of a message header. The Postfix pipe(8) daemon prepends Return-Path only when the pipe command flag 'R' is specified. Wietse > anyway .. it is possible to remove that additional header ? > > > Thank you, > RuggedInbox team >