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 piping

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

  1. paul-t20

    paul-t20 Registered

    Joined:
    Oct 31, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    18
    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.
     
  3. paul-t20

    paul-t20 Registered

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

    sarhosting Well-Known Member

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

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    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