注册 登录
LinuxTone | 运维专家网论坛 - 最棒的Linux运维与开源架构技术交流社区! 返回首页

iytsse的个人空间 http://bbs.linuxtone.org/?11671 [收藏] [复制] [分享] [RSS]

日志

菜鸟安装zimbra教程

已有 2730 次阅读2012-9-7 10:26 |个人分类:其它| zimbra

菜鸟安装zimbra教程
最近转载了很多乱七八糟linux和Zimbra的文章,有点装逼的嫌疑,说实话着实无奈,为了以后找到有用资料方便就放到自己空间里来了,顺便共享给大家。说到这gai si 的Zimbra,从去年暑假一直折腾折腾,折腾到懒得搞了,寒假抱着必死的决心背水一战,总算把Zimbra安装好了,激动ing。皇天不负有心人啊.....哦,牢骚就到此,为了广大菜鸟方便安装ZImbra,今天我就自己贡献下我原创的无脑版安装,下面我们开始菜鸟安装Zimbra之旅。 o(∩_∩)o

首先,我的linux版本是fedora 11,官网www.zimbra.com有提供zcs(Zimbra Collaboration Suite)安装 这里是地址http://www.zimbra.com/downloads/   当然下载版本是 fedora 11 32位的那个..冰淋(以下自称小冰吧)我之前就是因为版本不同导致安装错误很多,所以版本一定要和自己的linux对上号。^_^

标志下:OS:fedora 11    ZCS :fedora 11 (32位)

好了,接下去是安装操作系统,什么RAID 的别管他,自己分不好就默认安装,再不行就覆盖原来linux系统总之默认就行了,当然选择安装软件时候最好点[现在制定] 把bind那个服务器安装上,这个很重要!找不到的同学可以看我后面怎么安装。安装的时候,计算机名用这个叫“mail”最好用这个,要是后面出问题我可不管哦 - -!

ok~安装过程就这样好了,其他不懂的就默认,别自己乱搞。

好了,现在系统启动了,要建立个新用户,自己取吧,我就叫“webmail”,好,进入linux操作系统了。 :-)

现在呢要做几个事,下载好zcs,安装好bind,这里讲下bind的安装,

放入你的光盘,先打开终端,输入su

[webmail@mail ~]$ su
密码:

输入你root的密码登录root账户成功
[root@mail webmail]#

(好吧,我知道连这都不懂的不是菜鸟,是小白)

打开光盘目录:

[root@mail webmail]# cd /media/Fedora\ 11\ i386\ DVD/Packages/
[root@mail Packages]#

好了让我们搜索下bind在哪里

[root@mail Packages]# find . -name 'bind*'
./bind-9.6.1-0.3.b1.fc11.i586.rpm
./bind-chroot-9.6.1-0.3.b1.fc11.i586.rpm
./bind-libs-9.6.1-0.3.b1.fc11.i586.rpm
./bind-utils-9.6.1-0.3.b1.fc11.i586.rpm
[root@mail Packages]#
啊,看到了 那个第一个就是bind,让我们安装下

[root@mail Packages]# rpm -ivh bind-9.6.1-0.3.b1.fc11.i586.rpm
warning: bind-9.6.1-0.3.b1.fc11.i586.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID d22e77f2
Preparing...                ########################################### [100%]
    package bind-32:9.6.1-0.3.b1.fc11.i586 is already installed
啊,因为小冰已经安装过了,所以他提示package bind-32:9.6.1-0.3.b1.fc11.i586 is already installed

没安装的同学可能会碰到这样的问题,bindxxxxx is needed by bind-9.6.1-0.3.b1.fc11.i586.rpm

这简单,你就搜下这个什么bindxxxxxx然后把它安装上就ok了,这个过程叫解决依赖关系,可能会要装3~4个额外的依赖包

