On Fri, Jun 18, 2010 at 05:01:14AM -0500, Adam wrote:

> Good Morning,
> 
> Is there a way to hide the syserr as well as the path returned by a
> pipe transport?  For instance, I have virtual accounts and they are
> handled by a custom transport.  When a message is sent to a
> non-existent user, the mailer-daemon response to the sender is:
> 
> <b...@example.com>: Command died with status 1:
>    "/usr/lib/xmail/postfix/vmtransport". Command output: Unknown user.
>  The user "bob" does not exist at "example.com".

DO NOT exit with status 1. Children of pipe(8) MUST exit with
one of the status codes in <sysexits.h>

> Is it possible to only have it send back the command output and not
> the information before it?  So instead it would read:
> 
> <b...@example.com>:  Unknown user.  The user "bob" does not exist at
> "example.com".

Exit with a correct status code.

-- 
        Viktor.

Reply via email to