Zimbra Mail system Common command-line operation

Source: Internet
Author: User
Tags ldap ldapsearch mail mysql administrator password mysql database backup

Zimbra Open Source Messaging system command line common operations

Change HTTP login mode to HTTP\HTTPS login mode

$ Zmprov ms Zimbramailsslport (change HTTPS to non 443 port)

$ zmtlsctl Http\https

$ tomcat RESTARTSMTP Authentication Error Resolution

Zmprov ms ' zmhostname ' zimbramtaauthhost mail.example.com log Server error Resolution

$ Zmprov GetConfig Zimbraloghostname

$ Zmprov modifyconfig zimbraloghostname mail.domain.com View System parameters You can view system parameters 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 change system maximum message size: View maximum system message size, display current system maximum message 10M. $ postconf Message_size_limit message_size_limit = 10240000 Changes the system maximum message size to 20M.

$ Zmprov modifyconfig zimbramtamaxmessagesize 2048000

$ postfix Reload Change system maximum Attachment size: Allow maximum attachments to be changed to 5M for all accounts in the system

$ Zmprov modifyconfig zimbrafileuploadmaxsize 5000000 allows the maximum number of mail2.domain.com accounts in the system to be changed to 20M

$ Zmprov modifyserver mail2.domain.com zimbrafileuploadmaxsize 20000000 change Administrator Password:

$ Zmprov gaaa//List all administrators

$ Zmprov SP//change Administrator password for example: Zmprov SP admin q1w2e3r4 or Zmprov sp admin@wish.com q12e3r4 change LDAP password:

$ LDAP Status (start)

$ zmldappasswd--root newpass (Root)

$ zmldappasswd newpass (zimbra) change MySQL database password:

$ mysql.server Status (start)

$ zmmypasswd--root Newrootpass

$ zmmypasswd newpass Change logger MYSQL database password:

$ logmysql.server Status (start)

$ zmmylogpasswd--root Newrootpass (Root)

$ zmmylogpasswd newpass (Zimbra) Empty mailbox

$ zmmailbox-z-M rootking@wish.net emptyfolder/[inbox][chats][sent][drafts][junk][trash]inbox (Inbox) chats (chat) snet ( Sent Items) Drafts (draft box) junk (junk e-mail) trash (Deleted Items)

Backup Restore LDAP

1. Backup LDAP (two commands are equal)

1), Ldapsearch-h Server external address-x-d "Uid=zimbra,cn=admins,cn=zimbra"-w password objectclass=* > 201014.ldif

2), Ldapsearch-h Server external address-x-d "Uid=zimbra,cn=admins,cn=zimbra"-w password > 201014.ldif

2, restore the LDAP ldapadd-h server external address-x-c-D "Uid=zimbra,cn=admins,cn=zimbra"-W Password < 20101214.LDIF

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.