This is a dump of the first two lines of /api/pipe.php
<?php
#!/usr/bin/php -q
I'm no expert but shouldn't the lines be interchanged for the script to be processed by php. I'm sure the shell only reads the first line to establish how to execute the script.
I can't get this script to work properly! Is there any debugging output when it executes?
my /var/log/maillog says...
Jan 2 23 www postfix/local: 7791E1C08B36: to=, relay=local, delay=0.06, delays=0.02/0.01/0/0.03, dsn=5.3.5, status=
bounced (local configuration error)
r
PS Don't shoot me if I'm wrong