Re: sendmail smrsh symlinks not working against php scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, April 18, 2007 11:20 am, dan1 wrote:
> I am trying to forward the e-mails received to one address towards a
> php
> script, under CentOS 4 (RHEL).
> I am trying all I can but nothing does.
>
> I have edited my /etc/aliases file and added this line.
> ecard-bounce: "|/usr/bin/php /etc/smrsh/ecardbounce.php"
>
> Then, of course I do a 'newaliases'.
> In my /etc/smrsh I have placed the symbolic link defined above, which
> has
> been created this way:
> ln -s /home/my/scripts/ecardbounce.php /etc/smrsh/ecardbounce.php
>
> When using this configuration, I get the following error back by
> email:
>
>    ----- The following addresses had permanent fatal errors -----
> "|/usr/bin/php /etc/smrsh/ecardbounce.php"
>     (reason: 255)
>     (expanded from: <ecard-bounce@xxxxxxxxxxxx>)
>
>    ----- Transcript of session follows -----
> Status: 404
> Content-type: text/html
> X-Powered-By: PHP/4.3.9
>
> No input file specified.
> 554 5.3.0 unknown mailer error 255
>
>
>
> However, if I put a hardlink instead of the symlink, all works fine!
> The permissions of the symlink and the file linekd are all 777.
>
> Has anyone already had this problem before, or would anyone have an
> idea of
> the cause?

smrsh itself may disallow symlinks.  Wouldn't surprise me.

Why not just use #!/usr/bin/php -q at the top of your PHP script?

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux