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.

Creating e-mail accounts through command line

Discussion in 'E-mail Discussions' started by romerojnr, May 26, 2011.

  1. romerojnr

    romerojnr Registered

    Joined:
    May 26, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    How can I create e-mails accounts through the command line, without using the cPanel? Are there any script which I could use?

    -Thanks
    Romero Júnior
     
    #1 romerojnr, May 26, 2011
    Last edited by a moderator: May 26, 2011
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Romero,

    You can use the following command in root SSH to create an email account:

    Code:
    /scripts/addpop user@domain.com password quota#
    Above please replace user@domain.com with the email account username and domain, password with the password for the email account being created, and quota# with the number for the quota in megabytes. For example, if you did the following:

    Code:
    /scripts/addpop admin@cptest.com p@nd@s 100
    This would create an email admin@cptest.com with password p@nd@s and quota 100MB.

    Thanks!
     
  3. romerojnr

    romerojnr Registered

    Joined:
    May 26, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thank you! :)
     
Loading...

Share This Page