I am currently running Postfix as my MTA and redirects for bounces are being handled by a php script in the "aliases" file ::
bounce: "|php -q script.php"
The problem is that I do not know how to grab the message once in PHP. In Java I can grab it using a BufferedInputStream and grabbing from stdin (0 or 1) but can not figure out how to do it in PHP. I have tried ::
$fp = fopen("php://stdin",'r');
but am ending up with a blank string. Does anyone have ANY idea what I need to do. I know that this is a very specific question but I've been stuck for 3 days now and am getting anxious. Thanks in advance!!!
Adam.