Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1363733
  • 博文数量: 632
  • 博客积分: 2778
  • 博客等级: 大尉
  • 技术积分: 3387
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-31 09:09
个人简介

123

文章分类

全部博文(632)

文章存档

2014年(36)

2013年(33)

2012年(563)

分类:

2012-12-12 12:01:51

原文地址:Zimbra 安装 作者:ehlopxp



wget 


1、一定要按要求关闭所有http、smtp、sql类的服务
2、要严格按照要求编写hosts文件
3、install.sh的过程中,严格按要求存盘脚本执行最后的安装步骤
4、MTA里面的仅限 TLS (传输层加密) 验证必须关了才能认证smtp
5、pop和imap要明文认证,大部分mail client不支持密文认证
6、zimlets要一个个自己安装,好麻烦。。。
7、通过控制skin发布改特定的skin作为模板修改
 


如果域名解析好了,可以不用装NAMED
还要安装sysstat
yum -y install  sysstat

一、当前配置环境

         server:Centos5.6

         zimbra版本:zcs-7.0.1_GA_3105.RHEL5.20110304210448.tgz

         bind版本:bind-9.3.6-4.P1.el5_4.2

二、安装步骤:

1.正常安装操作系统(部署线上系统时根据具体情况进行分区);

2.关闭系统防火墙及selinux;

3.安装bind,(可选择rpm安装也可使用yum安装)

3.1yum安装:

注意事项:

 CENTOS-5下默认没有配置文件模版,还需要安装一个软件包caching-named否则在启动的时候就会提示启动失败.而且安装bind需要如下的包

bind-9.3.3-7.el5.i386.rpm
 bind-chroot-9.3.3-7.el5.i386.rpm
 bind-libs-9.3.3-7.el5.i386.rpm
 bind-utils-9.3.3-7.el5.i386.rpm
 caching-nameserver-9.3.3-7.el5.i386.rpm

 

(2).jpeg

3.2安装caching-named

再启动named服务,提示成功:

3.3修改/etc/named.conf配置文件如下:

 

 

 options {

        directory "/var/named";

        dump-file "/var/named/data/cache_dump.db";

        statistics-file "/var/named/data/named_stats.txt";

 #服务器解析不到的域名到哪个解析服务器查找

       forwarders {202.106.0.20;};

 

 

         // query-source address * port 53;

};

 

//

// a caching only nameserver config

//

controls {

        inet 127.0.0.1 allow { localhost; } keys { rndckey; };

};

 

zone "." IN {

        type hint;

        file "named.ca";

};

 

zone "localdomain" IN {

        type master;

        file "localdomain.zone";

        allow-update { none; };

};

 

zone "localhost" IN {

        type master;

        file "localhost.zone";

        allow-update { none; };

};

 

#xkhouse

zone "xkhouse.com" IN {

        type master;

#记录文件

     file "xkhouse.com.zone";

        allow-update { none; };

};

 

#反向解析

zone "99.1.168.192.in-addr.arpa" IN {

        type master;

        file "99.1.168.192.in-addr.arpa";

        allow-update { none; };

};

 

 

zone "0.0.127.in-addr.arpa" IN {

        type master;

        file "named.local";

        allow-update { none; };

};

 

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {

        type master;

        file "named.ip6.local";

        allow-update { none; };

};

 

zone "255.in-addr.arpa" IN {

        type master;

        file "named.broadcast";

        allow-update { none; };

};

 

zone "0.in-addr.arpa" IN {

        type master;

        file "named.zero";

        allow-update { none; };

};

3.4 /var/named/chroot/var/named/下创建xkhouse.com.zone文件,内容如下:

$TTL    86400
@  IN SOA  mail.xkhouse.com.  admin.xkhouse.com. (

                                     42              ; serial (d. adams)

                                     3H              ; refresh

                                     15M             ; retry

                                     1W              ; expiry

                                     1D )            ; minimum

                IN NS           mail.xkhouse.com.

                IN MX     0     mail.xkhouse.com.

localhost         IN A            127.0.0.1

mail             IN A            192.168.1.99
 www            IN A            192.168.1.98

3.4 /var/named/chroot/var/named/下创建99.1.168.192.in-addr.arpa文件,内容如下:
$TTL    86400
@     IN      SOA     mail.xkhouse.com.  admin.xkhouse.com.  (

                                      1997022700 ; Serial

                                      28800      ; Refresh

                                      14400      ; Retry

                                      3600000    ; Expire

                                      86400 )    ; Minimum

            IN      NS      mail.xkhouse.com.

 

