2,187
edits
(→Procedures: Added Message Sizes) |
(→Procedures: Added "Change Hostname") |
||
Line 289: | Line 289: | ||
# If services don't start properly, force java to accept your certificate | # If services don't start properly, force java to accept your certificate | ||
#* EG <code> /opt/zimbra/java/bin/keytool -import -alias new -keystore /opt/zimbra/java/jre/lib/security/cacerts -storepass changeit -file /sslbk/zimbra/commercial/commercial.crt </code> | #* EG <code> /opt/zimbra/java/bin/keytool -import -alias new -keystore /opt/zimbra/java/jre/lib/security/cacerts -storepass changeit -file /sslbk/zimbra/commercial/commercial.crt </code> | ||
=== Change Hostname === | |||
This is based on the article found here - http://wiki.zimbra.com/wiki/ZmSetServerName. I've used this procedure for Zimbra v7 FOSS installations on Ubuntu 8 32-bit and 10 64-bit (LTS). | |||
This procedure requires downtime, and because zimbra services need to be up to complete the change, if you can stop new mail being received by the server (by disabling through a firewall for example) do so. If you have to fall back to your backup, any mail received during the backup will be lost. | |||
# Ensure that new DNS records are already set-up and working. | |||
#* EG <code> dig domain.com mx </code> | |||
# Create a backup of your entire installation (if running as a VMware VM, take a snapshot as well) | |||
## Stop Zimbra (as zimbra user) | |||
##* <code> zmcontrol stop </code> | |||
## Create copy (as root) | |||
##* <code> mkdir /backup/opt </code> | |||
##* <code> mkdir /backup/opt/zimbra </code> | |||
##* <code> cp -r /opt/zimbra/ /backup/opt/zimbra/ </code> | |||
## Start Zimbra (as zimbra user) | |||
##* <code> zmcontrol start </code> | |||
# Perform rename to Zimbra installation | |||
#* EG <code> /opt/zimbra/libexec/zmsetservername -n mailsvr.domain.com </code> | |||
# Perform rename to operating system | |||
## Update the following files | |||
##* <code> /etc/hosts </code> | |||
##* <code> /etc/hostname </code> | |||
## Set the hostname (not FQDN) | |||
##* <code> hostname <servername> </code> | |||
# Reboot the server | |||
#* <code> shutdown -r now </code> | |||
Once your server is back up, run through the following to check everything is in working order... | |||
# <code> zmcontrol status </code> | |||
# <code> zmprov gacf | grep oldhostname </code> | |||
# <code> zmprov gs `zmhostname` | grep oldhostname </code> | |||
# <code> zmlocalconfig | grep oldhostname </code> | |||
# Plus I'd tail the <code> /var/log/zombra.log </code> while sending and receiving a few test emails to make sure everything is running sweetly. | |||
Any probs, refer to the Zimbra doc at the start of this for things to investigate. | |||
=== Install Zimlet === | === Install Zimlet === |