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!


Discussion in 'E-mail Discussion' started by mattshosting, Oct 16, 2007.

  1. mattshosting

    mattshosting Registered

    Oct 15, 2007
    Likes Received:
    Trophy Points:
    Hey guys, this is my first post ever on cpanel , so a big hello to you all :D

    anyway down to business , wondering how i do mail piping, i want to pipe it in to a mysql based support ticket area ive made for a system im making

    any help on this would be appreciated ,

  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Welcome to the forums :)

    On the cPanel side of things, when you add a forwarder using the X3 theme in cPanel 11, simply select Pipe to a Program: and enter the path to your script within your home directory.

    When you do piping, you are piping into a shell script. So like any shell script, ensure it has the appropriate hashbangs at the top and proper permissions (755 is usually a good place to start).

    As for the coding side of things, the data will be coming in via standard input (after all, it is a pipe). Refer to the documentation for whatever shell scripting language you are using (Perl, PHP, Bash etc.) on how to handle that input.

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