Am 18.01.2015 um 19:36 schrieb [email protected]:
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; [email protected] or Return-Path: <[email protected]> anyway .. it is possible to remove that additional header?
first: why? second: http://www.postfix.org/postconf.5.html#smtp_header_checks
