首页 » 邮件服务器 » Zimbra » 正文

Linux下安装Zimbra 8.5.0 协同办公套件(邮件系统)


开篇介绍,来自互动百科:

Zimbra是一家提供专业的电子邮件软件开发供应商,主要提供ZimbraDesktop邮件管理软件。2007年9月,Zimbra被雅虎收购。雅虎用3.50亿美元收购电子邮件软件提供商Zimbra。Zimbra提供的品牌电子邮件软件包含日历和移动功能以及离线工作功能。这家公司拥有200个教育行业、商业和互联网服务提供商合作伙伴,其中包括Comcast公司。该公司向大约900万用户提供品牌的电子邮件服务

Zimbra与众不同的特点是其“Zimlet“网络服务提供了更多的电子邮件功能。例如,人们可以简单地用鼠标点击电子邮件程序中的航班信息以检查航班的状况。用户还可以在电子邮件中跟踪FedEx公司的投递情况并且获得地图、股票和其它信息。

ZIMBRA公司目前通过自己的开放平台向用户提供电邮、日程管理程序和联系人管理工具。

Zimbra开放平台可让用户定制功能并将自己与其他网络服务连接起来。通过较低价格和更灵活的服务方式,Zimbra从微软上海Exchange电邮平台手中夺得了客户。

Zimbra与众不同的特点是其“Zimlet”网络服务提供了更多的电子邮件功能。例如,人们可以简单地用鼠标点击电子邮件程序中的航班信息以检查航班的状况。用户还可以在电子邮件中跟踪FedEx公司的投递情况并且获得地图、股票和其它信息。   Zimbra的核心产品是Zimbra协作套件(Zimbra Collaboration Suite,简称ZCS)。除了它的核心功能是电子邮件和日程安排服务器,当然还包括许多其它的功能,就象是下一代的微软Exchange。在电子邮件和日程安排之外,它还提供文档存储和编辑、即时消息以及一个利用获奖技术开发的全功能的管理控制台。ZCS同时也提供移动设备的支持,以及与部署于Windows、Linux或apple操作系统中的桌面程序的同步功能。

核心功能

电子邮件服务

它打破传统电子邮件的限制,提供集成的信息和协作办公,以提高工作效率,通过自动整理的邮箱、标签以及对话视图,zimbra让电子邮件易于管理,提供即时信息、共享日历以及快捷的文档创作和协作功能,改变由他人协作的方式,使用zimbra可以在任何地点从任意计算机访问自己的账户,而无论使用的是windows、apple还是linux操作系统,zimbra还可以与blackberry、iphone等手持设备同步,即使在路上也能时刻掌握最新资讯,zimbra可以作为个人电子邮件操作系统,也可以用于整个组织。既可以本地部署,也可以部署在托管服务器上。

电子邮件具体功能

1、收件箱、邮件、搜索(inbox, mail&search) 功能图示(8张)  

2、插件(mashups)   

3、日历(calendar)   

4、文档协作(document collaboration)   

5、即时消息、任务、公文包(im,task,briefcase)   

6、zimbra桌面(zimbra desktop)   

7、与outlook或apple同步(outlook&apple sync)   

8、移动访问(zimbra mobile)Zimbra协作套件(Zimbra Collaboration Suite) 

版本

ZCS共有三个版本可供选择:

ZCS开源版(免费)   ZCS 网络版(Network Edition)   ZCS 租用版,由合作伙伴提供 


安装如下:

系统环境:CentOS 6.5 x86_64

Zimbra版本:zimbra 8.5.0


1.zimbra官网:http://www.zimbra.com/ 进入官网下载开源版本,

我此时下载的为http://files2.zimbra.com/downloads/8.5.0_GA/zcs-8.5.0_GA_3042.RHEL6_64.20140828192005.tgz

2.zimbra不支持32位系统安装,请使用64为系统;

3.zimbra在安装时要检测MX,所以要在之前配置好dns MX解析;

4.安装会安装到/opt目录,请确保/opt目录由足够空间


安装前:

1.关闭selinux,编辑/etc/selinux/config 

SELINUX=disabled


2.开放防火墙端口,编辑/etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 7071 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8087 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8443 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 110 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 143 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 993 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 995 -j ACCEPT



3.配置主机名,编辑/etc/sysconfig/network

HOSTNAME=mail.domain.com


4.配置hosts,编辑/etc/hosts

10.172.250.121 mail.domain.com


5.关闭sendmail或postfix服务,避免25端口被占用

