강좌
클라우드/리눅스에 관한 강좌입니다.
프로그램 분류

웹메일 솔류션 짐브라(zimbra)

작성자 정보

  • 웹관리자 작성
  • 작성일

컨텐츠 정보

본문

프로그램명 : Zimbra
운영체제 : Linux
홈페이지 : http://www.zimbra.com/
라이센스 : 공개 소스(zlib 라이선스)



1. 소개
vmware Zimbra는 이메일, 일정, 연락처, 파일 저장소, Desktop 싱크 기능을 제공하는 협업 프로그램이다. 또한 스마트폰에서 접속할 수 있도록 모바일 웹 인터페이스 또한 제공한다.
Zimbra는 내부적으로 Postfix, OpenLDAP, MySQL, Lucene, ClameAV, SpamAssassin 등과 같은 표준적으로 쓰이는 여러 오픈소스를 통합하여 구성되어 있다.
설치 이후의 용량이 약 3GB에 달할정도로 조금 덩치가 큰 편이기는 하지만, 기존에 Sendmail이나 Postfix, Qmail 설치 후 POP, IMAP 연동, 웹메일 프로그램 설치순으로 이루어지는 복잡한 과정이 없이 간단히 설치가 가능한 장점이 있다.

이러한 장점을 가지고 있지만, 국내에서는 이렇다할 설치 가이드 및 문서가 없는것 같아 이번에 소개를 해볼려고 한다.

2. 설치
Os: centos 5.8 i386(32bit)
Version : zcs-7.1.0_GA_3140.RHEL5.20110329150824.tgz
Downloard : http://www.zimbra.com/downloads/os-archives-downloads.html

[필요 라이브 러리 설치]
yum -y install gcc-c++
yum -y install gcc
yum -y install make
yum -y install wget
yum -y install libtermcap-devel ncurses-devel
yum -y install make cmake
yum -y install gcc g++ cpp gcc-c++
yum -y install perl
yum -y install ncurses-devel
yum -y install bison
yum -y install zlib curl
yum -y install openssl openssl-devel
yum -y install bzip2-devel
yum -y install libtermcap-devel libc-client-devel
yum -y install wget unzip
yum -y install gmp sysstat


[sendmail 실행 중단]
service sendmail stop
chkconfig sendmail off


또한 Zimbra를 설치할 서버에 웹서버(Port 80번)가 구동중이라면 다른 포트로 변경합니다.
참고로 Zimbra에서 사용하는 포트는 아래와 같습니다. 이미 사용중인 포트가 있다면 변경하거나 중단해야합니다.

[짐브라 설치시 기본 사용Port]
Remote Queue Manager : 22
Postfix : 25
HTTP : 80
POP3 : 110
IMAP : 143
LDAP : 389
HTTPS : 443
Mailboxd IMAP SSL : 993
Mailboxd POP SSL : 995
Mailboxd LMTP : 7025



[메일서버 호스트 이름 설정]
설치할 리눅스 서버의 호스트 이름이 다음과 같이 설정되어 있는지 확인한다. 당연히 DNS서버의 MX레코드에 등록이 되어있어야 합니다. 본 글에서는 DNS관련한 내용은 설명하지는
않는다.

[root@mail zcs-7.1.0_GA_3140.RHEL5.20110329150824]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=mail.ps-ef.net
GATEWAY=210.114.223.1


[/etc/hosts 파일 설정]
아래와 같이 hosts 파일이 설정되어 있어야 합니다.

[root@mail zcs-7.1.0_GA_3140.RHEL5.20110329150824]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
210.114.223.192 mail.ps-ef.net mail


[소스파일 다운로드]
wget http://files2.zimbra.com/downloads/7.1.0_GA/zcs-7.1.0_GA_3140.RHEL5.20110329150824.tgz
tar xvf zcs-7.1.0_GA_3140.RHEL5.20110329150824.tgz
cd zcs-7.1.0_GA_3140.RHEL5.20110329150824

[설치 실행]
[root@mail zcs-7.1.0_GA_3140.RHEL5.20110329150824]# sh install.sh --platform-override

관련 패키지를 검색중에 설치가 안안되어있다는 항목이 나타남

Operations logged to /tmp/install.log.3126
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 prerequisites...
     FOUND: NPTL
     FOUND: sudo-1.7.2p1-13
     FOUND: libidn-0.6.5-1.1
     FOUND: gmp-4.1.4-10
     FOUND: /usr/lib/libstdc++.so.6
Checking for suggested prerequisites...
     FOUND: perl-5.8.8
     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-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] y

Install zimbra-mta [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 [N] y

Install zimbra-proxy [N] y

[일반적인 환경에서는 필요없는 패키지를 설치를 안해줘도 되지만 이왕이면 다 설치를 해주자]

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
    zimbra-memcached
    zimbra-proxy

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] y

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

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

Finished removing Zimbra Collaboration Suite.

Installing packages

    zimbra-core......zimbra-core-7.1.0_GA_3140.RHEL5-20110329150824.i386.rpm...done
    zimbra-ldap......zimbra-ldap-7.1.0_GA_3140.RHEL5-20110329150824.i386.rpm...done
    zimbra-logger......zimbra-logger-7.1.0_GA_3140.RHEL5-20110329150824.i386.rpm...done
    zimbra-mta......zimbra-mta-7.1.0_GA_3140.RHEL5-20110329150824.i386.rpm...done
    zimbra-snmp......zimbra-snmp-7.1.0_GA_3140.RHEL5-20110329150824.i386.rpm...done
    zimbra-store......zimbra-store-7.1.0_GA_3140.RHEL5-20110329150824.i386.rpm...done
    zimbra-apache......zimbra-apache-7.1.0_GA_3140.RHEL5-20110329150824.i386.rpm...done
    zimbra-spell......zimbra-spell-7.1.0_GA_3140.RHEL5-20110329150824.i386.rpm...done
    zimbra-memcached......zimbra-memcached-7.1.0_GA_3140.RHEL5-20110329150824.i386.rpm...done
    zimbra-proxy......zimbra-proxy-7.1.0_GA_3140.RHEL5-20110329150824.i386.rpm...done
Operations logged to /tmp/zmsetup.02072014-171558.log
Installing LDAP configuration database...done.
Setting defaults...

DNS ERROR resolving MX for mail.ps-ef.net
It is suggested that the domain name have an MX record configured in DNS

도메인 변경을 해줘야 된다.
이부분에서 도메인을 변경해주지 않으면, admin@mail.ps-ef.net 와 같은 서브도메인을 사용하는 꼴이 되버린다. 
정확한 도메인으로 수정.

Change domain name? [Yes] yes
Create domain: [mail.ps-ef.net] ps-ef.net
MX: mail.ps-ef.net (210.114.223.192)

Interface: 210.114.223.192
Interface: 127.0.0.1
done.
Checking for port conflicts

정상적으로 MX 레코드값을 확인이 가능해졌다.(DNS에서 이부분은 미리 설정이 되어있어야된다.)

Main menu

   1) Common Configuration:                                                  
   2) zimbra-ldap:                             Enabled                       
   3) zimbra-store:                            Enabled                       
        +Create Admin User:                    yes                           
        +Admin user to create:                 admin@ps-ef.net               
******* +Admin Password                        UNSET                         
        +Anti-virus quarantine user:           virus-quarantine.ca7ovwmko@ps-ef.net
        +Enable automated spam training:       yes                           
        +Spam training user:                   spam.dclvwzqamo@ps-ef.net     
        +Non-spam(Ham) training user:          ham.90vqf3iex@ps-ef.net       
        +SMTP host:                            mail.ps-ef.net                
        +Web server HTTP port:                 80                            
        +Web server HTTPS port:                443                           
        +Web server mode:                      http                          
        +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://mail.ps-ef.net:7780/aspell.php
        +Enable version update checks:         TRUE                          
        +Enable version update notifications:  TRUE                          
        +Version update notification email:    admin@ps-ef.net               
        +Version update source email:          admin@ps-ef.net               

   4) zimbra-mta:                              Enabled                       
   5) zimbra-snmp:                             Enabled                       
   6) zimbra-logger:                           Enabled                       
   7) zimbra-spell:                            Enabled                       
   8) zimbra-proxy:                            Enabled                       
   9) 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


Store configuration

   1) Status:                                  Enabled                       
   2) Create Admin User:                       yes                           
   3) Admin user to create:                    admin@ps-ef.net          
** 4) Admin Password                           UNSET                         
   5) Anti-virus quarantine user:              virus-quarantine.ngn76dth@ps-ef.net
   6) Enable automated spam training:          yes                           
   7) Spam training user:                      spam.feh2zm1ke@ps-ef.net 
   8) Non-spam(Ham) training user:             ham.kqqbhmfx5@ps-ef.net  
   9) SMTP host:                               mail.ps-ef.net                
  10) Web server HTTP port:                    80                            
  11) Web server HTTPS port:                   443                           
  12) Web server mode:                         http                          
  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.ps-ef.net:7780/aspell.php
  19) Enable version update checks:            TRUE                          
  20) Enable version update notifications:     TRUE                          
  21) Version update notification email:       admin@ps-ef.net          
  22) Version update source email:             admin@ps-ef.net          

Select, or 'r' for previous menu [r] 4

기본 관리자(admin)패스워드 변경을 해줌.

Store configuration

   1) Status:                                  Enabled                       
   2) Create Admin User:                       yes                           
   3) Admin user to create:                    admin@ps-ef.net          
   4) Admin Password                           set                           
   5) Anti-virus quarantine user:              virus-quarantine.ngn76dth@mail.ps-ef.net
   6) Enable automated spam training:          yes                           
   7) Spam training user:                      spam.feh2zm1ke@ps-ef.net 
   8) Non-spam(Ham) training user:             ham.kqqbhmfx5@ps-ef.net  
   9) SMTP host:                               mail.ps-ef.net                
  10) Web server HTTP port:                    80                            
  11) Web server HTTPS port:                   443                           
  12) Web server mode:                         http                          
  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.ps-ef.net:7780/aspell.php
  19) Enable version update checks:            TRUE                          
  20) Enable version update notifications:     TRUE                          
  21) Version update notification email:       admin@ps-ef.net          
  22) Version update source email:             admin@ps-ef.net          

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) zimbra-proxy:                            Enabled                       
   9) 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
Save configuration data to a file? [Yes] yes
Save config in file: [/opt/zimbra/config.11937] 
Saving config in /opt/zimbra/config.11937...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup.02072014-182254.log
Setting local config values...done.
Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL certificate...done.
Installing mailboxd SSL certificates...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Creating server entry for mail.ps-ef.net...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.ps-ef.net...done.
Adding mail.ps-ef.net to zimbraMailHostPool in default COS...done.
Installing webclient skins...
tree...done.
lemongrass...done.
hotrod...done.
beach...done.
lavender...done.
steel...done.
bones...done.
bare...done.
sky...done.
waves...done.
smoke...done.
carbon...done.
twilight...done.
sand...done.
lake...done.
pebble...done.
oasis...done.
Finished installing webclient skins.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on mail.ps-ef.net...done.
Creating domain ps-ef.net...done.
Setting default domain name...done.
Creating domain ps-ef.net...already exists.
Creating admin account admin@ps-ef.net...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user sp

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,034 명
  • 현재 강좌수 :  35,787 개
  • 현재 접속자 :  233 명