Create email account in cPanel via terminal
You can create email account in cPanel via terminal using the following command. This uses cPanel API 2 Functions to create the email account.
cpapi2 --user=username Email addpop domain=example.com email=user password=pass quota=500
Don’t forget to replace the following:
- username: The cPanel account Username.
- example.com: Your domain name.
- user: The email account which you would like to create.
- pass: Desired password for the newly created email account.
- 500: Quota (In MB) for the newly created email account.
Example:
cpapi2 --user=grepitout Email addpop domain=grepitout.com email=user@grepitout.com password=123password quota=1024
That’s it!
If you like this post and wish to receive more articles from us, please like our FB page: Button
Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.
For more details on our services, please drop us an E-mail at info@grepitout.com
HEy,
Is there any way to create FTP account via terminal?. Thanks in advance
Hi,
Yes, please see the following link.
Create FTP account in cPanel via terminal
ok..Thank you
[…] Create email account in cPanel via terminal […]
[…] Create email account in cPanel via terminal […]
Hi, there’s a way to modify the email password via terminal?
Use the following command to change the password of an email account:
cpapi2 –user=username Email passwdpop domain=yourdomain.com email=user password=123NewPassword