CentOS 5.8 Zimbra邮件系统安装与配置

CentOS 5.8 Zimbra邮件系统安装与配置

时间 2013-01-02 19:30:25  运维工作奋斗-51CTO技术博客 

  一、 系统环境

拓朴图:

CentOS 5.8 Zimbra邮件系统安装与配置

 

系     

域    名 

服务器 

客户端 

CentOS 5.8_64bit 

mail.zimbra.org

10.10.10.254 

10.10.10.110 

二、基本配置

1 、配置 IP

[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

BOOTPROTO=static

IPADDR=10.10.10.254

NETMASK=255.255.255.0

:wq

[root@localhost ~]# service network restart

2 、配置 DNS 文件

[root@localhost ~]# vim /etc/resolv.conf

nameserver 10.10.10.254

3 、配置 hosts 文件

[root@localhost ~]# vim /etc/hosts

127.0.0.1       localhost.localdomain localhost

10.10.10.254    mail.zimbra.org

4 、配置主机名: mail.zimbra.org

[root@localhost ~]# vim /etc/sysconfig/network

HOSTNAME=mail.zimbra.org

:wq   保存

[root@localhost ~]# hostname mail.zimbra.org

断开终端,再次连接,这样就需要重新启动系统: ctrl+d

[root@mail ~]# hostname

mail.zimbra.org

5  SELinux 关闭、 LINUX 关闭防火墙

SELinux 关闭

1. 永久方法      需要重启服务器

修改 /etc/selinux/config 文件中设置 SELINUX=disabled  ,然后重启服务器。

2. 临时方法      设置系统参数

使用命令 setenforce 0

LINUX 关闭防火墙

1. 重启后永久性生效:

开启: chkconfig iptables on

关闭: chkconfig iptables off

2 . 即时生效,重启后失效:

开启: service iptables start

关闭: service iptables stop

 

三、安装所需依赖 rpm 

[root@mail ~]# yum install libtool-ltdl compat-libstdc++-33 sysstat

四、安装 bind(DNS)

[root@mail ~]# yum install bind-libs ypbind bind-chroot bind bind-utils caching-nameserver

1 、配置 named 文件

[root@mail ~]# cd /var/named/chroot/etc/

[root@mail etc]# cp -p named.caching-nameserver.conf named.conf

[root@mail etc]# cp named.conf named.confbak

[root@mail etc]# vim named.conf

修改:

行数

 15         listen-on port 53 {  any ; };

 27         allow-query     {  any ; };

 28         allow-query-cache {  any ; };

 37         match-clients      {  any ; };

 38         match-destinations {  any ; };

:wq

[root@Zmail etc]# cp named.rfc1912.zones named.rfc1912.zonesbak

[root@mail etc]# vim named.rfc1912.zones

复制修改以下内容:

 21 zone “localhost” IN {

 22         type master;

 23         file “localhost.zone”;

 24         allow-update { none; };

 25 };

  修改如下:

 27 zone ” zimbra.org ” IN {

 28         type master;

 29         file ” zimbra.org.zone “;

 30         allow-update { none; };

 31 };

:wq

2 、进入 named 目录

[root@mail etc]# cd ../var/named/

[root@mail named]# pwd

/var/named/chroot/var/named

3 、创建 zone 文件

[root@mail named]# cp -p localhost.zone zimbra.org.zone

[root@mail named]# cp zimbra.org.zone zimbra.org.zonebak

[root@mail named]# vim zimbra.org.zone

$TTL    86400

@               IN SOA   mx.zimbra.org.        root (

                                        42              ; serial (d. adams)

                                        3H              ; refresh

                                        15M             ; retry

                                        1W              ; expiry

                                        1D )            ; minimum

@               IN NS           mx.zimbra.org.

@               IN A            10.10.10.254

mx              IN A            10.10.10.254

mail            IN A            10.10.10.254

@               IN MX 10        mail

:wq

4 、测试 DNS

[root@mail named]# nslookup

 set type=mx

 zimbra.org

Server:         202.96.128.166

Address:        202.96.128.166#53

Non-authoritative answer:

zimbra.org      mail exchanger = 10 net109.nonsolocomputer.net.

Authoritative answers can be found from:

zimbra.org      nameserver = ns2.dominiofaidate.com.

zimbra.org      nameserver = ns1.dominiofaidate.com.

5 、启动 named

[root@mail named]# service named restart

[root@Zimail named]# chkconfig named on

五、关闭 sendmail, 并不随机启动或者卸载

[root@mail named]# service sendmail stop

[root@mail named]# chkconfig sendmail off

六、安装 zimbra

下载: http://files.zimbra.com/downloads/7.1.3_GA/zcs-7.1.3_GA_3346.RHEL5_64.20110928134520.tgz

[root@mail ~]# tar -zxvf zcs-7.1.3_GA_3346.RHEL5_64.20110928134520.tgz -C /usr/local/src/

[root@mail ~]# cd /usr/local/src/

[root@mail src]# cd zcs-7.1.3_GA_3346.RHEL5_64.20110928134520/

[root@mail zcs-7.1.3_GA_3346.RHEL5_64.20110928134520]# ./install.sh –platform-override

Operations logged to /tmp/install.log.29062

Checking for existing installation…

    zimbra-ldap…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 zimbra-proxy

Select the packages to install

Install zimbra-ldap [Y]  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]  n

