開源界最強的郵件系統 zimbra 介紹 (一)

# 更新 centos
yum update

# 設定 hosts 網域
vi /etc/hosts

# 設定 hostname
vi /etc/sysconfig/network

# 下載安裝套件
yum install wget unzip -y

# 重開機讓網域生效
reboot

# 利用 hostname 指令查詢網域
hostname

# 實際 ping 網域檢查是否以對應到 ip,建議客戶端電腦也加上 hosts ip 及網域名稱
ping anthony.com.tw

# 下載 zimbra 所需要用到的套件
yum install sudo sysstat libidn gmp libtool-ltdl compat-glib vixie-cron perl libst dc++.i686 nc -y

# 切換到 tmp
cd /tmp

# 下載 zimbra 安裝程式
wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz

# 將 postfix 重開機自動掛載關閉
chkconfig postfix off

# 將 postfix 關閉
service postfix stop

# 編輯 sudoers
vi /etc/sudoers

# 將 iptables 重開機自動掛載關閉
chkconfig iptables off

# 將 iptables 關閉
service iptables stop

# 將 ip6tables 重開機自動掛載關閉
chkconfig ip6tables of

# 將 ip6tables 關閉
service ip6tables stop

# 將 selinux 關閉
vi /etc/sysconfig/selinux

# 解壓縮 zimbra
tar -zxvf zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz

# 切換到 zimbra 目錄夾內
cd zcs-8.6.0_GA_1153.RHEL6_64.20141215151155

# 執行安裝程式
./install.sh

# 進入安裝設定程序
Operations logged to /tmp/install.log.1493
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-dnscache...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-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-5.html


# 這裡詢問是否同意接受同意條款回答y
Do you agree with the terms of the software license agreement? [N] y



Checking for prerequisites...
     FOUND: NPTL
     FOUND: nc-1.84-24
     FOUND: sudo-1.8.6p3-20
     FOUND: libidn-1.18-2
     FOUND: gmp-4.3.1-7
     FOUND: libaio-0.3.107-10
     FOUND: libstdc++-4.4.7-16
libstdc++-4.4.7-16
     FOUND: unzip-6.0-2

Checking for suggested prerequisites...
     FOUND: perl-5.10.1
     FOUND: sysstat
     FOUND: sqlite
Prerequisite check complete.

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-dnscache
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] y

Install zimbra-logger [Y] y

Install zimbra-mta [Y] y

Install zimbra-dnscache [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 [Y] y

Install zimbra-proxy [Y] y
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete.

Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-dnscache
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell
    zimbra-memcached
    zimbra-proxy

The system will be modified.  Continue? [N] y

Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.

Finished removing Zimbra Collaboration Server.

Installing packages

    zimbra-core......zimbra-core-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...done
    zimbra-logger......zimbra-logger-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...d                                                         one
    zimbra-mta......zimbra-mta-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...done
    zimbra-dnscache......zimbra-dnscache-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm                                                         ...done
    zimbra-snmp......zimbra-snmp-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...done
    zimbra-store......zimbra-store-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...don                                                         e
    zimbra-apache......zimbra-apache-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...d                                                         one
    zimbra-spell......zimbra-spell-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...don                                                         e
    zimbra-memcached......zimbra-memcached-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.r                                                         pm...done
    zimbra-proxy......zimbra-proxy-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...don                                                         e
Operations logged to /tmp/zmsetup10212015-143101.log
Installing LDAP configuration database...done.
Setting defaults...No results returned for A lookup of anthony.com.tw
Checked nameservers:
        192.168.1.12
No results returned for AAAA lookup of anthony.com.tw
Checked nameservers:
        192.168.1.12


DNS ERROR resolving anthony.com.tw
It is suggested that the hostname be resolvable via DNS
Change hostname [Yes] n
# 是否要更換 hostname 回答 n

DNS ERROR resolving MX for anthony.com.tw
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] n
done.
Checking for port conflicts

Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-logger:                           Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-dnscache:                         Enabled
   6) zimbra-snmp:                             Enabled
   7) zimbra-store:                            Enabled
        +Create Admin User:                    yes
        +Admin user to create:                 admin@anthony.com.tw
******* +Admin Password                        UNSET
        +Anti-virus quarantine user:           virus-quarantine.r0e_bmehg@anthony.com.tw
        +Enable automated spam training:       yes
        +Spam training user:                   spam.gzbjhwpmqh@anthony.com.tw
        +Non-spam(Ham) training user:          ham.7gnawj62d@anthony.com.tw
        +SMTP host:                            anthony.com.tw
        +Web server HTTP port:                 8080
        +Web server HTTPS port:                8443
        +Web server mode:                      https
        +IMAP server port:                     7143
        +IMAP server SSL port:                 7993
        +POP server port:                      7110
        +POP server SSL port:                  7995
        +Use spell check server:               yes
        +Spell server URL:                     http://anthony.com.tw:7780/aspell.php
        +Enable version update checks:         TRUE
        +Enable version update notifications:  TRUE
        +Version update notification email:    admin@anthony.com.tw
        +Version update source email:          admin@anthony.com.tw
        +Install mailstore (service webapp):   yes
        +Install UI (zimbra,zimbraAdmin webapps): yes

   8) zimbra-spell:                            Enabled
   9) zimbra-proxy:                            Enabled
  10) Default Class of Service Configuration:
   s) Save config to file
   x) Expand menu
   q) Quit

