Closed Thread
Results 1 to 5 of 5

Thread: Piping Fails

  1. #1
    Sneeza is offline x10Hosting Member Sneeza is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    3

    Piping Fails

    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.

  2. #2
    calistoy's Avatar
    calistoy is offline Free Support Volunteer calistoy is just really nice
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,598

    Re: Piping Fails

    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 by calistoy; 01-22-2011 at 05:38 PM.

  3. #3
    Sneeza is offline x10Hosting Member Sneeza is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    3

    Re: Piping Fails

    Quote Originally Posted by calistoy View Post
    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. mail() blacklisted for email forward to pipe (but works in browser)

    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 by Sneeza; 01-23-2011 at 06:32 AM.

  4. #4
    calistoy's Avatar
    calistoy is offline Free Support Volunteer calistoy is just really nice
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,598

    Re: Piping Fails

    Can't do setuid (cannot exec sperl)
    X-Powered-By: PHP/5.2.13
    Content-type: text/html
    Is that perl? If so, perl is not supported in the free servers. Please look at this plan comparison to see what is and what isn't supported with free hosting http://x10hosting.com/free-hosting-comparison

  5. #5
    Sneeza is offline x10Hosting Member Sneeza is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    3

    Re: Piping Fails

    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.

Closed Thread

Similar Threads

  1. problem piping email to php code
    By zyxstand in forum Programming Help
    Replies: 2
    Last Post: 09-17-2010, 09:39 PM
  2. Piping on Linux Command line
    By simonthecat in forum Computers & Technology
    Replies: 3
    Last Post: 05-06-2010, 08:36 AM
  3. FTP fails out.
    By blackhnd in forum Free Hosting
    Replies: 0
    Last Post: 04-14-2010, 07:58 AM
  4. Piping Email to PHP Script
    By hbweb500 in forum Free Hosting
    Replies: 3
    Last Post: 09-12-2007, 04:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers