Difference between revisions of "Zmprov Examples"

Line 116: Line 116:
</div><div class="Bulleted2_outer" style="margin-left: 15pt; margin-bottom: 2.0pt; margin-top: 5.0pt; vertical-align: baseline">
{| id="SummaryNotRequired_np1121846"
{| id="SummaryNotRequired_np1121846"

Revision as of 10:53, 1 September 2009


Create one account with a password that is assigned to the default COS:

zmprov ca name@domain.com password

Create one account with a password that is assigned to a specified COS. You must know the COS ID number. To find a COS ID, type gc <COSname>.:

zmprov ca name@domain.com <password> zimbraCOSid <cosIDnumberstring>

Create one account when the password is not authenticated internally:

zmprov ca name@domain.com 

Note: The empty single quote is required and indicates that there is no local password

Use a batch process to create accounts: http://wiki.zimbra.com/index.php?title=Bulk_Provisioning

see the Batch Provisioning from the CLI Utility section of the Managing the Zimbra Collaboration Suite chapter for the procedure.


Add an alias to an account:

zmprov aaa accountname@domain.com aliasname@domain.com

Canonical address</div> > zimbraMailCanonicalAddress

Distribution Lists

Create distribution list. The ID of the distribution list is returned:

zmprov cdl listname@domain.com

Add a member to a distribution list. Tip: You can add multiple members to a list from the administration console:

zmprov adlm listname@domain.com member@domain.com


Change the administrator’s password. Use this command to change any password. Enter the address of the password to be changed:

zmprov sp admin@domain.com password

Create a domain that authenticates against Zimbra OpenLDAP:

zmprov cd marketing.domain.com zimbraAuthMech zimbra

Set the default domain:

zmprov mcf zimbraDefaultDomainName domain1.com

To list all COSs and their attribute values:

zmprov gac -v

To list all COSs and their attribute values:

zmprov gaa domain.com

To list all user accounts and their configurations:

zmprov gaa -v domain.com

To disable the imapproxy service:

zmprov -- -zimbraServiceEnabled imapproxy

To enable logger on a single server:

zmprov +zimbraServiceEnabled logger

Then type zmloggerctl start, to start the logger.

Modify zimbraNewMailNotification to customize the notification email template. A default email is sent from Postmaster notifying users that they have received mail in another mailbox. To change the template, you modify the receiving mailbox account. The variables are:


You can specify which of the above variables appear in the Subject, From, or Body of the email. The following example is changing the appearance of the message in the body of the notification email that is received at name@domain.com. You can also change the template in a class of service, use zmprov mc. The command is written on one line.

zmprov ma name@domain.com zimbraNewMailNotificationBody 'Important message from ${SENDER_ADDRESS}.${NEWLINE}Subject:${SUBJECT}'
Jump to: navigation, search