Address unconfigured (**) items  (? - help) 7
# 這裡說明需要更改 admin 密碼選擇7

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@anthony.com.tw
** 4) Admin Password                           UNSET
   5) Anti-virus quarantine user:              virus-quarantine.r0e_bmehg@anthony.com.tw
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.gzbjhwpmqh@anthony.com.tw
   8) Non-spam(Ham) training user:             ham.7gnawj62d@anthony.com.tw
   9) SMTP host:                               anthony.com.tw
  10) Web server HTTP port:                    8080
  11) Web server HTTPS port:                   8443
  12) Web server mode:                         https
  13) IMAP server port:                        7143
  14) IMAP server SSL port:                    7993
  15) POP server port:                         7110
  16) POP server SSL port:                     7995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://anthony.com.tw:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       admin@anthony.com.tw
  22) Version update source email:             admin@anthony.com.tw
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] 4
# 再選 4 設定 admin 密碼
Password for admin@anthony.com.tw (min 6 characters): [qCEquI_W] ******

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@anthony.com.tw
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.r0e_bmehg@anthony.com.tw
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.gzbjhwpmqh@anthony.com.tw
   8) Non-spam(Ham) training user:             ham.7gnawj62d@anthony.com.tw
   9) SMTP host:                               anthony.com.tw
  10) Web server HTTP port:                    8080
  11) Web server HTTPS port:                   8443
  12) Web server mode:                         https
  13) IMAP server port:                        7143
  14) IMAP server SSL port:                    7993
  15) POP server port:                         7110
  16) POP server SSL port:                     7995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://anthony.com.tw:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       admin@anthony.com.tw
  22) Version update source email:             admin@anthony.com.tw
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] r
# 選擇 r 返回主選單
Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-logger:                           Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-dnscache:                         Enabled
   6) zimbra-snmp:                             Enabled
   7) zimbra-store:                            Enabled
   8) zimbra-spell:                            Enabled
   9) zimbra-proxy:                            Enabled
  10) Default Class of Service Configuration:
   s) Save config to file
   x) Expand menu
   q) Quit
# 下面是確認完成請按 a 套用,由於第一次安裝需要將設定檔儲存會花上較久的時間
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes] yes
Save config in file: [/opt/zimbra/config.11377]
Saving config in /opt/zimbra/config.11377...done.
The system will be modified - continue? [No] y
Operations logged to /tmp/zmsetup10212015-143101.log # 這步等待完成後才進入安裝程序
Setting local config values...
done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL zimbra-store certificate...done.
Creating new zimbra-ldap SSL certificate...done.
Creating new zimbra-mta SSL certificate...done.
Creating new zimbra-proxy SSL certificate...done.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...done.
Installing Proxy SSL certificate...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES searcher  password...done.
Creating server entry for anthony.com.tw...done.
Setting Zimbra IP Mode...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on anthony.com.tw...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting Master DNS IP address(es)...done.
Setting DNS cache tcp lookup preference...done.
Setting DNS cache udp lookup preference...done.
Setting DNS tcp upstream preference...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on anthony.com.tw...done.
Adding anthony.com.tw to zimbraMailHostPool in default COS...done.
Creating domain anthony.com.tw...done.
Setting default domain name...done.
Creating domain anthony.com.tw...already exists.
Creating admin account admin@anthony.com.tw...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.gzbjhwpmqh@anthony.com.tw...done.
Creating user ham.7gnawj62d@anthony.com.tw...done.
Creating user virus-quarantine.r0e_bmehg@anthony.com.tw...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for anthony.com.tw...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...
done.
Installing common zimlets...
        com_zimbra_mailarchive...done.
        com_zimbra_date...done.
        com_zimbra_attachcontacts...done.
        com_zimbra_tooltip...done.
        com_zimbra_cert_manager...done.
        com_zimbra_viewmail...done.
        com_zimbra_email...done.
        com_zimbra_phone...done.
        com_zimbra_ymemoticons...done.
        com_zimbra_clientuploader...done.
        com_zimbra_proxy_config...done.
        com_zimbra_webex...done.
        com_zimbra_srchhighlighter...done.
        com_zimbra_attachmail...done.
        com_zimbra_url...done.
        com_zimbra_adminversioncheck...done.
        com_zimbra_bulkprovision...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
        The VERSION of zcs installed (8.6.0_GA_1153_RHEL6_64)
        The ADMIN EMAIL ADDRESS created (admin@anthony.com.tw)

Notify Zimbra of your installation? [Yes] Notifying Zimbra of installation via http://www                                                         .zimbra.com/cgi-bin/notify.cgi?VER=8.6.0_GA_1153_RHEL6_64&MAIL=admin@anthony.com.tw
# 這步會詢問是否通知安裝完成
Notification complete

Setting up zimbra crontab...done.


Moving /tmp/zmsetup10212015-143101.log to /opt/zimbra/log


Configuration complete - press return to exit
# 確認安裝完成可以離開

開啟瀏覽器進入管理者網頁
https://anthony.com.tw:7071
開啟瀏覽器進入用戶端網頁
http://anthony.com.tw




後續將介紹系統設定及相關應用

留言

  1. 你好我有遇到無法收信的問題,是否可以協助?
    我的電話是0956537723

    回覆刪除

張貼留言

這個網誌中的熱門文章

c語言-關於#define用法

CMD常用網管指令

PHP 與 JavaScript 之間傳值利用 json