2011/04/03

Install zimbra on Centos 5.5

Prereq part


Make sure you have at least 7 gb free (/opt/zimbra requires at least 5GB of space to install). If you scalled to small you can use this article (i did :D)
http://www.howtoforge.com/logical-volume-manager-how-can-i-extend-a-volume-group
Then you can extend the logical volume like this
lvextend /dev/VolGroup00/LogVol00 -l +100%FREE
resize2fs /dev/VolGroup00/LogVol00

You can check the size with
df -h

Remember, online resizing is a nono for production environment. I would recommend making a different partition for /opt/zimbra so you can resize this by bringing this partition offline

Fix your /etc/hosts so that it looks similar to

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.5.4.49 mail01 mail01.demo
::1 localhost6.localdomain6 localhost6


Install the necessary packages

yum install -y sudo libidn gmp libstdc++ perl sysstat sqlite bind-utils



And finally make sure your mx records are setup
dig demo mx

This should reply your name server

[root@mail01 ~]# dig demo mx

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> demo mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30023
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;demo. IN MX

;; ANSWER SECTION:
nato.demo. 3600 IN MX 10 mail01.demo.

;; ADDITIONAL SECTION:
mail01.demo. 3600 IN A 10.5.4.49

;; Query time: 0 msec
;; SERVER: 10.5.4.50#53(10.5.4.50)
;; WHEN: Sun Apr 3 21:16:02 2011
;; MSG SIZE rcvd: 66



Finally, make sure your firewall is configured correctly. I disabled it for the sake of simplicity in this demo setup. You can do this with the following tool (CentOS specific)

# system-config-securitylevel-tui


Actual install


First start by getting the package from http://www.zimbra.com/downloads/os-downloads.html. I usually use wget for this

mkdir -p /usr/src/zimbra
cd /usr/src/zimbra
wget http://files2.zimbra.com/downloads/7.0.1_GA/zcs-7.0.1_GA_3105.RHEL5_64.20110304210645.tgz
wget http://files2.zimbra.com/downloads/7.0.1_GA/zcs-7.0.1_GA_3105.RHEL5_64.20110304210645.tgz.md5




Check that your MD5sums match

md5sum zcs*.tgz
cat zcs*.tgz.md5


Untar your file and install it. Remember we will have to do a platform-override as centos is not supported :)

tar -xzvf zcs*tgz
cd zcs*
./install.sh --platform-override


While installing you will have to answer some questions and set the admin password. This should be quite straight forward if you have done all the previous prereqs. When the install starts, go sip some coffee or tea :)

When done, execute the following. I haven't figured out why this works but it makes the red crosses disappear on the service status page.


su - zimbra
zmsshkeygen
zmupdateauthkeys
zmloggerctl stop ; zmloggerctl start
exit
reboot


You can now do the admin tasks you like on
https://mail01.demo:7071/
(your login
And read mail from
http://mail01.demo/

No comments:

Post a Comment