好了bind安装好了,我们看下这个bind服务器是不是再运行了呢。(*^__^*)
[root@mail Packages]# service named restart
停止 named:                                               [确定]
启动 named:                                               [确定]
[root@mail Packages]#
嗯,这个叫named的东西就是我们的bind的名字,其实他是一个DNS守护进程,也就是DNS服务器进程。嘿嘿,小冰我的指导详细吧...有鸟哥的风范....(自恋了)
行,咱们再开始下一步,关闭影响zcs安装的一些进程。
[root@mail Packages]# service iptables stop
iptables:清除防火墙规则:                                 [确定]
iptables:将链设置为政策 ACCEPT:filter                    [确定]
iptables:正在卸载模块:                                   [确定]
[root@mail Packages]# chkconfig iptables off
[root@mail Packages]#
这是关闭linux的防火墙和禁止它开机启动  o(∩_∩)o
[root@mail Packages]# vi /etc/selinux/config
进入vi编辑模式,找到SELINUX=ENFORCE 改成SELINUX=0
如下
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - No SELinux policy is loaded.
SELINUX=0
# SELINUXTYPE= can take one of these two values:
#       targeted - Targeted processes are protected,
#       mls - Multi Level Security protection.
SELINUXTYPE=targeted
输入:wq
保存退出编辑模式,回到终端操作界面。
[root@mail Packages]# setenforce 0
[root@mail Packages]#
上面是为了禁止SELINUX启动和立刻关闭SELINUX(*^__^*)
好了,现在开始就是重点了,接下来就是超级重要的DNS服务器的配置了!
首先是要创建一个域
[root@mail webmail]# vi /etc/named.conf
编辑bind的配置文档如下 加粗的是你要自己输入的,注意标点和关键字别打错了哦!^_^
options {
        listen-on port 53 { 127.0.0.1; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { localhost; };
        forwarders{127.0.0.1;};
        recursion yes;
        dnssec-enable yes;
        dnssec-validation yes;
        dnssec-lookaside . trust-anchor dlv.isc.org.;
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
        type hint;
        file "named.ca";
};
zone "example.com"
{
type master;
file "named.example.com";
};
include "/etc/named.rfc1912.zones";

include "/etc/named.dnssec.keys";
include "/etc/pki/dnssec-keys/dlv/dlv.isc.org.conf";
好了 保存退出vi模式吧。
现在我们已经配置了一个域了^_^
现在我们要给这个域编辑配置文件了
[root@mail webmail]# vi /var/named/named.example.com
新添一个文件再/var/named目录下名字叫named.example.com内容如下:
;
;       Addresses and other host information.
;
@       IN      SOA    mail.example.com. root.mail.example.com. (
                               10118      ; Serial
                               43200      ; Refresh
                               3600       ; Retry
                               3600000    ; Expire
                               2592000 )  ; Minimum
;       Define the nameservers and the mail servers
        IN      NS      mail
        IN      MX      10 mail.example.com.
mail    IN      A       127.0.0.1
好了 保存退出到终端模式^_^
什么?你不懂这什么意思?正常嘛你是菜鸟,想弄懂的话去看看鸟哥私房菜的DNS配置篇吧(*^__^*) ~
好了,一切准本就绪了,现在我们要重启下DNS进程,对,就是刚咱用过的那个命令
[root@mail webmail]# service named restart
停止 named:                                               [确定]
启动 named:                                               [确定]
[root@mail webmail]#
意思就是   named 服务 给我重启,英文看的懂吧?(*^__^*) ...
然后该做什么呢,哦,对了,需要编辑一下hosts配置
[root@mail webmail]# vi /etc/hosts
127.0.0.1       localhost.localdomain   localhost
125.216.250.89  mail.example.com mail
对对,编辑这个/etc/hosts文档,这个很重要哦,125.216.250.89可是小冰在学校里的ip哦,被你发现了(*^__^*)
ok,保存退出
当然,咱们用自己的dns服务器当然要告诉电脑我们不用别人的啦,fedora 11配置很方便,下面来个文图说明o(∩_∩)o
唉算了,还是文字说明吧,空间图片传不了无奈 - -!
桌面左上角的小电脑点右键编辑连接
能上网的鸟儿们肯定会啦^_^
有线里面编辑System eth0
点ipv4设置标签
添加地址:125.216.250.89  子网掩码:255.255.255.0 网关:0.0.0.0
DNS服务器:127.0.0.1 (就是咱们自己啦 o(∩_∩)o哈哈~)
搜索域:example.com(咱们的域啦)
ok,应用退出
然后点左键连上它,现在你可是断网状态咯,可别忘了留住小冰这个页面继续你的安装哦~(*^__^*) ~
下面进入正式安装!!

万事具备只欠东风,把我们下好的zcs-6.0.10_GA_2692.F11.20101215160835.tgz包放在下载文件夹下
点右键解压到此处,ok多了一个zcs-6.0.10_GA_2692.F11.20101215160835文件夹了吧
好的进入这个文件夹
[root@mail 下载]# cd zcs-6.0.10_GA_2692.F11.20101
好了 开始吧!打开安装文件
[root@mail zcs-6.0.10_GA_2692.F11.20101215160835]# ./install.sh
开始了 下面是一大段运行信息从别人那里贴来的,跟咱安装大同小异,可以忽略,重点小冰会给你加粗o(∩_∩)o~

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

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继续安装
emoving /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



zimbra-core......zimbra-core-5.0.16_GA_2921.RHEL4-20090429033149.i386.rpm...done

zimbra-ldap......zimbra-ldap-5.0.16_GA_2921.RHEL4-20090429033149.i386.rpm...done

zimbra-logger......zimbra-logger-5.0.16_GA_2921.RHEL4-20090429033149.i386.rpm...done

zimbra-mta......zimbra-mta-5.0.16_GA_2921.RHEL4-20090429033149.i386.rpm...done

zimbra-snmp......zimbra-snmp-5.0.16_GA_2921.RHEL4-20090429033149.i386.rpm...done

zimbra-store......zimbra-store-5.0.16_GA_2921.RHEL4-20090429033149.i386.rpm...done

zimbra-apache......zimbra-apache-5.0.16_GA_2921.RHEL4-20090429033149.i386.rpm...done

zimbra-spell......zimbra-spell-5.0.16_GA_2921.RHEL4-20090429033149.i386.rpm...done

Operations logged to /tmp/zmsetup.06122009-021025.log

Setting defaults...



DNS ERROR resolving MX for mail.example.com

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

Change domain name? [Yes]      

Create Domain: [mail.example.com] example.com  //这里输入的就是我们的域名,哈哈~

Main menu



   1) Common Configuration:                                                  

   2) zimbra-ldap:                             Enabled                      

   3) zimbra-store:                            Enabled                      

        +Create Admin User:                    yes                          

        +Admin user to create:                 admin@ xxx.com          

