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!

how to open 8000 email account

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

  1. SubZero

    SubZero Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    166
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 SubZero, Dec 21, 2005
    Last edited: Dec 21, 2005
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    As has been mentioned in such posts before - you'd need to write a script around /scripts/addpop
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SubZero

    SubZero Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    166
    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.. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #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:
    166
    Location:
    Balmumcu, Istanbul, TR
    nevermind. solved by modifying addpop script.. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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