2

I setup a php piping for "incoming@mydomain.com" in my postfix configuration.

Now, what I need is to pass the "rcpt to" email address to the PHP script as a command line parameter. Is it possible?

incoming: "|/path/to/piping.php"

Thanks.

0

No, this is not possible. At least not in the way you do it.

You need a transport configured in main.cf to do it. This is a (the) solution: How to configure postfix to pipe all incoming email to a script?

To get the official documentation about that topic, follow the configuration with http://www.postfix.org/master.5.html and http://www.postfix.org/transport.5.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.