下載說明:
1. 版本:
zimbra有兩個大版本:Open Source Edition和 Network Edition (Starter/Standard/Professional),其中前者免費,後者收費,
2. 環境(以下網絡及DNS信息請根據實際情況填寫):
OS:Ubuntu Server 12.04 x64
hostname:mail
domain:sunnie.com
address:192.168.1.5
netmask:255.255.255.0
gateway:192.168.1.1
nameserver:192.168.1.2
3. 配置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
4. 將Zimbra服務器上的臨時DNS換成正式DNS,並重啟服務器
# nano /etc/resolv.conf
nameserver 192.168.1.5
# reboot
5. 安裝Zimbra8.0.5
a)將zcs-8.0.5_GA_5839.UBUNTU12_64.20130910124038.tgz用FTP上傳至Ubuntu Server系統的/data/目錄下
b)安裝Zimbra相關組件:
#aptitude install sudo libidn11 libpcre3 libgmp3c2 libperl5.14 libexpat1 perl5 sysstat sqlite3 file pax
c)配置DNS,並重啟服務器
# nano /etc/resolvconf/resolv.conf.d/base
nameserver 192.168.60.136
# reboot
d)安裝:
# cd /data/
# tar zxvf zcs-8.0.5_GA_5839.UBUNTU12_64.20130910124038.tgz
# cd zcs-8.0.5_GA_5839.UBUNTU12_64.20130910124038
# ./install.sh
安裝過程中會有如下提示:
Do you agree with the terms of the software license agreement? [N] y
Install zimbra-ldap [Y] y
Install zimbra-logger [Y] y
Install zimbra-mta [Y] y
Install zimbra-snmp [Y] y
Install zimbra-store [Y] y
Install zimbra-apache [Y] y
Install zimbra-spell [Y] y
Install zimbra-memcached [N] y
Install zimbra-proxy [N] y
The system will be 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 回車退出即可
e)修改/opt/zimbra/.bashrc
# nano /opt/zimbra/.bashrc
找到PATH,在等號最前面添加/usr/share/file:最後形式如下:PATH=/usr/share/file:${ZIMBRA_HOME}/bin:${ZIMBRA_HOME}/postfix/sbin:…
f)重啟服務器
# reboot
4)客戶端登錄
https://192.168.1.5
用戶名:admin
密碼:zimbra (剛剛修改的admin密碼)
5)測試
a) 外發郵件:
現在假設登錄服務器192.168.1.5,紅色字體部分是需要我們手動輸入的內容
測試步驟如下:
telnet 192.168.1.5 25
Trying 192.168.1.5…
Connected to 192.168.1.5 (192.168.1.5)。
Escape character is '^]'.
220 mail.example.com ESMTP Postfix
helo example.com
250 mail.example.com
mail from:
250 2.1.0 Ok
rcpt to:
250 2.1.5 Ok
data
354 End data with
Subject: this is a test mail
This is test mail content
.
250 2.0.0 Ok: queued as 88B3B2A68032
quit
221 2.0.0 Bye
Connection closed by foreign host.
這樣郵件就發送出去了,你可以登錄你的收件郵件看看有沒有收到郵件。如果收到郵件,表示一切正常,結束。
b) 內發郵件
步驟同上,只需將mail from所示的發件人和rcpt to所示的收件人郵箱互換即可
至此,zimbra8.0.5集成郵件服務器搭建完成