/etc/init.d/sendmail stop

chkconfig sendmail off

/etc/init.d/postfix stop

chkconfig postfix off


6.重启服务器,确保所有配置生效

# reboot


开始安装:

一、安装dnsmasq

1.安装dnsmasq

# yum install dnsmasq bind-utils


2.配置dnsmasq

# cp /etc/dnsmasq.conf /etc/dnsmasq.conf.bak


添加以下到/etc/dnsmasq.conf

no-resolv

server=127.0.0.1

domain=domain.com

mx-host=domain.com,mail.domain.com,5


添加以下到/etc/resolv.conf

nameserver 127.0.0.1


启动dnsmasq

# /etc/init.d/dnsmasq start


测试:

[root@mail ~]# dig domian.com MX


; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1 <<>> domain.com MX

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38013

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1


;; QUESTION SECTION:

;domain.com.                     IN      MX


;; ANSWER SECTION:

domain.com.              0       IN      MX      5 mail.domain.com.


;; ADDITIONAL SECTION:

mail.domain.com.         0       IN      A       10.172.250.121


;; Query time: 0 msec

;; SERVER: 127.0.0.1#53(127.0.0.1)

;; WHEN: Wed Oct 22 14:20:02 2014

;; MSG SIZE  rcvd: 73


[root@mail ~]# 


测试成功。


二、安装zimbra

1.解压

# tar -zxvf zcs-8.5.0_GA_3042.RHEL6_64.20140828192005.tgz

# cd zcs-8.5.0_GA_3042.RHEL6_64.20140828192005


2.运行安装脚本

# ./install.sh 


到此处填写y,继续

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


到下面发现少包:

Checking for prerequisites...

     FOUND: NPTL

     MISSING: nc

     FOUND: sudo-1.8.6p3-12

     FOUND: libidn-1.18-2

     FOUND: gmp-4.3.1-7

     FOUND: libaio-0.3.107-10

     FOUND: libstdc++-4.4.7-4

     FOUND: unzip-6.0-1


Checking for suggested prerequisites...

     FOUND: perl-5.10.1

     FOUND: sysstat

     FOUND: sqlite


###ERROR###


One or more prerequisite packages are missing.

Please install them before running this installer.


Installation cancelled.


安装缺失的包nc:# yum -y install nc


再次运行安装脚本,安装日志如下:

[root@mail zcs-8.5.0_GA_3042.RHEL6_64.20140828192005]# ./install.sh 


Operations logged to /tmp/install.log.28012

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-12

     FOUND: libidn-1.18-2

     FOUND: gmp-4.3.1-7

     FOUND: libaio-0.3.107-10

     FOUND: libstdc++-4.4.7-4

     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] 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/prelink.conf...done.

Cleaning up /etc/security/limits.conf...done.


Finished removing Zimbra Collaboration Server.


Installing packages


    zimbra-core......zimbra-core-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-ldap......zimbra-ldap-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-logger......zimbra-logger-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-mta......zimbra-mta-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-dnscache......zimbra-dnscache-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-snmp......zimbra-snmp-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-store......zimbra-store-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-apache......zimbra-apache-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-spell......zimbra-spell-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-memcached......zimbra-memcached-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

    zimbra-proxy......zimbra-proxy-8.5.0_GA_3042.RHEL6_64-20140828192005.x86_64.rpm...done

Operations logged to /tmp/zmsetup10222014-145244.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



DNS ERROR resolving MX for mail.domain.com

It is suggested that the domain name have an MX record configured in DNS

Change domain name? [Yes] yes

Create domain: [mail.domain.com] domain.com

        MX: mail.domain.com (10.172.250.121)


        Interface: 10.172.250.121

        Interface: 127.0.0.1

done.

Checking for port conflicts

Port conflict detected: 53 (zimbra-dnscache)

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-dnscache:                         Enabled                       

   6) zimbra-snmp:                             Enabled                       

   7) zimbra-store:                            Enabled                       

        +Create Admin User:                    yes                           

        +Admin user to create:                 admin@domain.com               

******* +Admin Password                        UNSET                         

        +Anti-virus quarantine user:           virus-quarantine.oubc28u8@domain.com

        +Enable automated spam training:       yes                           

        +Spam training user:                   spam.bhvuzvy91@domain.com      

        +Non-spam(Ham) training user:          ham.kj839rhlb@domain.com       

        +SMTP host:                            mail.domain.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://mail.domain.com:7780/aspell.php

        +Enable version update checks:         TRUE                          

        +Enable version update notifications:  TRUE                          

        +Version update notification email:    admin@domain.com               

        +Version update source email:          admin@domain.com               

        +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



Store configuration


   1) Status:                                  Enabled                       

   2) Create Admin User:                       yes                           

   3) Admin user to create:                    admin@domain.com               

** 4) Admin Password                           UNSET                         

   5) Anti-virus quarantine user:              virus-quarantine.oubc28u8@domain.com

   6) Enable automated spam training:          yes                           

   7) Spam training user:                      spam.bhvuzvy91@domain.com      

   8) Non-spam(Ham) training user:             ham.kj839rhlb@domain.com       

   9) SMTP host:                               mail.domain.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://mail.domain.com:7780/aspell.php

  19) Enable version update checks:            TRUE                          

  20) Enable version update notifications:     TRUE                          

  21) Version update notification email:       admin@domain.com               

  22) Version update source email:             admin@domain.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@domain.com (min 6 characters): [yJVm9XbfhU] yJVm9XbfhU


Store configuration


   1) Status:                                  Enabled                       

   2) Create Admin User:                       yes                           

   3) Admin user to create:                    admin@domain.com               

   4) Admin Password                           set                           

   5) Anti-virus quarantine user:              virus-quarantine.oubc28u8@domain.com

   6) Enable automated spam training:          yes                           

   7) Spam training user:                      spam.bhvuzvy91@domain.com      

   8) Non-spam(Ham) training user:             ham.kj839rhlb@domain.com       

   9) SMTP host:                               mail.domain.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://mail.domain.com:7780/aspell.php

  19) Enable version update checks:            TRUE                          

  20) Enable version update notifications:     TRUE                          

  21) Version update notification email:       admin@domain.com               

  22) Version update source email:             admin@domain.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-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

Save configuration data to a file? [Yes] yes

Save config in file: [/opt/zimbra/config.5533] 

Saving config in /opt/zimbra/config.5533...done.

The system will be modified - continue? [No] yes

Operations logged to /tmp/zmsetup10222014-145244.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.domain.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 mail.domain.com...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 mail.domain.com...done.

Adding mail.domain.com to zimbraMailHostPool in default COS...done.

Creating domain domain.com...done.

Setting default domain name...done.

Creating domain domain.com...already exists.

Creating admin account admin@domain.com...done.

Creating root alias...done.

Creating postmaster alias...done.

Creating user spam.bhvuzvy91@domain.com...done.

Creating user ham.kj839rhlb@domain.com...done.

Creating user virus-quarantine.oubc28u8@domain.com...done.

Setting spam training and Anti-virus quarantine accounts...done.

Initializing store sql database...done.

Setting zimbraSmtpHostname for mail.domain.com...done.

Configuring SNMP...done.

Setting up syslog.conf...done.

Starting servers...done.

Installing common zimlets...

        com_zimbra_webex...done.

        com_zimbra_phone...done.

        com_zimbra_ymemoticons...done.

        com_zimbra_attachcontacts...done.

        com_zimbra_clientuploader...done.

        com_zimbra_linkedinimage...done.

        com_zimbra_proxy_config...done.

        com_zimbra_tooltip...done.

        com_zimbra_viewmail...done.

        com_zimbra_attachmail...done.

        com_zimbra_mailarchive...done.

        com_zimbra_adminversioncheck...done.

        com_zimbra_cert_manager...done.

        com_zimbra_date...done.

        com_zimbra_bulkprovision...done.

        com_zimbra_url...done.

        com_zimbra_email...done.

        com_zimbra_srchhighlighter...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.0_GA_3042_RHEL6_64)

        The ADMIN EMAIL ADDRESS created (admin@domain.com)


Notify Zimbra of your installation? [Yes] yes

Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.5.0_GA_3042_RHEL6_64&MAIL=admin@domain.com


ERROR: Notification failed 

Setting up zimbra crontab...done.



Moving /tmp/zmsetup10222014-145244.log to /opt/zimbra/log



Configuration complete - press return to exit 



[root@mail zcs-8.5.0_GA_3042.RHEL6_64.20140828192005]# 


装完后访问地址为:https://mail.domain.com

管理地址为:https://mail.domain.com:7071/zimbraAdmin/



基本管理:

启动,停止,重启,状态:

# su - zimbra

$ zmcontrol start

$ zmcontrol stop

$ zmcontrol restart

$ zmcontrol status



发表评论

验证码加载中....