Search Our Database

How to create a new email account in Zimbra using command-line interface (CLI)

Last updated on |
by

Introduction

Creating new email accounts in Zimbra through SSH requires using the command-line interface (CLI). This process is useful for users who prefer or need to automate account creation or work without the Zimbra web interface. Below is a step-by-step guide on how to create new email accounts in Zimbra using command-line interface.

 

Prerequisites

  • Root access to the server
  • SSH access to the server running Zimbra
  • The necessary domain name for creating the email account

 

Step-by-Step Guide

1. Log in to your Zimbra server as the root user using the following command:

ssh root@your_remote_server_ip

 

2. After logging in as root, switch to the Zimbra user by running the following command:

su - zimbra

 

3. Use the zmprov command to create a new email account. The basic syntax is as follows:

zmprov ca email@yourdomain.com password

Replace email@yourdomain.com with the email address you want to create, and replace password with the desired password for the account.

Example:

zmprov ca john.doe@yourdomain.com StrongPassword123!

 

In case you want to change the password for existing email account, run the following command:

zmprov sp email@yourdomain.com new_password

Replace email@yourdomain.com with the email address you want to change the password, and replace new_password with the new password for the account.

 

After completing the steps above, you can verify to see if the new email account will appear in the list of accounts under the Accounts tab in the SmarterMail webmail. You can click on the account to verify its settings or edit further if needed.

 

Conclusion

By following these steps, you can easily create email accounts in Zimbra using the command-line interface. For security purposes, always ensure that strong passwords are used when creating new accounts. For additional assistance or if you encounter any issues, please contact our support team at support@ipserverone.com.

 

 

Article posted on 19 April 2020 by Louis.