Question : Sendmail Alias Problem

Hi,

Im currently having an issue, I have sendmail setup and i can receive emails okay to a test mailbox that i can see in webmin. But one alias has to be piped to a php file and I have the following in /etc/aliases

bounce:         |"/var/www/html/vshooter/site/tscripts/bouncetrack.php"

But i get the error attached below.

Can anyone help?

Thanks

Billly
Code Snippet:
1:
2:
3:
4:
5:
Sep 29 11:28:03 IS-09115 sendmail[1523]: n8TAS23M001523: from=, size=39303, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=Daemon0, relay=s15330025.onlinehome-server.info [87.106.130.111]
Sep 29 11:28:03 IS-09115 smrsh: uid 8: attempt to use "bouncetrack.php" (stat failed)
Sep 29 11:28:03 IS-09115 sendmail[1524]: n8TAS23M001523: to=|"/var/www/html/vshooter/site/tscripts/bouncetrack.php", ctladdr= (8/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=69504, dsn=5.0.0, stat=Service unavailable
Sep 29 11:28:03 IS-09115 sendmail[1524]: n8TAS23M001523: n8TAS33M001524: DSN: Service unavailable
Sep 29 11:28:04 IS-09115 sendmail[1524]: n8TAS33M001524: to=, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=70528, relay=s15330025.onlinehome-server.info. [87.106.130.111], dsn=2.0.0, stat=Sent ( <200909291028.n8TAS33M001524@IS-09115> Queued mail for delivery)

Answer : Sendmail Alias Problem


Is there a '!/usr/bin/php" (or similar) entry as first line of the script?

If not, you must call the script via "php /var/www/html/vshooter/site/tscripts/bouncetrack.php", in the aliases config as well as at the commandline.

Are the permissions correct (executable)? Ownership?

 

Random Solutions  
 
programming4us programming4us