安裝搭建zimbra郵件服務器(yum搭建,dns搭建)
簡介:
Zimbra的核心產品是Zimbra協作套件(Zimbra Collaboration Suite,簡稱ZCS)。除了它的核心功能是電子郵件和日程安排服務器,當然還包括許多其它的功能,就象是下一代的微軟Exchange。在電子郵件和日程安排之外,它還提供文檔存儲和編輯、即時消息以及一個利用獲獎技術開發的全功能的管理控制檯。ZCS同時也提供移動設備的支持,以及與部署於
Windows、Linux或apple操作系統中的桌面程序的同步功能。
安裝需求及配置環境
Cent os 5.5 純淨版
固定IP:192.168.20.98
安裝httpd服務
搭建DNS服務器
域名爲:xiaolu.com 並解析爲mail.xiaolu.com
關閉防火牆
禁用selinux
禁用sendmail
安裝gcc、java、sysstat
安裝sudo、libidn、gmp、perl、sqlite
Zimbra軟件包:zcs-7.0.1_GA_3105.RHEL5.20110304210448.tgz
<!--[if !supportLists]-->一、<!--[endif]-->配置yum,安裝配置環境
<!--[if !supportLists]-->1) <!--[endif]-->掛載光盤,記錄掛載位置
# mount /dev/cdrom /mnt/cdrom/
<!--[if !supportLists]-->2) <!--[endif]-->修改配置文件。
# vi /etc/yum.repos.d/CentOS-Media.repo
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
保存退出
驗證是否成功。執行命令yum list 將會列出rpm列表
<!--[if !supportLists]-->3) <!--[endif]-->利用yum安裝相應軟件
Yum install gcc*
yum install java*
yum install sysstat*
yum install sudo*
yum install gmp*
yum install perl*
yum install sqlite*
<!--[if !supportLists]-->4) <!--[endif]-->安裝httpd服務
方法一樣,使用yum安裝
yum install http*
<!--[if !supportLists]-->5) <!--[endif]-->關閉防火牆
Service iptables stop
Chkconfig iptables off
<!--[if !supportLists]-->6) <!--[endif]-->禁用selinux
# vi /etc/selinux/config
SELINUX=disabled
<!--[if !supportLists]-->7) <!--[endif]-->禁用sendmail
Service sendmail stop
Chkconfig sendmail off
<!--[if !supportLists]-->二、<!--[endif]-->安裝配置dns服務器
<!--[if !supportLists]-->1) <!--[endif]-->使用yum源安裝dns服務器
# yum install bind*
<!--[if !supportLists]-->2) <!--[endif]-->配置dns服務器
# vi /var/named/chroot/etc/named.conf 修改dns主配置文件
<!--[endif]-->
# vi /var/named/chroot/var/named/xiaolu.com.zone 配置解析文件
<!--[endif]-->
# vi /etc/resolv.conf 修改resolv ,添加dns地址
nameserver 192.168.20.98 添加本地解析
<!--[if !supportLists]-->3) <!--[endif]-->修改hosts文件
# vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.20.98 mail.xiaolu.com mail
<!--[if !supportLists]-->4) <!--[endif]-->修改主機名
# vi /etc/sysconfig/network
HOSTNAME=mail.xiaolu.com
<!--[if !supportLists]-->5) <!--[endif]-->
<!--[if !supportLists]-->三、<!--[endif]-->安裝zimbra
<!--[if !supportLists]-->1) <!--[endif]-->解壓zimbra源碼包
# tar -zxmf zcs-7.0.1_GA_3105.RHEL5.20110304210448.tgz
# mv zcs-7.0.1_GA_3105.RHEL5.20110304210448 zimbra 改名字
<!--[if !supportLists]-->2) <!--[endif]-->執行腳本
# ./install.sh --platform-override
以下爲問答交互式:
Operations logged to /tmp/install.log.3668
Checking for existing installation...
zimbra-ldap...NOT FOUND
zimbra-logger...NOT FOUND
zimbra-mta...NOT FOUND
zimbra-snmp...NOT FOUND
zimbra-store...NOT FOUND
zimbra-apache...NOT FOUND
zimbra-spell...NOT FOUND
zimbra-convertd...NOT FOUND
zimbra-memcached...NOT FOUND
zimbra-proxy...NOT FOUND
zimbra-archiving...NOT FOUND
zimbra-cluster...NOT FOUND
zimbra-core...NOT FOUND
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for the Zimbra Collaboration Suite:
http://www.zimbra.com/license/zimbra_public_eula_2.1.html
Do you agree with the terms of the software license agreement? [N] 是否繼續選擇Y
Checking for installable packages
Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy
Select the packages to install 發現了需要安裝的包,保持默認即可
Install zimbra-ldap [Y]
Install zimbra-logger [Y]
Install zimbra-mta [Y]
Install zimbra-snmp [Y]
Install zimbra-store [Y]
Install zimbra-apache [Y]
Install zimbra-spell [Y]
Install zimbra-memcached [N]
Install zimbra-proxy [N]
Checking required space for zimbra-core
checking space for zimbra-store
Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
You appear to be installing packages on a platform different
than the platform for which they were built.
This platform is CentOS5
Packages found: RHEL5
This may or may not work.
Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.
Install anyway? [N]選擇yes 開始安裝
The system will be modified. Continue? [N] y 選擇y繼續安裝
Checking for port conflicts
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
+Create Admin User: yes
******* +Admin Password UNSET
+Enable automated spam training: yes
+SMTP host: mail.xiaolu.com
+Web server HTTP port: 80
+Web server HTTPS port: 443
+Web server mode: http
+IMAP server port: 143
+IMAP server SSL port: 993
+POP server port: 110
+POP server SSL port: 995
+Use spell check server: yes
+Spell server URL: http://mail.xiaolu.com:7780/aspell.php
+Configure for use with mail proxy: FALSE
+Configure for use with web proxy: FALSE
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit
Address unconfigured (**) items (? - help) 選擇3 選擇4 輸入管理密碼
Store configuration
1) Status: Enabled
2) Create Admin User: yes
4) Admin Password set
6) Enable automated spam training: yes
9) SMTP host: mail.xiaolu.com
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://mail.xiaolu.com:7780/aspell.php
19) Configure for use with mail proxy: FALSE
20) Configure for use with web proxy: FALSE
21) Enable version update checks: TRUE
22) Enable version update notifications: TRUE
Select, or 'r' for previous menu [r] 輸入R返回主菜單
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a 選擇a保存
Save configuration data to a file? [Yes] 選擇yes開始配置數據文件
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
The VERSION of zcs installed (7.0.1_GA_3105_CentOS5)
Notify Zimbra of your installation? [Yes] yes 選擇yes
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=7.0.1_GA_3105_CentOS5&
[email protected]
Notification complete
Starting servers...done.
Installing common zimlets...
com_zimbra_date...done.
com_zimbra_social...done.
com_zimbra_srchhighlighter...done.
com_zimbra_email...done.
com_zimbra_cert_manager...done.
com_zimbra_webex...done.
com_zimbra_adminversioncheck...done.
com_zimbra_bulkprovision...done.
com_zimbra_linkedin...done.
com_zimbra_attachcontacts...done.
com_zimbra_attachmail...done.
com_zimbra_url...done.
com_zimbra_dnd...done.
com_zimbra_phone...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Setting up zimbra crontab...done.
Moving /tmp/zmsetup.08012011-134423.log to /opt/zimbra/log
Configuration complete - press return to exit 到這一步如果沒有報錯,就完成了!
<!--[if !supportLists]-->3) <!--[endif]-->訪問管理後臺,通過域名或IP地址訪問,加端口:7071
<!--[if !supportLists]-->4) <!--[endif]-->頁面展示:
<!--[endif]-->
附件配置爲:DNS配置文件。請參閱!