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!

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:
    51
    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

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    21
    Trophy Points:
    143
    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.
     
    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