Add Administrator account: Zmprov CA testadmin@test.com Password Zimbraisadminaccount TRUE
Upgrade existing account as Administrator: Zmprov ma test@test.com zimbraisadminaccount TRUE
Add ordinary Account: Zmprov CA test@test.com Password
Delete ordinary account: Zmprov da test@test.com
Reset Password: Zmprov sp test@test.com Pawwsord
Query mysql password: zmlocalconfig-s |grep pass |grep MySQL
Query mailbox usage: Zmprov gqu mail.test.com
Query Specify Mailbox details: Zmprov gmi test@test.com
To view the maximum system message size: postconf message_size_limit
Modify maximum Attachment size: Zmprov modifyconfig zimbramtamaxmessagesize 2048000
Postfix Reload
Zimbra common operations with command-line methods
Change HTTP login mode to HTT\PHTTPS login mode
$ Zmprov ms Zimbramailsslport (change HTTPS to non 443 port)
$ zmtlsctl Http\https
$ tomcat Restart
Resolution of SMTP Authentication errors
Zmprov ms ' Zmhostname ' zimbramtaauthhost mail.example.com
Troubleshooting Log Server Errors
$ Zmprov GetConfig Zimbraloghostname
$ Zmprov modifyconfig zimbraloghostname mail.domain.com
View System Parameters
System parameters can be viewed through the zmlocalconfig-s command
$ postconf//View all configurations for Postfix
$ zmlocalconfig//view configuration information for various components
$ zmlocalconfig-s|grep zimbra_ldap_userdn//view DN of Zimbra account in LDAP
$ zmlocalconfig-s|grep zimbra_ldap_userdn//view password for Zimbra account in LDAP
$ zmlocalconfig-s|grep zimbra_mysql//view MySQL configuration information
To change the system maximum message size:
View the maximum system message size, showing that the current system maximum message is 10M.
$ postconf Message_size_limit
Message_size_limit = 10240000
Change the system maximum message size to 20M.
$ Zmprov modifyconfig zimbramtamaxmessagesize 2048000
$ postfix Reload
To change the maximum system attachment size:
Change the maximum number of attachments to 5M for all accounts in the system
$ Zmprov modifyconfig zimbrafileuploadmaxsize 5000000
Change the maximum mail2.domain.com account in the system to 20M
$ Zmprov modifyserver mail2.domain.com zimbrafileuploadmaxsize 20000000
Change Administrator Password:
$ Zmprov gaaa//List all administrators
$ Zmprov SP//Change admin password
Example: Zmprov SP admin q1w2e3r4 or Zmprov sp admin@wish.com Q12E3R4