> > -----Original Message----- > > From: Dave Goodchild [mailto:buddhamagnet@xxxxxxxxx] > > Sent: Thursday, March 02, 2006 1:07 PM > > To: php-general@xxxxxxxxxxxxx > > Subject: Sendmail issue > > > > > > Hi all, I am trying to trigger a php script by sending an > > email to it. The > > script commences with > > > > #!/usr/local/bin/php > > > > to run as a general cgi, and then proceeds to access the > > email by opening > > php://stdin. I get all that. > > > > However, I am editing the /etc/aliases file to create an > > email alias for the > > script by inserting the following line: > > > > agecon "/|/home/agecon/dm/ac_incomingphp" > > > > ...as per the usual process, the user where my files are is > > called agecon, > > so I expect that when I send an email to agecon@***.co.uk it > > will be passed > > the the script. I ran sendmail -bi to update the alias after > > editing but > > when I send the email nothing happens. Am I missing something. > > > > I understand that this is a php/Linux question rather than a pure php > > inquiry but wonder if anyone has tried to do the same thing. > > > > Thanks in advance, dave goodchild (web-buddha.co.uk) Hi Dave, ensure, that your script has sufficent permissons in sight of the MTA daemon. Lets say your sendmail daemon is running under user name "sendmail". Then make shure, that /home/agecon/dm/ac_incomingphp also is owned by user sendmail an has the chmod u+rx /home/agecon/dm/ac_incomingphp execute permission set, so the #!..... in the first line of your script can get involved. Maybe this helps. Ciao. -- Echte DSL-Flatrate dauerhaft für 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php