웹사이트 검색

RHEL/CentOS 7/8에서 Zimbra Collaboration Suite(ZCS) 설정


Zimbra Collaboration Suite(ZCS)는 이메일 서버를 위한 오픈 소스 협업 플랫폼으로, 오픈 소스 버전()의 두 가지 버전으로 개발되었습니다. 무료) 및 Network Edition(유료) - LDAP, SMTP, POP 및 IMAP, 웹메일 클라이언트, 캘린더링, 작업, 바이러스 백신, 스팸 방지 등의 서비스를 제공 다른 사람.

이 튜토리얼에서는 CentOS/RHEL 7 서버에 Zimbra Collaboration Suite Open Source Edition을 설치하는 방법을 설명합니다.

요구사항

  • Zimbra 메일 서버 IP 주소를 가리키는 AMX 유효한 레코드가 모두 있는 외부 DNS 서버.
  • 메일, 데이터베이스, LDAP, DNS 또는 Http 서버를 실행하지 않고 CentOS 8/RHEL 8 또는 CentOS 7/RHEL 7을 최소로 새로 설치합니다.
  • 네트워크 인터페이스에 할당된 고정 IP 주소입니다.

1단계: 시스템 패키지 설치

1. Zimbra Collaboration Suite 설치 프로세스를 진행하기 전에 먼저 루트 권한으로 서버 콘솔에 로그인하고 다음 패키지를 설치하십시오.

yum -y install unzip net-tools sysstat openssh-clients perl-core libaio nmap-ncat libstdc++.so.6

2. 다음으로 getenforce 명령을 실행하여 Selinux가 컴퓨터에 활성화되어 있는지 확인하세요. 정책이 Enforced로 설정된 경우 아래 명령을 실행하여 비활성화합니다.

getenforce
setenforce 0
getenforce

CentOS에서 Selinux를 완전히 비활성화하려면 텍스트 편집기로 /etc/selinux/config 파일을 열고 SELINUX 줄을 disabled로 설정하세요.

3. 다음 명령을 실행하여 wget 시스템 유틸리티가 시스템에 설치되어 있는지 확인하십시오.

yum install wget 

2단계: 시스템 호스트 이름 구성

4. Zimbra가 올바르게 작동하려면 아래를 실행하여 로컬 컴퓨터 호스트 이름과 FQDN이 서버 IP 주소를 가리키도록 설정해야 합니다. 루트 계정의 hostnamectl 명령:

hostnamectl set-hostname mail
echo "192.168.0.14  mail.centos7.lan  mail " >> /etc/hosts
cat /etc/hosts

자신의 도메인 설정과 일치하도록 시스템 호스트 이름과 FQDN 값을 적절하게 바꾸십시오. 두 레코드에 대해 ping 명령을 실행하여 호스트 이름과 FQDN 값을 테스트합니다.

ping -c1 mail.centos7.lan
ping -c1 mail

3단계: 고정 IP 주소 추가

5. 서버가 DHCP 동적 IP 주소를 사용하는 경우 네트워크 인터페이스 카드를 편집하고 고정 IP 주소를 사용하도록 구성해야 합니다. ip addr 명령을 사용하여 네트워크 인터페이스 정보를 얻고 서버 외부 NIC(일반적으로 enp0s3 또는 eth0 등)를 식별합니다.

ip addr

그런 다음 설정을 변경하고 인터페이스에 수동 IP 주소를 할당해야 하는 인터페이스에 대해 nmtui-edit 명령을 실행합니다. 아래 스크린샷을 가이드로 사용하세요.

nmtui-edit enp0s3

4단계: 원치 않는 서비스 비활성화

6. CentOS 기본 설치에는 postfix 데몬이 이미 설치되어 실행 중인 상태로 제공됩니다. postfix 서비스를 비활성화하고 지우려면 다음 명령을 실행하십시오:

systemctl stop postfix
systemctl disable postfix
yum remove postfix

서비스가 제거된 후 ss 명령을 실행하여 LDAP, httpd, dovecot 등 Zimbra 서비스와 호환되지 않는 다른 데몬이 시스템에서 실행되고 있는지 확인하세요. 그렇다면 해당 항목도 제거하십시오.