+Admin Password                        UNSET                        

        +Enable automated spam training:       yes                          

        +Spam training user:                   spam.wkbgfvpnt@xxx.com

        +Non-spam(Ham) training user:          ham.rerooaxs@xxx.com  

        +Global Documents Account:             wiki@xxx.com          

        +SMTP host:                            xxx.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.xxx.comt:7780/aspell.php

        +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



设置管理密码。然后继续。回车过后,全部安装完成

顺序是按 3-4-123456(密码,你自己设定咯)-r-a

ok安装自动继续

*** CONFIGURATION COMPLETE - press 'a' to apply
ave 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 xxx.com...done.

Saving SSL Certificate in ldap ...done.

Setting spell check URL...done.

Setting service ports on xxx.com...done.

Adding mail.xxx.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.xxx.com...done.

Creating user admin@mail.xxx.com...done.

Creating postmaster alias...done.

Creating user wiki@mail.xxx.com...done.

Creating user spam.wkbgfvpnt@mail.xxx.com...done.

Creating user ham.rerooaxs@mail.xxx.com...done.

Setting spam training accounts...done.

Initializing store sql database...done.

Setting zimbraSmtpHostname for mail.xxx.com...done.

Initializing logger sql database...done.

Initializing mta config...done.

Configuring SNMP...done.

Setting services on mail.xxx.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@ xxx.com)

Notify Zimbra of your installation? [Yes]

Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=5.0.16_GA_2921_RHEL4&MAIL=admin@ xxx.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

呀~ok他说安装成功了,哈哈,激动把...来我们抓紧时间来试试!!

我们打开火狐浏览器输入https://mail.example.com:7071

噫?~怎么被firefox给拦截了,信任它吧,ok打开了

用户名是:admin  密码是:123456(是你刚才设定的咯)

哈哈 能用了吧~恭喜恭喜~

再试试收发邮件吧

先用管理员添加点用户,很简单的啦,菜鸟也会咯 ^_^

输入页面:http://mail.example.com

输入用户名和密码

oh~That's the Zimbra!!  (*^__^*) 嘻嘻~

此文献给和我一样初学linux的鸟儿们~加油~鸟儿们~o(∩_∩)o

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

Archiver|手机版|感谢所有关心和支持过LinuxTone的朋友们 转载本站内容请注明原作者名及出处 ( 京ICP备08103151 )   |

GMT+8, 2019-5-21 05:33 , Processed in 0.010227 second(s), 9 queries , Apc On.

Powered by Discuz! X2 Licensed

© 2001-2011 Comsenz Inc.

回顶部