문서의 이전 판입니다!
Zimbra Installation Guide
Zimbra 설치전 전제조건
- 하드웨어 사양
- Intel/AMD 64bit CPU 2.0GHz 이상
- 4GB RAM 이상
- 15GB 이상의 여유공간
- 추가적인 메일 저장 공간
- 방화벽 설정 : No Firewall
- 100명 이상의 계정이 필요한 경우에는 Raid-5 구성을 피해야함
- 지원하는 OS
- RedHat Enterprise Linux 6.4 AS/ES 64bit
- CentOS 6, 64bit
- SUSE Linux Enterprise Server 11, SP3(64bit)
- Ubuntu 12.04 LTS Server Edition (64bit)
- 필수 소프트웨어
- SSH Client 소프트웨어
- DNS 설정에 A 레코드 및 MX 레코드 설정이 되어 있는지 필히 확힌
- NTP 설정
- Netcat(NC), NC Utility
Zimbra Package Download
아래 URL 을 통해서 본인의 OS 에 맞는 버전으로 다운로드 하면 된다.
Site : http://www.zimbra.com/downloads/zimbra-collaboration-open-source
Zimbra Main Menu 설명
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@no
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-quarantine.l4af2sugma@no
+Enable automated spam training: yes
+Spam training user: spam.zmvcl3t9kr@no
+Non-spam(Ham) training user: ham.hkrytl7jd@no
+SMTP host: test.local.domain
+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: no
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: admin@no
+Version update source email: admin@no
+Install mailstore (service webapp): yes
+Install UI (zimbra,zimbraAdmin webapps): yes
8) zimbra-proxy: Enabled
9) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit
Zimbra Installation
Step 1. hostname 설정
여기에 등록한 Host 는 DNS 에 추가되어있는 Host 이며, 이 Host 는 MX 레코드에 추가 됩니다.
즉 DNS 등록 과 MX 레코드 등록이 완료된 Host 를 등록하는것이 중요합니다.
아래 예제는 localhost ip 로 설치 과정을 보여주기 위한 샘플 예제 입니다.
[root@test ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.106.21 test.local.domaintest
Step 2. resolve.conf 설정
[root@test ~]# cat /etc/resolv.conf ; generated by /sbin/dhclient-script search localdomain local.domain nameserver 192.168.106.21
Step 3. zimbra 패키지 압축 풀기
[root@test ~]# tar xvf zcs-8.5.1_GA_3056.RHEL6_64.20141103151539.tgz
Step 4. zimbra 설치 실행
[root@test zcs-8.5.1_GA_3056.RHEL6_64.20141103151539]# pwd
/root/zcs-8.5.1_GA_3056.RHEL6_64.20141103151539
[root@test zcs-8.5.1_GA_3056.RHEL6_64.20141103151539]# ./install.sh
Operations logged to /tmp/install.log.8634
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-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-5.html
Do you agree with the terms of the software license agreement? [N] y
Checking for prerequisites...
FOUND: NPTL
FOUND: nc-1.84-22
FOUND: sudo-1.8.6p3-15
FOUND: libidn-1.18-2
FOUND: gmp-4.3.1-7
FOUND: libaio-0.3.107-10
FOUND: libstdc++-4.4.7-11
FOUND: unzip-6.0-1
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] n
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-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.5.1_GA_3056.RHEL6_64-20141103151539.x86_64.rpm...done
zimbra-ldap......zimbra-ldap-8.5.1_GA_3056.RHEL6_64-20141103151539.x86_64.rpm...done
zimbra-logger......zimbra-logger-8.5.1_GA_3056.RHEL6_64-20141103151539.x86_64.rpm...done
zimbra-mta......zimbra-mta-8.5.1_GA_3056.RHEL6_64-20141103151539.x86_64.rpm...done
zimbra-dnscache......zimbra-dnscache-8.5.1_GA_3056.RHEL6_64-20141103151539.x86_64.rpm...done
zimbra-snmp......zimbra-snmp-8.5.1_GA_3056.RHEL6_64-20141103151539.x86_64.rpm...done
zimbra-store......zimbra-store-8.5.1_GA_3056.RHEL6_64-20141103151539.x86_64.rpm...done
zimbra-apache......zimbra-apache-8.5.1_GA_3056.RHEL6_64-20141103151539.x86_64.rpm...done
zimbra-memcached......zimbra-memcached-8.5.1_GA_3056.RHEL6_64-20141103151539.x86_64.rpm...done
zimbra-proxy......zimbra-proxy-8.5.1_GA_3056.RHEL6_64-20141103151539.x86_64.rpm...done
Operations logged to /tmp/zmsetup12222014-104138.log
Installing LDAP configuration database...done.
Setting defaults...No results returned for A lookup of test.local.domain
Checked nameservers:
192.168.106.21
No results returned for AAAA lookup of test.local.domain
Checked nameservers:
192.168.106.21
DNS ERROR resolving test.local.domain
It is suggested that the hostname be resolvable via DNS
Change hostname [Yes] yes // 사용할 domain name 을 입력한다.
// 해당 화면은 현재 local ip 즉 mx 레코드 등록이 안되있고 DNS 등록이 안되있는 hostname 이라 아래와 같은 문구가 뜬다.
No results returned for A lookup of test.local.domain
Checked nameservers:
192.168.106.21
// 아래 화면은 정상적인 DNS 등록 및 mx 레코드가 있으면 뜨는 문구이다.
MX: test.local.com(10.0.0.20)
Interface: 10.0.0.20
Interface: 127.0.0.1
Interface: ::1
Checking for port conflicts
아래 화면은 메인 메뉴 디스플레이 화면입니다.
zimbra 컴포넌트에 대한 기본 설정 목록을 보여주며, 기본 설정을 지정할 수 있습니다.
상세한 설정을 요구하는 값은 좌측에 아스테리스크()가 표시되며, 해당 값은 필수적으로 수정하여야 합니다.
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@no
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-quarantine.l4af2sugma@no
+Enable automated spam training: yes
+Spam training user: spam.zmvcl3t9kr@no
+Non-spam(Ham) training user: ham.hkrytl7jd@no
+SMTP host: test.local.domain
+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: no
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: admin@no
+Version update source email: admin@no
+Install mailstore (service webapp): yes
+Install UI (zimbra,zimbraAdmin webapps): yes
8) zimbra-proxy: Enabled
9) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit
Address unconfigured (**) items (? - help) 7
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@no
** 4) Admin Password UNSET
5) Anti-virus quarantine user: virus-quarantine.l4af2sugma@no
6) Enable automated spam training: yes
7) Spam training user: spam.zmvcl3t9kr@no
8) Non-spam(Ham) training user: ham.hkrytl7jd@no
9) SMTP host: test.local.domain
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: no
18) Enable version update checks: TRUE
19) Enable version update notifications: TRUE
20) Version update notification email: admin@no
21) Version update source email: admin@no
22) Install mailstore (service webapp): yes
23) Install UI (zimbra,zimbraAdmin webapps): yes
Select, or 'r' for previous menu [r] 4
Password for admin@no (min 6 characters): [4HOEk_g8F] dkfh0814
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@no
4) Admin Password set
5) Anti-virus quarantine user: virus-quarantine.l4af2sugma@no
6) Enable automated spam training: yes
7) Spam training user: spam.zmvcl3t9kr@no
8) Non-spam(Ham) training user: ham.hkrytl7jd@no
9) SMTP host: test.local.domain
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: no
18) Enable version update checks: TRUE
19) Enable version update notifications: TRUE
20) Version update notification email: admin@no
21) Version update source email: admin@no
22) Install mailstore (service webapp): yes
23) Install UI (zimbra,zimbraAdmin webapps): yes
Select, or 'r' for previous menu [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-proxy: Enabled
9) Default Class of Service Configuration:
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
Save configuration data to a file? [Yes] yes
Save config in file: [/opt/zimbra/config.17565]
Saving config in /opt/zimbra/config.17565...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup12222014-104138.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 test.local.domain...done.
Setting Zimbra IP Mode...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting service ports on test.local.domain...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 MTA auth host...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on test.local.domain...done.
Adding test.local.domain to zimbraMailHostPool in default COS...done.
Creating domain no...done.
Setting default domain name...done.
Creating domain no...already exists.
Creating admin account admin@no...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.zmvcl3t9kr@no...done.
Creating user ham.hkrytl7jd@no...done.
Creating user virus-quarantine.l4af2sugma@no...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for test.local.domain...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
com_zimbra_url...done.
com_zimbra_mailarchive...done.
com_zimbra_attachmail...done.
com_zimbra_cert_manager...done.
com_zimbra_webex...done.
com_zimbra_linkedinimage...done.
com_zimbra_proxy_config...done.
com_zimbra_date...done.
com_zimbra_email...done.
com_zimbra_attachcontacts...done.
com_zimbra_ymemoticons...done.
com_zimbra_tooltip...done.
com_zimbra_viewmail...done.
com_zimbra_phone...done.
com_zimbra_adminversioncheck...done.
com_zimbra_srchhighlighter...done.
com_zimbra_bulkprovision...done.
com_zimbra_clientuploader...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.5.1_GA_3056_RHEL6_64)
The ADMIN EMAIL ADDRESS created (admin@no)
Notify Zimbra of your installation? [Yes] no
Notification skipped
Setting up zimbra crontab...done.
Moving /tmp/zmsetup12222014-104138.log to /opt/zimbra/log
Configuration complete - press return to exit
서버 작동 확인 명령어
[root@test ~]# cd /opt/zimbra
[root@test ~]# su - zimbra
[zimbra@test ~]# zmcontrol status
Host test.local.domaintest
antispan Running
antivirus Running
convertd Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
stats Running
zmconfigd Running