系統環境
以最少基本元件的安裝。
編輯 /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=mail.osslab.co.cc
編輯 /etc/hosts
127.0.0.1 localhost.localdomain localhost
211.72.203.64 mail.osslab.co.cc mail
yum install sysstat.x86_64 perl.x86_64 sudo.x86_64 sqlite.x86_64
下載 ZCS:http://www.zimbra.com/downloads/os-downloads.html
cd /usr/src wget http://files2.zimbra.com/downloads/7.1.4_GA/zcs-7.1.4_GA_2555.RHEL5_64.20120105094627.tgz tar xzf zcs-7.1.4_GA_2555.RHEL5_64.20120105094627.tgz cd zcs-7.1.4_GA_2555.RHEL5_64.20120105094627 ./install.sh --platform-override
PS: 安裝程式會檢查系統是否為 RHEL,為了要使 CentOS 也能安裝,必須加上 --platform-override。
安裝開始
PS: 如果項目未輸入就是維持預設值。
Do you agree with the terms of the software license agreement? [N]y
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]You appear to be installing packages on a platform different
than the platform for which they were built.
This platform is CentOS5_64
Packages found: RHEL5_64
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]y
The system will be modified. Continue? [N]y
等待安裝程序完成。
DNS 都已設定正確,不知為何會出現這提示,就回答 No
DNS ERROR resolving MX for mail.osslab.co.cc
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes]NoChecking for port conflicts
Port conflict detected: 25 (zimbra-mta)
Port conflicts detected! - Any key to continue <按 Enter>Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@mail.osslab.co.cc
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-quarantine.7z2bkg7luy@mail.osslab.co.cc
+Enable automated spam training: yes
+Spam training user: spam._wqv6teh9@mail.osslab.co.cc
+Non-spam(Ham) training user: ham.k3w7w5sdbx@mail.osslab.co.cc
+SMTP host: mail.osslab.co.cc
+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.osslab.co.cc: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
+Version update notification email: admin@mail.osslab.co.cc
+Version update source email: admin@mail.osslab.co.cc
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)3Select, or 'r' for previous menu [r] 4 <選 4 設定管理者密碼>
Select, or 'r' for previous menu [r] r 選 r 回到上一頁>
*** 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]
Save config in file: [/opt/zimbra/config.14984]
The system will be modified - continue? [No] y
等待安裝程序完成。
Notify Zimbra of your installation? [Yes] no
Notification skipped
Starting servers...done.
Installing common zimlets...
com_zimbra_url...done.
com_zimbra_adminversioncheck...done.
com_zimbra_social...done.
com_zimbra_cert_manager...done.
com_zimbra_bulkprovision...done.
com_zimbra_phone...done.
com_zimbra_linkedin...done.
com_zimbra_attachcontacts...done.
com_zimbra_dnd...done.
com_zimbra_email...done.
com_zimbra_webex...done.
com_zimbra_date...done.
com_zimbra_srchhighlighter...done.
com_zimbra_attachmail...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Setting up zimbra crontab...done.
Moving /tmp/zmsetup.03212012-064803.log to /opt/zimbra/log
Configuration complete - press return to exit
如果事先有安裝 sendmail 套件,這會與 zimbra-mta 衝突,必須將它關閉
chkconfig sendmail off service sendmail stop service zimbra stop service zimbra start service zimbra status
設定 iptables 規則
編輯 /etc/sysconfig/iptables
... # enable zimbra ports -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 110 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 143 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 465 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 993 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 995 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 7071 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5480 -j ACCEPT ...
設定 SELinux
暫時關閉 iptables 及 SELinux
這是為了作網路除錯時用的
service iptables stop setenforce 0