On 21/03/2014 17:25, Wietse Venema wrote:
Nick Warr:
On 21/03/2014 16:54, Viktor Dukhovni wrote:
On Fri, Mar 21, 2014 at 02:24:49PM +0000, Nick Warr wrote:
This is the entry in master.cf
dfilt unix - n n - - pipe
flags=Rq user=filter argv=/etc/postfix/disclaimer -f ${sender} --
${recipient}
Any advice or recommendations?
Edit the filter script, and make sure it invokes the sendmail(1)
command with a "-i" option and (as should be already the case)
without any "-t" option.
sendmail -i -f "$sender" -- "$@"
if the argument list is simply copied from the arguments to
"disclaimer", add a "-i" before "-f".
I just had to add in "-i",
From
$SENDMAIL "$@" <in.$$
to
$SENDMAIL -i "$@" <in.$$
The Postfix FILTER_README instructions have:
SENDMAIL="/usr/sbin/sendmail -G -i" # NEVER NEVER NEVER use "-t" here.
Wietse
You are correct, my mistake was using a script assembled by someone
else, and assuming they had sanity-checked it.
Nick
______________________________________________________________________________________________
This email is confidential and subject to Krescendo's Email Usage and
Information Classification Policies.