6/04/2016

Steps to change the Zimbra server's hostname using zmsetservername

เปลี่ยน Server Hostname ให้กับ Zimbra

[code=text]su - zimbra[/code]
[code=text]/opt/zimbra/libexec/zmsetservername -n <servername>[/code]

Example :
[code=text]/opt/zimbra/libexec/zmsetservername -n zimbratest.scivalve.com[/code]

รอจนกว่าจะเสร็จ รายละเอียดที่เปลี่ยน
[code=text]
Getting local config zimbra_home=/opt/zimbra
Getting local config zimbra_server_hostname=zimbratest.sci.com
Warning: Hostname zimbratest.scivalve.com is not resolvable via DNS
Getting local config zimbra_ldap_userdn=uid=zimbra,cn=admins,cn=zimbra
Getting local config zimbra_ldap_password=uEoRBV9fVx
Getting local config ldap_is_master=true
Getting local config ldap_url=ldap://zimbratest.sci.com:389
Getting local config ldap_master_url=ldap://zimbratest.sci.com:389
Getting local config ldap_starttls_supported=1
Starting ldap...already running.
Renaming zimbratest.sci.com to zimbratest.scivalve.com
Shutting down zimbra...done.
Setting local config ldap_master_url=ldap://zimbratest.scivalve.com:389
Setting local config ldap_url=ldap://zimbratest.scivalve.com:389
Getting local config ldap_host=zimbratest.sci.com
Setting local config ldap_host=zimbratest.scivalve.com
Getting local config av_notify_user=admin@sci.com
Getting local config av_notify_domain=sci.com
Getting local config snmp_trap_host=zimbratest.sci.com
Setting local config snmp_trap_host=zimbratest.scivalve.com
Getting local config smtp_source=admin@sci.com
Getting local config smtp_destination=admin@sci.com
Setting local config zimbra_server_hostname=zimbratest.scivalve.com
Starting ldap...done.

Unable to contact ldap://zimbratest.sci.com:389: Invalid argument
Unable to contact ldap://zimbratest.sci.com:389: Invalid argument
Unable to contact ldap://zimbratest.sci.com:389: Invalid argument
Services:
Getting local config ldap_port=389
Reinitializing the mta config...done.
Reinitializing the snmp config...done.
zimbra@ZimbraTest:~$ [/code]

http://wiki.zimbra.com/index.php?title=Zmsetservername

[b][color=#FF0000]*** หมายเหตุ เปลี่ยนแล้วมีปัญหา เข้าไม่ได้ Start mail box ไม่สำเร็จ ***[/color][/b]

[code=text]root@ZimbraTest:~# /etc/init.d/zimbra start
Host zimbratest.scivalve.com
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
    Starting zmconfigd...Done.
    Starting logger...Failed.
Starting logswatch...ERROR: account.NO_SUCH_SERVER (no such server: zimbratest.scivalve.com)
zimbra logger service is not enabled!  failed.


    Starting mailbox...Failed.


    Starting antispam...Done.
    Starting antivirus...Done.
    Starting opendkim...Failed.
opendkim: /opt/zimbra/conf/opendkim.conf: ldap://zimbratest.sci.com:389/?DKIMSelector?sub?(DKIMIdentity=$d): dkimf_db_open(): Can't contact LDAP server
Failed to start opendkim: 0


    Starting snmp...Done.
    Starting spell...Done.
    Starting mta...Done.
    Starting stats...Done.
root@ZimbraTest:~#[/code]

No comments:

Post a Comment