#1 (permalink)  
Old 07-18-2008, 03:49 PM
Registered User
 
Join Date: Jun 2007
Posts: 5
classywear is on a distinguished road
Add email address using linux command line

I'm trying to learn how to add an email address to an account at the linux operating system command line. I have search through the cPanel and red hat user guides without success. Can anyone point me in the right direction.

Thanks,
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-21-2008, 08:24 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,346
cpanelkenneth is on a distinguished road
Quote:
Originally Posted by classywear View Post
I'm trying to learn how to add an email address to an account at the linux operating system command line. I have search through the cPanel and red hat user guides without success. Can anyone point me in the right direction.

Thanks,
John
/scripts/addpop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-21-2008, 10:35 AM
Registered User
 
Join Date: Jun 2007
Posts: 5
classywear is on a distinguished road
Smile Thanks!

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-08-2009, 07:43 PM
Registered User
 
Join Date: May 2009
Posts: 3
cteinternet is on a distinguished road
Add email address using linux command line

Hello classywear!

Now that you know how to create a new email account via command line do you know how to set up an email quota via command line?

I really need to do this.

Thanks in advance.

Cheers.

http://forums.cpanel.net/f4/command-...ss-119665.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-09-2009, 10:57 AM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 8,117
cPanelDavidG is on a distinguished road
Quote:
Originally Posted by cteinternet View Post
Hello classywear!

Now that you know how to create a new email account via command line do you know how to set up an email quota via command line?

I really need to do this.

Thanks in advance.

Cheers.

http://forums.cpanel.net/f4/command-...ss-119665.html
We are currently working on adding a parameter to the /scripts/addpop script to allow you to set a quota. I have no ETA on when this functionality will become available in the production-worthy builds of cPanel/WHM, but it is currently available in our EDGE build (internal case 28422). Use of EDGE on production web servers is discouraged since EDGE only receives minimal quality testing.
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net
-- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-26-2009, 10:49 PM
Registered User
 
Join Date: Jun 2009
Posts: 14
gearheadhost is on a distinguished road
non-root add email account?

Is there a way to get a non-root account to be able to setup an email account via ssh or shell_exec via a php script?

Basically I want to be able to add a form in a password protected directory that will allow me to fill out a form to create the email account. Mainly it is for a business setup where multiple managers can setup email accounts for their divisions without cPanel access.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-27-2009, 10:37 AM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 8,117
cPanelDavidG is on a distinguished road
Quote:
Originally Posted by gearheadhost View Post
Is there a way to get a non-root account to be able to setup an email account via ssh or shell_exec via a php script?

Basically I want to be able to add a form in a password protected directory that will allow me to fill out a form to create the email account. Mainly it is for a business setup where multiple managers can setup email accounts for their divisions without cPanel access.
You could just use our APIs for creating an email account. Information about our XML API including how to call the cPanel API1 and API2 APIs from the XML API is available at: XML and JSON APIs

The actual function call for creating an email account is an API1 function:

Code:
<cpanel Email="addpop($FORM{'email'},$FORM{'password'},$FORM{'quota'},$FORM{'domain'})">
So, to call this from the XML API, you would use the cPanel function. Here's the relevant information for calling the API:

API version: 1
Module: Email
Function: addpop
First arg: the part of the email address before @
Second arg: password for the email account
Third arg: a number, specifying the quota for this mail account in MB
Forth arg: the part of the email address after @

Matt has made a nifty PHP 5 class that makes calling our APIs much easier if you're using PHP 5. You can find his class at: XMLAPI php class
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net
-- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:14 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc