Results 1 to 2 of 2

Thread: Mail-Account via SSH

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    Default Mail-Account via SSH

    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. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,462
    cPanel/WHM Access Level

    Root Administrator

    Default 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.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation - Find cPanel hosting


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

Similar Threads

  1. Mail-Account via SSH
    By keygen23 in forum E-mail Discussions
    Replies: 1
    Last Post: 06-21-2010, 08:56 AM
  2. Suspending account through ssh?
    By Chriz1977 in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 11-30-2008, 11:47 AM
  3. Passwrd of an account(ssh)
    By 4402734 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 09-27-2005, 12:20 PM
  4. Demo Account Still Has SSH
    By Solokron in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-04-2004, 03:55 PM
  5. Mail and SSH stopped working
    By psx-dude in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 10-13-2001, 12:59 AM