5단계: Zimbra Collaboration Suite 오픈 소스 에디션 설치

7. 이제 Zimbra Collaboration Suite를 설치할 차례입니다. Zimbra Collaboration Suite 다운로드 페이지로 이동하여 다음 wget 명령을 실행하여 시스템의 최신 버전을 가져옵니다.

----------------- For RHEL/CentOS 8 -----------------
wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3953.RHEL8_64.20200629025823.tgz

----------------- For RHEL/CentOS 7 -----------------
wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3869.RHEL7_64.20190918004220.tgz

----------------- For RHEL/CentOS 6 -----------------
wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3869.RHEL6_64.20190918004220.tgz

8. 다운로드가 완료된 후 unzip 명령을 사용하여 아카이브를 추출하고 Zimbra 추출 디렉토리에 들어가서 디렉토리 내용을 나열하여 설치 프로그램 파일을 찾습니다.

tar xfz zcs-8.8.15_GA_3953.RHEL8_64.20200629025823.tgz
cd zcs-8.8.15_GA_3953.RHEL8_64.20200629025823/
ls

9. 이제 install.sh라는 설치 프로그램 스크립트 파일을 실행하여 Zimbra 설치 프로세스를 시작합니다.

일련의 시스템 검사를 마친 후 설치 프로그램은 라이센스에 동의하라는 메시지를 표시합니다. 설치 프로세스를 계속 진행하려면 라이센스 (y)에 동의하세요.

./install.sh
OR
./install.sh --platform-override   [On different platforms other than RHEL]
샘플 출력
Operations logged to /tmp/install.log.92OcKO6s
Checking for existing installation...
    zimbra-drive...NOT FOUND
    zimbra-imapd...NOT FOUND
    zimbra-patch...NOT FOUND
    zimbra-mta-patch...NOT FOUND
    zimbra-proxy-patch...NOT FOUND
    zimbra-license-tools...NOT FOUND
    zimbra-license-extension...NOT FOUND
    zimbra-network-store...NOT FOUND
    zimbra-network-modules-ng...NOT FOUND
    zimbra-chat...NOT FOUND
    zimbra-talk...NOT FOUND
    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.
SYNACOR, INC. ("SYNACOR") 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 this Zimbra Collaboration Suite Software:
https://www.zimbra.com/license/zimbra-public-eula-2-6.html
----------------------------------------------------------------------



Do you agree with the terms of the software license agreement? [N] y

10. 다음으로 설치 과정에서 Zimbra 데몬을 올바르게 구성하기 위한 일련의 질문이 표시됩니다. Zimbra 서비스를 추가로 설정하려면 아래 설치 발췌문을 사용하십시오.

Use Zimbra's package repository [Y] y

Importing Zimbra GPG key

Configuring package repository

Checking for installable packages

Found zimbra-core (local)
Found zimbra-ldap (local)
Found zimbra-logger (local)
Found zimbra-mta (local)
Found zimbra-dnscache (local)
Found zimbra-snmp (local)
Found zimbra-store (local)
Found zimbra-apache (local)
Found zimbra-spell (local)
Found zimbra-memcached (repo)
Found zimbra-proxy (local)
Found zimbra-drive (repo)
Found zimbra-imapd (local)
Found zimbra-patch (repo)
Found zimbra-mta-patch (repo)
Found zimbra-proxy-patch (repo)


Select the packages to install

Install zimbra-ldap [Y] y

11. 다음으로 Zimbra 패키지를 설치하라는 메시지가 표시됩니다. 모두 설치하려면 Y를 누르세요.

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 zimbra-drive zimbra-imapd zimbra-patch zimbra-mta-patch zimbra-proxy-patch zimbra-chat

12. 마지막으로 Zimbra 설치 프로세스가 시작됩니다.

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

