The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email Forward and Pipe

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

  1. solarisdev

    solarisdev Registered

    Joined:
    Apr 7, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
Loading...

Share This Page