Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Feb 2005
    Posts
    18

    Default Adding forwarder users to a domain from a script?

    I have looked thorugh the /scripts directory, but I am unsure how much of what's in there is actually good stuff vs cruft that's left over...

    I am relatively new to cpanel/whm, although getting more familiar with it all the time, however, I
    don't watn to break my current install, so I am hesitant to go flailing around.

    Is there a way to add forwarders via a script? I have a client with about 400 forwarding addresses all set up in an excel spreadsheet, I want to add all them via script rather than 2 weeks of typing/double-checking.

    Is there a tool there I can do this with? LIke "addforwarder alias@domain.com receiver@newdomain.com"?

    Thanks in advance

  2. #2
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by mrcpu
    I have looked thorugh the /scripts directory, but I am unsure how much of what's in there is actually good stuff vs cruft that's left over...
    since it is from cpanel, i dont think it will have anything bad.

    Quote Originally Posted by mrcpu
    Is there a way to add forwarders via a script?
    you will have to script it manually. i have never come across such a script provided by cpanel.

  3. #3
    Member
    Join Date
    Feb 2005
    Posts
    18

    Default

    Well, the HTML form must call something that does it, I just haven't divined how it all works.

  4. #4
    Member ehpmahesh's Avatar
    Join Date
    Jul 2004
    Posts
    74

    Default

    I think if you put entry in the /etc/valaises/domain.com then it will work.
    But you have give entry sepetrly as per domain,
    try with one domain if it work then use for others.

  5. #5
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    It does work that way, but with proper spelling.

    Just add a forwarder to the /etc/valiases/domain.com file(s)

    They can be easily formatted properly in excell so you would just copy and paste the entry.
    One forwarder per line. If forwarding to multiple addresses, seperate them with commas.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. Adding forwarder via script
    By shiznatix in forum E-mail Discussions
    Replies: 1
    Last Post: 06-02-2009, 01:58 PM
  2. Adding Users Per Domain
    By squared in forum New User Questions
    Replies: 1
    Last Post: 07-30-2006, 02:44 PM
  3. How do I prevent users from parking/adding our main domain?
    By Stephanie_R in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-22-2005, 03:15 PM
  4. adding forwarder
    By AG-Soft in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-01-2004, 05:42 PM
  5. Script for adding email users to a domain?
    By eger in forum cPanel and WHM Discussions
    Replies: 28
    Last Post: 05-05-2004, 09:16 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube