Ok, I will do as you suggest.

I have one more question for today, I'll start another thread.

-tim

On 9/23/13, Viktor Dukhovni <postfix-us...@dukhovni.org> wrote:
> On Mon, Sep 23, 2013 at 05:37:27PM -0400, Tim Prepscius wrote:
>
>> I'd like to pipe the stdout to a log file.
>> Can I do this?
>>
>> javapipe  unix  -       n       n       -       -       pipe
>>   user=postfix-user
>>   flags=DRhuX
>>   argv=java -jar /home/postfix-user/PostfixMailReceiver.jar -args
>> $recipient >> /home/postfix-user/run.log
>
> No.  The Postfix pipe(8) daemon is not a POSIX shell, nor does it
> spawn a POSIX shell to execute the argv= command-line.
>
>> I can always go and change the java -- or perhaps wrap it in a bash
>> script?
>
> Yes, but it is probably a bad idea to record the command's output.
> It should silently deliver the message, or return a <sysexits.h>
> failure code and a short error message on stderr.
>
> If you want an audit trail, syslog(3) a short one-line summary of
> each audit event.
>
> --
>       Viktor.
>

Reply via email to