A-A+

开源企业邮件系统zimbra安装

2016年08月26日 LINUX, 服务 评论 4 条 阅读 6,523 次
1、搭建本地dns 安装bind软件
[root@mail  ~]# rpm -q bind
[root@mail ~]# mount /dev/hdc /mnt/
[root@mail ~]# vim /etc/yum.repos.d/rhel-debuginfo.repo
修改:
baseurl=file:///mnt/Server
enabled=1
[root@localhost ~]# yum -y install bind* caching-nameserver
3、配置named.conf文件
[root@mail ~]# vim /var/named/chroot/etc/named.conf
options {
directory "/var/named";
        };
zone "zhusl.com" IN {
type master;
file "zhusl.com.zone";
};
4、验证named.conf文件的语法
[root@mail ~]# named-checkconf /var/named/chroot/etc/named.conf
5、创建区域数据配置文件
[root@mail ~]# vim /var/named/chroot/var/named/zhusl.com.zone
修改:
$TTL 600
@       IN      SOA     zhusl.com.      root (
2016092201
        1D
        1D
        1D
        1D
)
            IN      NS      www.zhusl.com.
            IN      MX 10   mail.zhusl.com.
www     IN      A       192.168.230.129
mail     IN      A       192.168.230.129
6、验证语法:
[root@mail ~]# named-checkzone zhusl.com /var/named/chroot/var/named/zhusl.com.zone
7、启动服务并验证 [root@mail ~]# service named restart [root@mail ~]# netstat -anpt | grep 53 (主要设置主域名的mx记录) 2、关闭iptables和selinux
[root@mail ~]# iptables -F
[root@mail ~]# getenforce 
Disabled
[root@mail ~]# sed  -i 's/SELINUX=enabled/SELINUX=disabled/' /etc/selinux/config 
3、修改本地hosts文件,/etc/resolv.conf和主机名
[root@mail ~]# vim /etc/hosts
127.0.0.1   localhost localhost.localdomain 
::1         localhost localhost.localdomain
192.168.230.129  mail.zhusl.com zhusl.com

[root@mail ~]# vim /etc/resolv.conf
nameserver 127.0.0.1
nameserver 192.168.230.129

[root@mail ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=mail.zhusl.com
4、关闭系统自带的邮件服务
[root@mail ~]# service postfix stop
[root@mail ~]# chkconfig postfix off
5、安装zimbra依赖包(如果系统为最小化安装,需要更多依赖包,视具体情况定) yum -y install libidn11 curl fetchmail libpcre3 libgmp3c2 libxml2 libstdc++6 openssl perl sysstat libtool-ltdl compat-libstdc* nc file 6、下载zimbra软件包(zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz) (zimbra分为两个版本,收费版和免费版,这里下载的是免费版)
[root@mail ~]# wget -c https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz
[root@mail ~]# tar -zxf zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz
[root@mail ~]#  cd  zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz

[root@zhusl zcs-8.6.0]# ls
README.txt  bin  data  docs  install.sh  packages  readme_binary_en_US.txt  readme_source_en_US.txt  util
[root@zhusl zcs-8.6.0]# ./install.sh 
以下为整个安装过程:
Operations logged to /tmp/install.log.25059
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



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-15
     FOUND: libidn-1.18-2
     FOUND: gmp-4.3.1-7
     FOUND: libaio-0.3.107-10
     FOUND: libstdc++-4.4.7-11
libstdc++-4.4.7-11
     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] n

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-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/prelink.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...done
    zimbra-mta......zimbra-mta-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...done
    zimbra-apache......zimbra-apache-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...done
    zimbra-spell......zimbra-spell-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...done
    zimbra-memcached......zimbra-memcached-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...done
    zimbra-proxy......zimbra-proxy-8.6.0_GA_1153.RHEL6_64-20141215151155.x86_64.rpm...done
Operations logged to /tmp/zmsetup06242016-135608.log
Installing LDAP configuration database...done.
Setting defaults.../opt/zimbra/postfix/sbin/postconf: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
    MX: mail.zhusl.com (123.206.94.229)

    Interface: 10.141.5.66
    Interface: 127.0.0.1
        123.206.94.229
        123.206.94.229


DNS ERROR - none of the MX records for zhusl.com
resolve to this host
It is suggested that the MX record resolve to this host
Re-Enter domain name? [Yes] no
done.
Checking for port conflicts
Port conflict detected: 80 (zimbra-store)
Port conflicts detected! - Press Enter/Return key to continue 

Main menu

   1) Common Configuration:                                                  
   2) zimbra-ldap:                             Enabled                       
   3) zimbra-logger:                           Enabled                       
   4) zimbra-mta:                              Enabled                       
   5) zimbra-snmp:                             Enabled                       
   6) zimbra-store:                            Enabled                       
        +Create Admin User:                    yes                           
        +Admin user to create:                 admin@zhusl.com               
