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![]()
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![]()
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:
You can also do this by calling an API1 or API2 function (preferably API2). Our documentation for the APIs is located here:Code:# /scripts/addpop $emailaddress $password $quota
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