Create an alias email from postfixadmin and set go to to be  pipe_handler@hostname

eg. set support@xyz.com to go to supporthandler@hostname.com

Edit aliases file :

vi /etc/postfix/aliases

Add the following line at the end:

supporthandler: “| php -q /path/to/handler.php”

save the file

and run

newaliases

Done…