Thanks.

I tried "| cat > /tmp/foo" and the postfix config is fine.  I should have done
that first  - I just assumed I had misunderstood something about postfix and
botched the postfix config.

Our /usr/local/bin/forwardstdin must have some courier environment dependency
in it since it's been around for a while.  Referred back to the developer....


-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org]
On Behalf Of Wietse Venema
Sent: Wednesday, November 18, 2015 19:33
To: Postfix users
Subject: Re: mail delivery to alias with command processing

Chris Boylan:
> I'm trying receive emails to acknowledge-<stuff>@CUSTOMERWEBSITE.com by way
of
> a virtual(8) domain and then get local(8) delivery using an aliases(5)
config
> with its | command processing.
> 
> Issue is that the loader program (/usr/local/bin/forwardstdin below) we are
> using is reporting zero bytes read on standard input.  Wondering what I've
got
> misconfigured.

Is forwardstdin a home-grown program?  Then I suspect that that is
the problem.  

You can run the program by hand, like this:

    $ /usr/local/bin/forwardstdin admin.CUSTOMERWEBSITE.com 80 \
        /servlet/CUSTOMERWEBSITE.emailstatus < inputfile

Run this as an unprivileged user, not as root.

inputfile contains an email message in RFC5322 format:

    From: u...@example.com
    To: u...@example.com
    Subject: whatever

    blah blah blah.

Until manual tests produce satisfactory results, there is no point
to integrate the program with Postfix.

        Wietse

Reply via email to