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.

Exim forwarding to a php script

Discussion in 'General Discussion' started by scoy, Sep 17, 2002.

  1. scoy

    scoy Member

    Joined:
    Mar 10, 2002
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    I have a virtually hosted account ( user ) on one of my servers. This account has about 10 emails, one of wich is script@domain.com. I'm trying to make exim forward any email sent to script@domain.com to a php script ( /home/usr/script.php ).
    After looking up some info, i found this had to be done using the /etc/aliases file. so in this file i have put &script: |/home/user/script.php&.
    When i send an email to script@domain.com, exim doesn't report any errors, but it just sends the email to the default user@domain.com account.
    Has anyone ever done this before on a machine running WHM? I would appreciate any feedback on this topic.
    Thanks.
     
  2. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    You should put this in the valias file for that domain.

    script@domain.com: |/home/user/script.php
     
  3. scoy

    scoy Member

    Joined:
    Mar 10, 2002
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    should I put that in the /etc/valias, or /etc/aliases?
     
  4. scoy

    scoy Member

    Joined:
    Mar 10, 2002
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    silly me, please ignore the previous post. thanks for the help!
     
Loading...

Share This Page