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.

MailPiping

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

  1. mattshosting

    mattshosting Registered

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

    Yours
    Matt
     
  2. 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
    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