Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    3

    Default Problem in forward pipes, "local delivery failed"

    I have cPanel 11.25.0.
    I am trying to forward an email address to a pipe.
    I tried the following inputs into the pipe field

    1. /public_html/file.php
    2. /home/user/public_html/file.php
    3. /usr/local/bin/php -q /home/user/public_html/file.php
    4. /usr/bin/php -q /home/user/public_html/file.php

    My script has #!/usr/local/bin/php -q before <?php.

    file.php has chmod 764, also tried it with 755.

    In all these cases, I am still receiving
    pipe to |/home/user/public_html/file.php
    generated by email@test.com
    local delivery failed
    What should I do?

  2. #2
    Member
    Join Date
    Aug 2003
    Posts
    45

    Default local delivery failed

    Hello Zeez
    Did you solve this problem?
    Please share
    Thank you

  3. #3
    Member
    Join Date
    Jun 2008
    Location
    Indiana, USA
    Posts
    105

    Default

    Is there anything in the error_log file in the same folder, how about the cPanel error log?
    Michael Denney
    MDDHosting LLC
    http://www.mddhosting.com/

  4. #4
    Member
    Join Date
    Aug 2003
    Posts
    45

    Default

    Thank you Mike
    I solved this issue.

    It happens that I didn't have php handler defined in the filter.
    Its working now

  5. #5
    Registered User
    Join Date
    Apr 2010
    Posts
    2

    Default

    Quote Originally Posted by Imai View Post
    Thank you Mike
    I solved this issue.

    It happens that I didn't have php handler defined in the filter.
    Its working now
    @Mike, can you explain what you did a little bit more. I'm a n00b to this.

  6. #6
    Member
    Join Date
    Aug 2003
    Posts
    45

    Default

    When adding the filter,

    1. Ensure you have the php handler defined if your script is a php file.

    This is what I have in the pipe to.
    |/usr/bin/php -q /full/path/to/myscript.php

    2. Make sure the script and the folder where it resides have permission 0755

    3. The script itself also has #!/usr/bin/php at the top before the php tag openening

    If you need further help, you can send me a private message

    Good Luck
    Imai

  7. #7
    Registered User
    Join Date
    Apr 2010
    Posts
    2

    Default

    Imai, thanks for your help.

    I was doing some trial and errors and i found out that my problem was with the file formatting. I'm working on windows xp machine and I'm using dreamwaver to edit my php and upload my pipe script using filezilla.

    The above procedure was creating some problem with the file formatting. Somewhere i read that any space between the hashbag and <?php will create problem.

    So what i did was to upload my pipe script to server without hashbag and let the server itself add it for me while setting up my email forward in cpanel. And if my script run into any error, now i use the code editor on cpanel's file manager. This was i managed to eliminate whatever makes the file incompatible for the server. my host is hostgator.

    I hope this may help someone.

    Demissew

  8. #8
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    While creating the new e-mail forwarder to use a pipe I recommend referring to the following documentation for additional clarification: Forwarders - Add a Mail Forwarder - Using the Pipe to Program Option

Similar Threads & Tags
Similar threads

  1. Replies: 6
    Last Post: 05-30-2010, 12:18 AM
  2. :fail: still generates a "Mail delivery failed..." return email
    By dev.null in forum E-mail Discussions
    Replies: 2
    Last Post: 12-20-2007, 12:27 PM
  3. "Mail delivery failed" to root
    By chibiricky in forum E-mail Discussions
    Replies: 1
    Last Post: 11-01-2007, 05:45 PM
  4. Mail receipt problem - local delivery failed
    By quortex in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-15-2005, 08:30 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube