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.

Mail-Account via SSH

Discussion in 'cPanel Developers' started by keygen23, Jun 18, 2010.

  1. keygen23

    keygen23 Registered

    Joined:
    Jun 18, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    How can i create a mail account via ssh?

    I want make a page where my friends can create e-mail addresses like
    name@domain.com - Because i dont want to make this everytime via Cpanel :)

    i hope you know what i want.

    Greets from Germany :)
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You can use the API

    From the shell, you can use /scripts/addpop to create an e-mail address on an existing e-mail account. The arguments that should be passed to /scripts/addpop are the e-mail address, the password, and the desired quota. The syntax is the following:

    Code:
    # /scripts/addpop $emailaddress $password $quota
    You can also do this by calling an API1 or API2 function (preferably API2). Our documentation for the APIs is located here:

    Developer Resources

    The specific API2 function that you would want to call is the following:

    ApiEmail < ApiDocs/Api2 < TWiki

    Since this question is more closely related to development than to actual mail, I am moving this thread to our development area, which will get it more attention from users who are familiar with the cPanel APIs.
     
Loading...

Share This Page