Checking required space for zimbra-core

checking space for zimbra-store

Installing:

    zimbra-core

     。。。。。。。。(略)

    zimbra-spell

    zimbra-memcached

You appear to be installing packages on a platform different

than the platform for which they were built.

This platform is CentOS5_64

Packages found: RHEL5_64

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.

。。。。。。。。(略) .

Finished removing Zimbra Collaboration Suite.

Installing packages

    zimbra-core……zimbra-core-7.1.3_GA_3346.RHEL5_64-20110928134520.x86_64.rpm…done

    。。。。。。。。(略)

Operations logged to /tmp/zmsetup.01022013-145607.log

Installing LDAP configuration database…done.

Setting defaults…

 

DNS ERROR resolving MX for mail.zimbra.org

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

Change domain name? [Yes]  y

Create domain: [mail.zimbra.org]  zimbra.org     # 设置域名

        MX: mail.zimbra.org (10.10.10.254)

        Interface: 10.10.10.254

        Interface: 127.0.0.1

done.

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@zimbra.org             

******* +Admin Password                      UNSET                         

        +Anti-virus quarantine user:           virus-quarantine.kqhru87ko@zimbra.org

        +Enable automated spam training:       yes                          

        +Spam training user:                   spam.0yxtjbeb@zimbra.org     

        +Non-spam(Ham) training user:          ham.gl0urd64@zimbra.org      

        +SMTP host:                          mail.zimbra.org              

        +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.zimbra.org: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@zimbra.org             

        +Version update source email:            admin@zimbra.org              

   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   # 设置网页管理端 admin 的登录密码

Store configuration

   1) Status:                              Enabled                      

   2) Create Admin User:                    yes                          

   3) Admin user to create:                   admin@zimbra.org             

** 4) Admin Password                       UNSET                        

   5) Anti-virus quarantine user:              virus-quarantine.kqhru87ko@zimbra.org

   6) Enable automated spam training:          yes                           

   7) Spam training user:                      spam.0yxtjbeb@zimbra.org     

   8) Non-spam(Ham) training user:             ham.gl0urd64@zimbra.org      

   9) SMTP host:                            mail.zimbra.org              

  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.zimbra.org: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@zimbra.org             

  24) Version update source email:             admin@zimbra.org              

Select, or ‘r’ for previous menu [r]  4     # 设置后台管理密码

Password for admin@zimbra.org (min 6 characters): [9XL2caGG]  123456   # 密码为:123456

Store configuration

   1) Status:                               Enabled                      

   2) Create Admin User:                     yes                          

   3) Admin user to create:                   admin@zimbra.org             

   4) Admin Password                       set                          

   5) Anti-virus quarantine user:              virus-quarantine.kqhru87ko@zimbra.org

   6) Enable automated spam training:          yes                          

   7) Spam training user:                      spam.0yxtjbeb@zimbra.org     

   8) Non-spam(Ham) training user:             ham.gl0urd64@zimbra.org      

   9) SMTP host:                               mail.zimbra.org              

  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.zimbra.org: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@zimbra.org             

  24) Version update source email:             admin@zimbra.org             

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

Save config in file: [/opt/zimbra/config.4354]  y

Saving config in y…done.

The system will be modified – continue? [No]  y

Operations logged to /tmp/zmsetup.01022013-145607.log

Setting local config values…done.

。。。。。。。。(略)

Checking for default IM conference room…not present.

Initializing default IM conference room…done.

Setting up syslog.conf…done.

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.1.3_GA_3346_CentOS5_64)

        The ADMIN EMAIL ADDRESS created (admin@zimbra.org)

Notify Zimbra of your installation? [Yes]  no

Notification skipped

Starting servers…done.

Installing common zimlets…

        com_zimbra_attachcontacts…done.

         。。。。。。。。(略)

Setting up zimbra crontab…done.

Moving /tmp/zmsetup.01022013-145607.log to /opt/zimbra/log

Configuration complete – press return to exit

