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!

Adding forwarder via script

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

  1. shiznatix

    shiznatix Registered

    Joined:
    Oct 22, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    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,216
    Likes Received:
    10
    Trophy Points:
    313
    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

  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