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.

Adding forwarder via script

Discussion in 'E-mail Discussions' started by shiznatix, Jun 2, 2009.

  1. shiznatix

    shiznatix Registered

    Joined:
    Oct 22, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I am trying to create email addresses via the command line and all is going well except for creating a forwarder. I have found this command to create the address:
    but what would the command be to add a forwarder? I want to pipe all email to these addresses to a php script and I need to do it via a command-line command.
     
  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
    You can have your PHP script call our APIs to create forwarders, as described at:

    http://forums.cpanel.net/f42/php-script-generating-forwarders-programmatically-115569.html
     
Loading...

Share This Page