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!

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:
    301
    I have a virtually hosted account ( user ) on one of my servers. This account has about 10 emails, one of wich is [email protected] I'm trying to make exim forward any email sent to [email protected] 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 [email protected], exim doesn't report any errors, but it just sends the email to the default [email protected] 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:
    318
    You should put this in the valias file for that domain.

    [email protected]: |/home/user/script.php
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. scoy

    scoy Member

    Joined:
    Mar 10, 2002
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    301
    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:
    301
    silly me, please ignore the previous post. thanks for the help!
     
Loading...

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