|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: What happens after postfix pipes a message to a unix command?
From: Wietse Venema (wietse
porcupine.org)
Date: Fri Dec 01 2006 - 19:51:05 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jim John:
> Hi. We've implemented an autoreply and pipe the email
> to it, but what happens is that we still see a sender
> message using postqueue command. And we notice that
> looking at the system processes, the autoreply is
> being executed as some child process of postfix. So we
> are unclear as to what is happening in postfix?
> Shouldn't postfix execute the child process, but then
> when the process completes, postfix should not have
> any link to the child process? And shouldn't the
> message in the postfix queue relating to that
> autoreply be gone from the queue after piping the
> message to the autoreply was sucessful? Thank you for
> any help.
What does the Postfix logfile report for this delivery?
The pipe(8) daemon waits until the child process terminates, so
that it can receive the process exit status and determine if delivery
was successful. For mail delivery exit status codes, see
/usr/include/sysexits.h.
If the child does not terminate then the pipe(8) daemon kills it
off, by default after $command_time_limit seconds.
Wietse
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]