Results 1 to 5 of 5
  1. #1
    matt21 is offline new member
    Join Date
    Nov 2008
    Posts
    5

    Default email forward, pipe to php script, how to setup ?

    Hi

    Trying to set up an email forward to a simple php script, keep getting the email bounced.

    Script has been put in my root, with a permissions set to 755.

    The script does very little, and has

    #!/usr/bin/php -q

    as the first line.

    Error message gives me returns.

    "pipe to |/home/matthewt/SCRIPT.php"

    I notice that /usr/bin/php or usr/local/bin/php is missing wondered if thats the problem, but how to add it as the cPanelX gui suggests it isn't required ?

    Thanks for any help.

  2. #2
    matt21 is offline new member
    Join Date
    Nov 2008
    Posts
    5

    Default bit more...

    Found that the php script is executing (once I introduced an error - I got the scripting error returned). So its all setup, great.

    Don't understand why I keep getting "Mail delivery failed: returning message to sender" when the script runs ok, seems ithe pipe is reporting it as an mail delivery error ?

  3. #3
    NickJ is offline Chief Technical Officer(eUKhost.com)
    Join Date
    Jun 2007
    Posts
    313

    Default

    Hello,

    I would request you to open a ticket with our support department. We will get it fixed for you.
    You can simply email us support@eukhost.com

    Regards,
    Nick J.

  4. #4
    matt21 is offline new member
    Join Date
    Nov 2008
    Posts
    5

    Default

    Cheers, just managed to sort it myself, after lots of head scatching.

    Seems the its very sensitive to the formatting of the script and having a return in there. Followed the instructions on evolt.org.

  5. #5
    5ublim3 is offline new member
    Join Date
    Jan 2010
    Posts
    1

    Default Problem solved

    My solution to this problem:
    There should be no extraneous line breaks or spaces between "#!/usr/bin/php -q" and "<?php"

    That is,
    First line in the script: #!/usr/bin/php -q
    Second line, without spaces, open the PHP-tag: <?php

    Voila

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •