OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: After queue filter in 2.3-20060325

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Mon Apr 03 2006 - 09:19:24 CDT


On Mon, Apr 03, 2006 at 03:47:30PM +0200, Marcel de Reuver wrote:

> I did an update from Postfix 2.2.x to 2.3-20060325. I use after queue
> filtering to get a text or html disclaimer added to every outgoing email.
> The filter configuration must be changed to get mail out without errors. The
> script 'disclaimer.sh' is unchanged.
>
> In master.cf the configuration was:
> 192.168.10.5:smtp inet n - n - - smtpd
> -o content_filter=dfilt:dummy

> dfilt unix - n n - 10 pipe
> flags=Rq user=filter argv=/usr/local/etc/postfix/disclaimer.sh -f
> ${sender} -- ${recipient}
>
> It must be changed in:
> dfilt unix - n n - 10 pipe
> flags=Rq user=filter argv=/usr/local/etc/postfix/disclaimer.sh -f
> ${sender} ${recipient}
>
> The original -- made a extra email send out to --
> This extra email ended in error, undeliverable.
>
> Without the "--" everything works fine now, but the docs doesn't say
> anything about this change.

There is no change. The "argv" array is passed to disclaimer.sh. Any
mishandling of the arguments is to be found there.

How are you invoking "sendmail" to re-inject the mail in

Have the script log its arguments and the sendmail command line. Report
these.

    postlog -t postfix/disclaimer.sh -- my commandline: $0 "$"
    postlog -t postfix/disclaimer.sh -- sendmail commandline: ...cut/paste...
disclaimer.sh? Which sendmail are you invoking?

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.