Zmprov (Provisioning)

Revision as of 20:46, 11 September 2006 by CAH (talk | contribs)

zmprov (Provisioning)

The zmprovtool performs all provisioning tasks in Zimbra LDAP, including creating accounts, aliases, domains, distribution lists, and calendar resources. Each operation is invoked through command-line options, each of which has a long name and a short name.

The syntax for modify can include the prefix "+" or "-" so that you can make changes to the attributes affected and do not need to reenter attributes that are not changing. Use + to add a new instance of the specified attribute name without changing any existing attributes. Use - to remove a particular instance of an attribute. The syntax is zmprov [cmd] [argument].

The following objects use this syntax:

  • ModifyAccount
  • ModifyDomain
  • ModifyCos
  • ModifyServer
  • ModifyConfig
  • ModifyDistributionList
  • ModifycalendarResource

The following example could add the attribute zimbraZimlet UserProperties with the value 'testing" to user 1 and would not chagne the value of any other instance of that attribute.

zmprov ma user1 +zimbraZimletUserProperties testing

Short Name

Long Name

Syntax, Example, and Notes

-h

>--help

display usage

-f

--file

use file as input stream

> -s

--server

{host}[:{port}] server hostname and optional port

-l

--ldap

provision via LDAP instead of SOAP

-a

--account {name}

account name to auth as

-p

--password {pass}

password for account

-P

--passfile {file}

read password from file

-z

--zadmin

use zimbra admin name/password from localconfig for admin/password

-v

--verbose

verbose mode (dumps full exception stack trace)

-d/

--debug

debug mode (dumps SOAP messages)

The commands in the following table are divided into the following tasks types - Account, Calendar Resources, Config, COS, Distribution List, Documents, Domain, Server, and Miscellaneous.

Examples

  • 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 zimbraCOS cosIDnumberstring
  • Create one account when the password is not authenticated internally.
zmprov ca name@domain.com ‘’

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

  • Use a batch process to create accounts, see Managing the Zimbra Collaboration Suite chapter for the procedure.
  • Add an alias to an account.
zmprov aaa accountname@domain.com aliasname@domain.com
  • 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 zimbraDefaultDomain 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 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
${SENDER_ADDRESS}
${RECIPIENT_ADDRESS}
${RECIPIENT_DOMAIN}
${NOTIFICATION_ADDRESSS}
${SUBJECT}
${NEWLINE}

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