安装搭建zimbra邮件服务器(yum搭建,dns搭建)

 

简介:

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

  

Zimbra的核心产品是Zimbra协作套件(Zimbra Collaboration Suite,简称ZCS)。除了它的核心功能是电子邮件和日程安排服务器,当然还包括许多其它的功能,就象是下一代的微软Exchange。在电子邮件和日程安排之外,它还提供文档存储和编辑、即时消息以及一个利用获奖技术开发的全功能的管理控制台。ZCS同时也提供移动设备的支持,以及与部署于WindowsLinuxapple操作系统中的桌面程序的同步功能。

 

 

安装需求及配置环境

                                     Cent os 5.5 纯净版

                                     固定IP192.168.20.98

                                     安装httpd服务

                                     搭建DNS服务器

                                     域名为:xiaolu.com 并解析为mail.xiaolu.com

                                     关闭防火墙

                                     禁用selinux

                                     禁用sendmail

                                     安装gccjavasysstat

                                     安装sudolibidngmpperlsqlite

                                     Zimbra软件包:zcs-7.0.1_GA_3105.RHEL5.20110304210448.tgz

 

一、配置yum,安装配置环境

1)  挂载光盘,记录挂载位置

# mount /dev/cdrom /mnt/cdrom/

2)  修改配置文件。

# vi /etc/yum.repos.d/CentOS-Media.repo

[c5-media]

name=CentOS-$releasever - Media

baseurl=file:///media/CentOS/

        file:///mnt/cdrom/     此处为光盘挂载位置

        file:///media/cdrecorder/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

保存退出

验证是否成功。执行命令yum list 将会列出rpm列表

3)  利用yum安装相应软件

Yum install gcc*

yum install java*

yum install sysstat*

yum install sudo*

yum install gmp*

yum install perl*

yum install sqlite*

4)  安装httpd服务

方法一样,使用yum安装

yum install http*

5)  关闭防火墙

Service iptables stop

Chkconfig iptables off

6)  禁用selinux

# vi /etc/selinux/config

SELINUX=disabled

7)  禁用sendmail

Service sendmail stop

Chkconfig sendmail off

二、安装配置dns服务器

1)  使用yum源安装dns服务器

# yum install bind*

2)  配置dns服务器

# vi /var/named/chroot/etc/named.conf          修改dns主配置文件

        

安装搭建zimbra邮件服务器(dns域名解析)_yum安装

# vi /var/named/chroot/var/named/xiaolu.com.zone   配置解析文件


安装搭建zimbra邮件服务器(dns域名解析)_yum安装_02

# vi /etc/resolv.conf    修改resolv ,添加dns地址

nameserver 192.168.20.98     添加本地解析

3)  修改hosts文件

# vi /etc/hosts

127.0.0.1       localhost.localdomain localhost

::1             localhost6.localdomain6 localhost6

192.168.20.98   mail.xiaolu.com mail

4)  修改主机名

# vi /etc/sysconfig/network

HOSTNAME=mail.xiaolu.com

5)   

三、安装zimbra

1)  解压zimbra源码包

# tar -zxmf zcs-7.0.1_GA_3105.RHEL5.20110304210448.tgz

# mv zcs-7.0.1_GA_3105.RHEL5.20110304210448 zimbra     改名字

2)  执行脚本

# ./install.sh --platform-override

以下为问答交互式:

Operations logged to /tmp/install.log.3668

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

 

Install zimbra-mta [Y]

 

Install zimbra-snmp [Y]

 

Install zimbra-store [Y]

 

Install zimbra-apache [Y]

 

Install zimbra-spell [Y]

 

Install zimbra-memcached [N]

 

Install zimbra-proxy [N]

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

 

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]选择yes  开始安装

The system will be modified.  Continue? [N] y  选择y继续安装

Checking for port conflicts

 

Main menu

 

   1) Common Configuration:

   2) zimbra-ldap:                             Enabled

   3) zimbra-store:                            Enabled

        +Create Admin User:                    yes

        +Admin user to create:                 admin@xiaolu.com

