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 piping

Discussion in 'E-mail Discussion' started by paul-t20, Nov 2, 2007.

  1. paul-t20

    paul-t20 Registered

    Joined:
    Oct 31, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    I'm using ClientExec and would like to set-up email piping for support desk.

    ClientExec docs tell me to use the following path to the piping script:
    |php -q /home/username/public_html/client/SupportPipe.php


    In CPanel, the email piping input on the 'Add Forwarder' page only lets you enter a path from the home dir. So how do I include the |php -q prefix in the path?

    Thanks for any suggestions.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    68
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Twitter:
    cPanel has a built in feature for piping and it can be a right b*tch. First off, does your support desk require php cli or php running as cgi?

    2nd - when you add a forwarder - simply copy the bit like this | HOME/USER/PUBLIC_HTML/path/to/script

    test it and speak to the developer of the script - they maybe able to set it up for you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. paul-t20

    paul-t20 Registered

    Joined:
    Oct 31, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    ClientExec docs do not specify that php needs to be running as cgi, so I assume not.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    68
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hmm - can you confirm what support desk this is your trying to setup?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Does /home/username/public_html/client/SupportPipe.php contain a hashbang at the top such as

    Code:
    #!/usr/bin/php -q
    If not, add that (adjusting for wherever the PHP interpreter may be on your system, the path I used in the example is the location on a test cPanel/WHM server I use) then change permissions of the file to 755. This will eliminate the need for the php -q and you can then proceed to set up your mail filter by going to cPanel -> Mail -> Forwarders, creating a new filter and pointing it to public_html/client/SupportPipe.php.
     
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