On 2015-01-18 18:43, wie...@porcupine.org wrote:
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
Hi ok we double checked and this is the source of an email sent from
m...@ruggedinbox.com to m...@ruggedinbox.com:
Return-Path: <vm...@ruggedinbox.com>
Delivered-To: m...@ruggedinbox.com
Received: from localhost (localhost.localdomain [127.0.0.1])
by ruggedinbox.com (Postfix) with ESMTP id 75B4C3140083
for <m...@ruggedinbox.com>; Sun, 18 Jan 2015 20:28:26 +0100 (CET)
X-Spam-Flag: NO
X-Spam-Score: -0.002
X-Spam-Level:
X-Spam-Status: No, score=-0.002 required=5 tests=[NO_RECEIVED=-0.001,
NO_RELAYS=-0.001] autolearn=no
Received: from ruggedinbox.com ([127.0.0.1])
by localhost (ruggedinbox.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id uDmvEM5lO0vR for <m...@ruggedinbox.com>;
Sun, 18 Jan 2015 20:28:24 +0100 (CET)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit
Date: Sun, 18 Jan 2015 19:28:24 +0000
From: m...@ruggedinbox.com
To: m...@ruggedinbox.com
Subject: test
Message-ID: <99d775ed6c322d7165bc4dfb8eca5...@ruggedinbox.com>
X-Sender: m...@ruggedinbox.com
test
so it looks like 'Return-Path: <vm...@ruggedinbox.com>' is added.
We have some 'R' flag enabled in master.cf:
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d
${recipient}
spamassassin unix - n n - - pipe
flags=R user=debian-spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail
-oi -f ${sender} ${recipient}
do you think the problem is here ?