******* +Admin Password                        UNSET

        +Anti-virus quarantine user:           virus-quarantine.u65u6xuf@xiaolu.com

        +Enable automated spam training:       yes

        +Spam training user:                   spam.6da5u3v5v@xiaolu.com

        +Non-spam(Ham) training user:          ham.cs0jug2hzc@xiaolu.com

        +SMTP host:                            mail.xiaolu.com

        +Web server HTTP port:                 80

        +Web server HTTPS port:                443

        +Web server mode:                      http

        +IMAP server port:                     143

        +IMAP server SSL port:                 993

        +POP server port:                      110

        +POP server SSL port:                  995

        +Use spell check server:               yes

        +Spell server URL:                     http://mail.xiaolu.com:7780/aspell.php

        +Configure for use with mail proxy:    FALSE

        +Configure for use with web proxy:     FALSE

        +Enable version update checks:         TRUE

        +Enable version update notifications:  TRUE

        +Version update notification email:    admin@xiaolu.com

        +Version update source email:          admin@xiaolu.com

 

   4) zimbra-mta:                              Enabled

   5) zimbra-snmp:                             Enabled

   6) zimbra-logger:                           Enabled

   7) zimbra-spell:                            Enabled

   8) 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  选择4  输入管理密码

Store configuration

 

   1) Status:                                  Enabled

   2) Create Admin User:                       yes

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

   4) Admin Password                           set

   5) Anti-virus quarantine user:              virus-quarantine.u65u6xuf@xiaolu.com

   6) Enable automated spam training:          yes

   7) Spam training user:                      spam.6da5u3v5v@xiaolu.com

   8) Non-spam(Ham) training user:             ham.cs0jug2hzc@xiaolu.com

   9) SMTP host:                               mail.xiaolu.com

  10) Web server HTTP port:                    80

  11) Web server HTTPS port:                   443

  12) Web server mode:                         http

  13) IMAP server port:                        143

  14) IMAP server SSL port:                    993

  15) POP server port:                         110

  16) POP server SSL port:                     995

  17) Use spell check server:                  yes

  18) Spell server URL:                        http://mail.xiaolu.com:7780/aspell.php

  19) Configure for use with mail proxy:       FALSE

  20) Configure for use with web proxy:        FALSE

  21) Enable version update checks:            TRUE

  22) Enable version update notifications:     TRUE

  23) Version update notification email:       admin@xiaolu.com

  24) Version update source email:             admin@xiaolu.com

 

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) 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  选择a保存

Save configuration data to a file? [Yes]    选择yes开始配置数据文件

You have the option of notifying Zimbra of your installation.

This helps us to track the uptake of the Zimbra Collaboration Suite.

The only information that will be transmitted is:

        The VERSION of zcs installed (7.0.1_GA_3105_CentOS5)

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

 

Notify Zimbra of your installation? [Yes] yes  选择yes

Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=7.0.1_GA_3105_CentOS5&MAIL=admin@xiaolu.com

 

Notification complete

Starting servers...done.

Installing common zimlets...

        com_zimbra_date...done.

        com_zimbra_social...done.

        com_zimbra_srchhighlighter...done.

        com_zimbra_email...done.

        com_zimbra_cert_manager...done.

        com_zimbra_webex...done.

        com_zimbra_adminversioncheck...done.

        com_zimbra_bulkprovision...done.

        com_zimbra_linkedin...done.

        com_zimbra_attachcontacts...done.

        com_zimbra_attachmail...done.

        com_zimbra_url...done.

        com_zimbra_dnd...done.

        com_zimbra_phone...done.

Finished installing common zimlets.

Restarting mailboxd...done.

Setting up zimbra crontab...done.

 

 

Moving /tmp/zmsetup.08012011-134423.log to /opt/zimbra/log

 

 

Configuration complete - press return to exit  到这一步如果没有报错,就完成了!

 

 

3)  访问管理后台,通过域名或IP地址访问,加端口:7071

https://192.168.20.98:7071  管理后台   https://mail.xiaolu.com:7071

http://192.168.20.98   前台页面       http://mail.xiaolu.com

4)  页面展示:


安装搭建zimbra邮件服务器(dns域名解析)_zimbra_03

附件配置为:DNS配置文件。请参阅!