1.下載下傳Zimbra
官網位址:http://www.zimbra.com/downloads
下載下傳說明:
a) 版本:
zimbra有兩個大版本:Open Source Edition和 Network Edition(Starter/Standard/Professional),其中前者免費,後者收費,此處下載下傳前者
具體各版本對比,請參見官網連結:http://www.zimbra.com/products/compare_products.html
b)版本号:
根據系統酌情選擇,此處選擇的系統是Debian,而官網上支援Debian系統最高Zimbra版本隻有Zimbra 7.2.2 GA,支援Debian5 x32和Debian 5 x64,此處選擇Debian 5 x64版本的Zimbra 7.2.2 GA ,檔案大小大概550MB左右,我下載下傳下來的檔案為:zcs-7.2.2_GA_2852.DEBIAN5_64.20121204211814.tgz
2. 安裝前準備
a)系統:
OS:Debian5 x64 Kennel: 2.6.26-amd64
Hostname:mail
Domain:example.com
IP:192.168.1.5
Netmask:255.255.255.0
Gateway:192.168.1.1
Nameserver:192.168.1.2(DNS配置,上網用)
b) DNS伺服器配置(必須)
# nano/etc/bind/named.conf.local
添加如下内容:
zone "example.com"{
type master;
file "/etc/bind/example.com";
};
# nano/etc/bind/example.com
添加如下内容:
$TTL 604800
@ IN SOA @ mail.local.(
20131212 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800) ; Negative Cache TTL
@ IN NS mail
@ IN MX 10 mail
mail IN A 192.168.1.5
# invoke-rc.d bind9 restart
3. 安裝Zimbra
a) 将zcs-7.2.2_GA_2852.DEBIAN5_64.20121204211814.tgz用FTP上傳至Debian5 x64系統的~目錄下
b) 安裝Zimbra相關元件:
# aptitude install sudo libidn11 libpcre3 libgmp3c2 libperl5.10 libexpat1 perl5 sysstat sqlite3 file
c)将Zimbra伺服器上的臨時DNS換成正式DNS,并重新開機伺服器
# nano /etc/resolv.conf
nameserver 192.168.1.5
# reboot
d)安裝:
# cd ~
# tar zxvf zcs-7.2.2_GA_2852.DEBIAN5_64.20121204211814.tgz
# cd zcs-7.2.2_GA_2852.DEBIAN5_64.20121204211814
# ./install.sh
安裝過程中會有如下提示:
Do you agreewith the terms of the software license agreement? [N] y
Installzimbra-ldap [Y] y
Installzimbra-logger [Y] y
Installzimbra-mta [Y] y
Installzimbra-snmp [Y] y
Installzimbra-store [Y] y
Installzimbra-apache [Y] y
Install zimbra-spell[Y] y
Installzimbra-memcached [N] y
Installzimbra-proxy [N] y
The system willbe modified. Continue? [N] y
Change domain name?[Yes] no
選擇3
然後再選擇4
輸入admin密碼,此處我的密碼是zimbra
選擇 r 回到上級目錄
選擇s
要求儲存檔案時,直接回車即可
選擇a 應用所有配置
Select from menu, or press 'a' to apply config (? - help)a
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.9213]
Saving config in /opt/zimbra/config.9213...done.
The system will be modified - continue? [No] yes
Notify Zimbra of your installation? [Yes] no
Configuration complete - press return to exit 回車退出即可
a)修改/opt/zimbra/.bashrc
# nano/opt/zimbra/.bashrc
到PATH,在等号最前面添加/usr/share/file:
最後形式如下:PATH=/usr/share/file:${ZIMBRA_HOME}/bin:${ZIMBRA_HOME}/postfix/sbin:...
b)重新開機伺服器
# reboot
至此,安裝全部完成
4.用戶端登入
http://192.168.1.5
使用者名:admin
密碼:zimbra (剛剛修改的admin密碼)