******* +Admin Password                        UNSET                         
        +Anti-virus quarantine user:           virus-quarantine._wt4mcnb1a@zhusl.com
        +Enable automated spam training:       yes                           
        +Spam training user:                   spam.6ub5bxazl@zhusl.com      
        +Non-spam(Ham) training user:          ham.h5ozwhmd@zhusl.com        
        +SMTP host:                            zhusl.com                     
        +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://zhusl.com:7780/aspell.php
        +Enable version update checks:         TRUE                          
        +Enable version update notifications:  TRUE                          
        +Version update notification email:    admin@zhusl.com               
        +Version update source email:          admin@zhusl.com               
        +Install mailstore (service webapp):   yes                           
        +Install UI (zimbra,zimbraAdmin webapps): yes                           

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

Address unconfigured (**) items  (? - help) 6


Store configuration

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

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

Password for admin@zhusl.com (min 6 characters): [fOP9mAmq] QWEqwe

Store configuration

   1) Status:                                  Enabled                       
   2) Create Admin User:                       yes                           
   3) Admin user to create:                    admin@zhusl.com               
   4) Admin Password                           set                           
   5) Anti-virus quarantine user:              virus-quarantine._wt4mcnb1a@zhusl.com
   6) Enable automated spam training:          yes                           
   7) Spam training user:                      spam.6ub5bxazl@zhusl.com      
   8) Non-spam(Ham) training user:             ham.h5ozwhmd@zhusl.com        
   9) SMTP host:                               zhusl.com                     
  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://zhusl.com:7780/aspell.php
  19) Enable version update checks:            TRUE                          
  20) Enable version update notifications:     TRUE                          
  21) Version update notification email:       admin@zhusl.com               
  22) Version update source email:             admin@zhusl.com               
  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-snmp:                             Enabled                       
   6) zimbra-store:                            Enabled                       
   7) zimbra-spell:                            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) s

Save config in file: [/opt/zimbra/config.1997] /root/zsl/mail/admin.txt
Saving config in /root/zsl/mail/admin.txt...done.

Main menu

   1) Common Configuration:                                                  
   2) zimbra-ldap:                             Enabled                       
   3) zimbra-logger:                           Enabled                       
   4) zimbra-mta:                              Enabled                       
   5) zimbra-snmp:                             Enabled                       
   6) zimbra-store:                            Enabled                       
   7) zimbra-spell:                            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.1997] 
Saving config in /opt/zimbra/config.1997...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup06242016-135608.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 zhusl.com...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 zhusl.com...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on zhusl.com...done.
Adding zhusl.com to zimbraMailHostPool in default COS...done.
Creating domain zhusl.com...done.
Setting default domain name...done.
Creating domain zhusl.com...already exists.
Creating admin account admin@zhusl.com...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.6ub5bxazl@zhusl.com...done.
Creating user ham.h5ozwhmd@zhusl.com...done.
Creating user virus-quarantine._wt4mcnb1a@zhusl.com...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for zhusl.com...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
    com_zimbra_attachmail...done.
    com_zimbra_tooltip...done.
    com_zimbra_clientuploader...done.
    com_zimbra_date...done.
    com_zimbra_webex...done.
    com_zimbra_attachcontacts...done.
    com_zimbra_adminversioncheck...done.
    com_zimbra_ymemoticons...done.
    com_zimbra_url...done.
    com_zimbra_cert_manager...done.
    com_zimbra_bulkprovision...done.
    com_zimbra_mailarchive...done.
    com_zimbra_proxy_config...done.
    com_zimbra_email...done.
    com_zimbra_srchhighlighter...done.
    com_zimbra_viewmail...done.
    com_zimbra_phone...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@zhusl.com)

Notify Zimbra of your installation? [Yes] yes
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.6.0_GA_1153_RHEL6_64&MAIL=admin@zhusl.com

Notification complete

Setting up zimbra crontab...done.


Moving /tmp/zmsetup06242016-135608.log to /opt/zimbra/log


Configuration complete - press return to exit 
安装完成。 web登录方式:https://192.168.230.129 后台管理地址:https://192.168.230.129:7071 服务查看方式:
su - zimbra

[zimbra@mail ~]$ zmcontrol status
Host mail.zhusl.com
    amavis                  Running
    antispam                Running
    antivirus               Running
    dnscache                Running
    ldap                    Running
    logger                  Running
    mailbox                 Running
    memcached               Running
    mta                     Running
    opendkim                Running
    proxy                   Running
    service webapp          Running
    snmp                    Running
    spell                   Running
    stats                   Running
    zimbra webapp           Running
    zimbraAdmin webapp      Running
    zimlet webapp           Running
    zmconfigd               Running

标签:

4 条留言  访客:4 条  博主:0 条

  1. 广告任务网

    认真拜读中……

  2. 尚爱思笑话

    感觉很不错的样子!

  3. 米表

    随便看看,随便转转!

  4. 蒂欧娜

    风吹过,我来过!

给我留言