Piping Fails

Status
Not open for further replies.

Sneeza

New Member
Messages
3
Reaction score
0
Points
0
I have setup a pipe to a PHP script in cPanel. I forwarded mail@askmatt.x10.mx to /includes/mail.callback.php within cPanel, which automatically made that |/home/sneeza/includes/mail.callback.php. I set the permissions of the script to 0755. I've triple checked the script for no spaces and have the hashbang at the start of the script. When I try and email the script, I get a mail delivery error stating:

" pipe to |/home/sneeza/includes/mail.callback.php
generated by mail@askmatt.x10.mx
local delivery failed"

Apparently, the local delivery failed means that the script isn't even executed on the server, and that the path that is being used (which is being set on your side by cPanel) isn't working properly. I found this: http://wiki.whmcs.com/Email_Piping#Local_Delivery_Failed_Error_Message which may help.

Thanks.
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
I've done some research and I see that your PHP script is located in: public_html/mail.callback.php

not: /includes/mail.callback.php

Is there anything that I'm missing or don't understand about this problem? The info that I found this in is http://wiki.whmcs.com/Email_Piping#Forwarder_Method
 
Last edited:

Sneeza

New Member
Messages
3
Reaction score
0
Points
0
I've done some research and I see that your PHP script is located in: public_html/mail.callback.php

not: /includes/mail.callback.php

Is there anything that I'm missing or don't understand about this problem? The info that I found this in is http://wiki.whmcs.com/Email_Piping#Forwarder_Method

Actually, the script is in /includes/mail.callback.php - I only put a copy in the public_html folder to see if it wasn't working because I had it under the website's root folder. It didn't work either way, but I forgot to delete the script from the public_html folder. I've now set it to use /public_html/test/mail.callback.php.

EDIT: I found this, but it doesn't work either. http://x10hosting.com/forums/level-...orward-pipe-but-works-browser.html#post459413

I did find that changing the hashbang (removing the -q) at the end results in:

pipe to |/home/sneeza/public_html/test/mail.callback.php
generated by mail@askmatt.x10.mx

The following text was generated during the delivery attempt:

------ pipe to |/home/sneeza/public_html/test/mail.callback.php
generated by mail@askmatt.x10.mx ------

Can't do setuid (cannot exec sperl)
X-Powered-By: PHP/5.2.13
Content-type: text/html
 
Last edited:

Sneeza

New Member
Messages
3
Reaction score
0
Points
0
Well it's meant to be running PHP backend but for some reason it's deciding to try and run peel. I think that's the problem, but I can't be sure.

I've run out of ideas now. I've changed a few things, so the script is in public_html/includes/pipe.callback.php

---------- Post added at 04:41 PM ---------- Previous post was at 08:01 AM ----------

Hi,

I finally solved this by changing the hashbang to: "#!/usr/local/bin/php" (without the -q).

First I tried "#!/usr/local/bin/php -q", which gave an error "Could not open input file '-q'", so after removing it everything works fine.

Thanks.
 
Status
Not open for further replies.
Top