I setup a php piping for "[email protected]" 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.
I setup a php piping for "[email protected]" 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.
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