Beginning Installation - see /tmp/install.log.92OcKO6s for details...

                          zimbra-core-components will be downloaded and installed.
                          zimbra-common-core-jar will be installed.
                         zimbra-common-core-libs will be installed.
                         zimbra-common-mbox-conf will be installed.
                   zimbra-common-mbox-conf-attrs will be installed.
                    zimbra-common-mbox-conf-msgs will be installed.
                  zimbra-common-mbox-conf-rights will be installed.
                           zimbra-common-mbox-db will be installed.
                         zimbra-common-mbox-docs will be installed.
                   zimbra-common-mbox-native-lib will be installed.
                            zimbra-timezone-data will be installed.
                                     zimbra-core will be installed.
                          zimbra-ldap-components will be downloaded and installed.
                                     zimbra-ldap will be installed.
                                   zimbra-logger will be installed.
                           zimbra-mta-components will be downloaded and installed.
                                      zimbra-mta will be installed.
                      zimbra-dnscache-components will be downloaded and installed.
                                 zimbra-dnscache will be installed.
                          zimbra-snmp-components will be downloaded and installed.
                                     zimbra-snmp will be installed.
Last metadata expiration check: 0:00:56 ago on Sat 01 Aug 2020 01:56:00 AM EDT.
                       zimbra-jetty-distribution will be downloaded and installed.
                         zimbra-store-components will be downloaded and installed.
                   zimbra-mbox-admin-console-war will be installed.
                                zimbra-mbox-conf will be installed.
                                 zimbra-mbox-war will be installed.
                             zimbra-mbox-service will be installed.
                          zimbra-mbox-store-libs will be installed.
                       zimbra-mbox-webclient-war will be installed.
                                    zimbra-store will be installed.
                        zimbra-apache-components will be downloaded and installed.
                                   zimbra-apache will be installed.
                         zimbra-spell-components will be downloaded and installed.
                                    zimbra-spell will be installed.
Last metadata expiration check: 0:01:07 ago on Sat 01 Aug 2020 01:56:00 AM EDT.
                                zimbra-memcached will be downloaded and installed.
                         zimbra-proxy-components will be downloaded and installed.
                                    zimbra-proxy will be installed.
Last metadata expiration check: 0:01:18 ago on Sat 01 Aug 2020 01:56:00 AM EDT.
                                    zimbra-drive will be downloaded and installed (later).
                                    zimbra-imapd will be installed.
Last metadata expiration check: 0:01:20 ago on Sat 01 Aug 2020 01:56:00 AM EDT.
                                    zimbra-patch will be downloaded and installed (later).
Last metadata expiration check: 0:01:22 ago on Sat 01 Aug 2020 01:56:00 AM EDT.
                                zimbra-mta-patch will be downloaded and installed (later).
Last metadata expiration check: 0:01:23 ago on Sat 01 Aug 2020 01:56:00 AM EDT.
                              zimbra-proxy-patch will be downloaded and installed (later).
Last metadata expiration check: 0:01:27 ago on Sat 01 Aug 2020 01:56:00 AM EDT.
                                     zimbra-chat will be downloaded and installed (later).

Downloading packages (11):
   zimbra-core-components
   zimbra-ldap-components
   zimbra-mta-components
   zimbra-dnscache-components
   zimbra-snmp-components
   zimbra-jetty-distribution
   zimbra-store-components
   zimbra-apache-components
   zimbra-spell-components
   zimbra-memcached
   zimbra-proxy-components
      ...done

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

Finished removing Zimbra Collaboration Server.


Installing repo packages (11):
   zimbra-core-components
   zimbra-ldap-components
   zimbra-mta-components
   zimbra-dnscache-components
   zimbra-snmp-components
   zimbra-jetty-distribution
   zimbra-store-components
   zimbra-apache-components
   zimbra-spell-components
   zimbra-memcached
   zimbra-proxy-components
      ...

13. 매장 구성.