安装完成,按任意键退出。 

七、验证

1 、登录后台管理

https://mail.zimbra.org:7071  邮件后台管理  ( 帐户: admin ,密码: 123456 (安装时的设置) )

CentOS 5.8 Zimbra邮件系统安装与配置

服务正常启动:

CentOS 5.8 Zimbra邮件系统安装与配置

2 、创建用户

地址 —– 新建:帐户

CentOS 5.8 Zimbra邮件系统安装与配置

CentOS 5.8 Zimbra邮件系统安装与配置

CentOS 5.8 Zimbra邮件系统安装与配置

下一步 (略)

CentOS 5.8 Zimbra邮件系统安装与配置

CentOS 5.8 Zimbra邮件系统安装与配置

CentOS 5.8 Zimbra邮件系统安装与配置

完成。

3 、登录客户端

http://mail.zimbra.org  

在上面的管理界面我建立了一个名字为 yanghw 的邮箱账号,用这个账号登录邮箱客户端:

CentOS 5.8 Zimbra邮件系统安装与配置

之前 yanghw 的账号给 user1 发了一份邮件:

CentOS 5.8 Zimbra邮件系统安装与配置

User1 收到来自 yanghw 的邮件:表明收发邮件成功!

CentOS 5.8 Zimbra邮件系统安装与配置

zimbra 邮件系统搭建完成!!!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/100450.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Laravel-admin之Driver [] is not supported

    Laravel-admin之Driver [] is not supported

    2021年10月30日
    42
  • 菜鸟的数学建模之路(一):最短路径算法「建议收藏」

    菜鸟的数学建模之路(一):最短路径算法「建议收藏」最短路径算法主要有两种,Dijkstra算法和floyd算法,当时在学习这两种算法时经常弄混了,关于这两种算法,记得当时是在交警平台设置的那一道题目上了解到的,就去查很多资料,花了不少时间才基本了解了这两种算法的基本用法,在总结的时候,我更多的是用代码的方式去做的总结,当时想的是等到要用的时候,直接改一下数据,运行代码,得到想要的最短路径就可以了。记得我们老师说过数学建模的知识没必要过于深入的去学…

    2022年6月4日
    160
  • windows如何在局域网下共享文件(传输文件、修改文件)

    windows如何在局域网下共享文件(传输文件、修改文件)前些天在了解Git版本控制的时候,看到了“局域网下可以共享文件(阅读or修改)”。发现自己之前都没了解过这个,虽然用着GitHub却对其来源的变化不甚了解。于是就动手操作了一下windows如何在局域网下共享文件。对,还有一些局域网下的传输软件。但我还没有去了解,所以在这里先不说了。什么是局域网局域网(LocalAreaNetwork,LAN),又称内网。指覆盖局部区域(如办公室…

    2022年5月4日
    208
  • SSM框架下一个简单的模糊查询(超级详细)

    SSM框架下一个简单的模糊查询(超级详细)引言:模糊查询作为后台常用的一种查询方式,我们可以根据相应的关键字对其检索,从而获得所需要的记录,本次模糊查询我们通过名字的任何一个字段进行匹配查询。另外声明,源码就是以下的部分,直接复制就可以使用了。此外,想要模糊查询,最好学会分页查询,分页查询我用了两种方法,一种是利用的pageHelper,另一种没用到插件.需要源码的,或者demo,在我的资源下载,需要远程帮忙的可以加我QQ…

    2022年5月30日
    77
  • wps安装vba插件_wps安装vba支持库

    wps安装vba插件_wps安装vba支持库今后要使用excel中的VBA宏,但是一点开EXCEL显示:在WPS中宏需要VBA支持库,在大佬的帮助下,成功解决该问题,在此奉上大佬的解决问题的链接:https://blog.csdn.net

    2022年8月4日
    12
  • 单模光纤和多模光纤的型号_什么叫单模光纤和多模光纤

    单模光纤和多模光纤的型号_什么叫单模光纤和多模光纤多模光纤概念多模光纤是在给定的工作波长上传输多种模式的光纤,当光纤的几何尺寸远远大于光波波长时,光纤中会存在着几十种乃至几百种传播模式。不同的传播模式具有不同的传播速度与相位,导致长距离的传输之后会产生时延、光脉冲变宽。因此会使多模光纤的带宽变窄,降低了其传输容量,故多模光纤仅适用于较小容量的光纤通信。单模光纤概念一般v小于2.405时,光纤中就只有一个波峰通过,故称为单模光纤,它的芯子很细,约为8一10微米,模式色散很小。影响光纤传输带宽度的主要因素是各种色散,单模光纤的色散小,故能把光以很宽

    2022年10月20日
    4

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号