1    IN    PTR    mail.xkhouse.com.

3.5执行命令创建链接:

ln -s /var/named/chroot/var/named/99.1.168.192.in-addr.arpa /var/named/99.1.168.192.in-addr.arpa   

ln -s /var/named/chroot/var/named/xkhouse.com.zone /var/named/xkhouse.com.zone

3.6重新启动named服务,并开机启动.

 

 4.安装zimbra

4.1关闭sendmailsendmail服务

4.2编辑/etc/hosts文件内容如下:

# Do not remove the following line, or various programs
# that require network functionality will fail.
#::1            localhost6.localdomain6 localhost6
127.0.0.1      localhost
192.168.1.99   mail.xkhouse.com mail  

4.3编辑/etc/resolv.conf文件,内容如下:

; generated by /sbin/dhclient-script
search xkhouse.com
nameserver 192.168.1.99
nameserver 202.106.0.20   

 4.4解压缩zimbra

4.5开始安装zimbra:

 

4.6安装过程

Operations logged to /tmp/install.log.24596
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-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-convertd...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:
 

 
 
Press Return to continue
按任意继续。
Checking for prerequisites...
     FOUND: NPTL
     FOUND: sudo-1.6.7p5-30.1.3
     FOUND: libidn-0.5.6-1
     FOUND: fetchmail-6.2.5-6.0.1
     FOUND: gmp-4.1.4-3
     FOUND: compat-libstdc++-296-2.96-132.7.2
     FOUND: compat-libstdc++-33-3.2.3-47.3
     FOUND: libtool-libs-1.5.6-4
     FOUND: /usr/lib/libstdc++.so.5
Checking for suggested prerequisites...
    FOUND: perl-5.8.5
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-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-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
 
The system will be modified.  Continue? [N] y
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
 
 
DNS ERROR resolving MX for mail.xkhouse.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes]     
Create Domain: [mail.xkhouse.com] xkhouse.com
 
Main menu
 
   1) Common Configuration:                                                 
   2) zimbra-ldap:                             Enabled                     
   3) zimbra-store:                            Enabled                     
        +Create Admin User:                    yes                         
        +Admin user to create:                 admin@ xkhouse.com         
+Admin Password                        UNSET                       
        +Enable automated spam training:       yes                         
        +Spam training user:                  

        +Non-spam(Ham) training user:         
  
        +Global Documents Account:            
          
        +SMTP host:                            xkhouse.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:                  

        +Configure store for use with reverse mail proxy: FALSE                       
        +Configure store for use with reverse web proxy: FALSE                       
 
   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
 
设置管理密码
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.32406]
Saving config in /opt/zimbra/config.32406...done.
The system will be modified - continue? [No] y
Operations logged to /tmp/zmsetup.06122009-021025.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.
Saving CA in ldap ...done.
Creating server entry for xkhouse.com...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on xkhouse.com...done.
Adding mail.xkhouse.com to zimbraMailHostPool in default COS...done.
Installing skins...
        steel
        bare
        zmail
        beach
        sand
        bones
        lavender
        hotrod
        yahoo
        waves
        lemongrass
        sky
done.
Setting zimbraFeatureIMEnabled=FALSE...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting zimbraFeatureNotebookEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Creating domain mail.xkhouse.com...done.
Creating user
.
Creating postmaster alias...done.
Creating user
.
Creating user
.
Creating user
.
Setting spam training accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.xkhouse.com...done.
Initializing logger sql database...done.
Initializing mta config...done.
Configuring SNMP...done.
Setting services on mail.xkhouse.com...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 (5.0.16_GA_2921_RHEL4)
        The ADMIN EMAIL ADDRESS created (admin@ xkhouse.com)
 
Notify Zimbra of your installation? [Yes]
Notifying Zimbra of installation via
@ xkhouse.com
 
Notification complete
 
Starting servers...done.
Checking for deprecated zimlets...done.
Installing common zimlets...
        com_zimbra_cert_manager...done.
        com_zimbra_email...done.
        com_zimbra_date...done.
        com_zimbra_bulkprovision...done.
        com_zimbra_phone...done.
        com_zimbra_ymemoticons...done.
        com_zimbra_url...done.
        com_zimbra_local...done.
Finished installing common zimlets.
Initializing Documents...done.
Restarting mailboxd...done.
Setting up zimbra crontab...done.
 
 
Moving /tmp/zmsetup.06122009-021025.log to /opt/zimbra/log
 
 
Configuration complete - press return to exit

4.7登陆测试

本地dns指向DNS服务器,登陆 

 

    












阅读(1227) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~