1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    [email 
** 4) Admin Password                           UNSET
   5) Anti-virus quarantine user:              [email 
   6) Enable automated spam training:          yes
   7) Spam training user:                      [email 
   8) Non-spam(Ham) training user:             [email 
   9) SMTP host:                               mail.centos7.lan
  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://mail.centos7.lan:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       [email 
  22) Version update source email:             [email 
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] 4 # Select 4 to set admin password Password for [email  (min 6 characters): [54mE0RmqN] enter admin password here
Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    [email 
   4) Admin Password                           set
   5) Anti-virus quarantine user:              [email 
   6) Enable automated spam training:          yes
   7) Spam training user:                      [email 
   8) Non-spam(Ham) training user:             [email 
   9) SMTP host:                               mail.centos7.lan
  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://mail.centos7.lan:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       [email 
  22) Version update source email:             [email 
  23) Install mailstore (service webapp):      yes
  24) 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-spell:                            Enabled
   9) zimbra-proxy:                            Enabled
  10) 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  # Apply configuration Save configuration data to a file? [Yes] Enter Save config in file: [/opt/zimbra/config.11047] Saving config in /opt/zimbra/config.11047...done. The system will be modified - continue? [No] yes Operations logged to /tmp/zmsetup01262016-002704.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 mail.centos7.lan...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 mail.centos7.lan...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 mail.centos7.lan...done. Adding mail.centos7.lan to zimbraMailHostPool in default COS...done. Creating domain mail.centos7.lan...done. Setting default domain name...done. Creating domain mail.centos7.lan...already exists. Creating admin account [email . Creating root alias...done. Creating postmaster alias...done. Creating user [email . Creating user [email . Creating user [email . Setting spam training and Anti-virus quarantine accounts...done. Initializing store sql database...done. Setting zimbraSmtpHostname for mail.centos7.lan...done. Configuring SNMP...done. Setting up syslog.conf...done. Starting servers...done. Installing common zimlets... com_zimbra_adminversioncheck...done. com_zimbra_attachcontacts...done. com_zimbra_attachmail...done. com_zimbra_bulkprovision...done. com_zimbra_cert_manager...done. com_zimbra_clientuploader...done. com_zimbra_date...done. com_zimbra_email...done. com_zimbra_mailarchive...done. com_zimbra_phone...done. com_zimbra_proxy_config...done. com_zimbra_srchhighlighter...done. com_zimbra_tooltip...done. com_zimbra_url...done. com_zimbra_viewmail...done. com_zimbra_webex...done. com_zimbra_ymemoticons...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_RHEL7_64) The ADMIN EMAIL ADDRESS created ([email ) Notify Zimbra of your installation? [Yes] no Notification skipped Setting up zimbra crontab...done. Moving /tmp/zmsetup01262016-002704.log to /opt/zimbra/log Configuration complete - press return to exit # Press Enter

6단계: Zimba 초기 구성

14. 설치가 완료된 후 웹 브라우저를 열고 Zimbra 서비스를 실행하는 컴퓨터의 도메인 이름이나 IP 주소로 이동하고 HTTPS 프로토콜을 통해 포트 7071에서 인증서 보안 오류가 발생하고 설치 프로세스 중에 구성한 자격 증명으로 로그인하세요. Zimbra 관리자 웹 패널의 기본 사용자 이름은 admin입니다.

https://mail.centos7.lan:7071
or
https://192.168.1.14:7071 

15. 관리 웹 콘솔에 로그인하면 자신만의 SSL 인증서 추가, 메일 계정, 메일 별칭 생성 등을 시작할 수 있습니다. 포트 7071은 관리 작업에만 사용된다는 점을 기억하세요.

클라이언트는 HTTPS 프로토콜을 통해 도메인 이름이나 서버 IP 주소를 사용하여 웹 메일함에 안전하게 로그인할 수 있습니다.

https://mail.centos7.lan 
or
https://192.168.1.14 

축하해요! 이제 귀하의 사업장에 전체 운영 메일 스택이 설치되었습니다.

6단계: Zimbra 제거 또는 제거

구성 요소와 함께 Zimbra 서비스를 제거하려면 -u 옵션을 사용하여 설치 프로그램 스크립트를 실행하세요.

./install.sh -u

Zimbra 설치 아카이브와 디렉터리를 삭제하려면 아래 명령을 실행하세요:

cd
rm -rf zcs-*

마지막으로 Zimbra Collaboration Suite를 제대로 실행하려면 최소 4GB RAM이 요구되는 강력한 시스템이 필요합니다.


판권 소유. © Linux-Console.net • 2019-2024