Victor Duchovni:
> On Tue, May 11, 2010 at 10:40:05AM -0700, Gary Smith wrote:
> 
> > My question is will this fork process cause any problems with postfix
> > itself?  I just don't know what the impact of a fork in the content_filter
> > will be.
> 
> Just make sure to close stdout and stderr, to avoid writing garbage
> into the pipe between Postfix and the filter, used to collect filter
> error messages.

Also, if the process does not close/redirect stdout and stderr,
Postfix will still wait for program output, and you won't gain any
speedup from forking off into the background.

> With this level of complexity, you really should use the advanced (SMTP)
> filter approach not pipe(8) based filters.

I agree. pipe-to-command+exit-status is a clumsy way to run a filter.

        Wietse

Reply via email to