Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Email Forward and Pipe

Discussion in 'E-mail Discussion' started by solarisdev, Apr 7, 2011.

  1. solarisdev

    solarisdev Registered

    Joined:
    Apr 7, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hi everyone,
    I'm trying to set up email forward with pipe to a program option. When I send message on created email I get
    Mail delivery failed: returning message to sender. What confuses me is that in message i get:
    This message was created automatically by mail delivery software.

    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:

    pipe to |/home/lifestyl/public_html/forward.php
    generated by zlatko@lifestyl.com
    local delivery failed

    The following text was generated during the delivery attempt:

    ------ pipe to |/home/lifestyl/public_html/forward.php
    generated by zlatko@lifestyl.com ------

    Status: 404 Not Found
    X-Powered-By: PHP/5.2.14
    Content-type: text/html

    No input file specified.

    ------ This is a copy of the message, including all the headers. ------

    code on PHP file loos like this:
    PHP:
    #!/usr/bin/php –q
    <?php
        mail
    ("zlaajaa@gmail.com""Test""test");
    ?>
    and based on part of that message to me it looks like path is ok... why is this not working?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Can you try to change this to /usr/local/bin/php instead for the path to see the results? The php.ini file is read from /usr/local/bin/php.ini instead and we actually have two copies of php binary which differ.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice