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.

Piping email to script question.

Discussion in 'E-mail Discussions' started by SosyMe, Jun 7, 2010.

  1. SosyMe

    SosyMe Registered

    Joined:
    Jun 7, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I do not want to forward email, but rather just add it to a queue and also receive it at the email address. I understand I probably have to use forwards.

    Should I add two forwards:

    email@domain : | php -q -n /home/USERNAME/public_html/SCRIPT.php
    email@domain : email@domain

    Or is there a better way to do it?

    Thanks.
     
    #1 SosyMe, Jun 7, 2010
    Last edited: Jun 7, 2010
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    You should create an email address AND a forwarder, so the email is delivered to the inbox and piped to the program.
     
Loading...

Share This Page