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.

how to open 8000 email account

Discussion in 'E-mail Discussions' started by SubZero, Dec 21, 2005.

  1. SubZero

    SubZero Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Balmumcu, Istanbul, TR
    how to open 8000 email accounts

    Hi,

    Recently I had given in an xls file of 8000 usernames, passwords and quotas (in Mb) for each. How do I open 8000 virtual email users in cpanel?
     
    #1 SubZero, Dec 21, 2005
    Last edited: Dec 21, 2005
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    As has been mentioned in such posts before - you'd need to write a script around /scripts/addpop
     
  3. SubZero

    SubZero Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Balmumcu, Istanbul, TR
    I know some perl but stuck at here:
    Code:
    my $owner = cPScript::AcctUtils::getdomainowner($domain);
    
    [...]
    
    $ENV{'REMOTE_USER'} = $owner;
    system("/usr/local/cpanel/cpanel-email","addpop",$user,$pass,0,$domain);
    I see that the command I need to run is:
    Code:
    /usr/local/cpanel/cpanel-email addpop mailuser mailpassword 10 maildomain.dom
    But it seems to have a problem. It sets a variable before running:
    Code:
    $ENV{'REMOTE_USER'}
    How do I set this in bash? I know that for the my maildomain.com this is static and is maildoma (the username of maildomain.dom (owner of ~maildoma)).

    Or may I give this user to the cpanel-email app via commandline switch? /me plans to add those 8k accounts via a bash script.. :)
     
    #3 SubZero, Dec 21, 2005
    Last edited: Dec 21, 2005
  4. SubZero

    SubZero Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Balmumcu, Istanbul, TR
    nevermind. solved by modifying addpop script.. :)
     
Loading...

Share This Page