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>

anyway .. it is possible to remove that additional header ?


Thank you,
RuggedInbox team

Reply via email to