Zimbra的核心产品是Zimbra协作套件(Zimbra Collaboration Suite,简称ZCS)。

系统:Centos7
ip地址:192.168.127.131

安装前准备

1.关闭SELINUX并清空iptable规则

sed -i 's/SELINUX=enforcing/SELINUX=permissive/'
/etc/sysconfig/selinux

yum -y install iptables-services

iptables -F

iptables -X

iptables -Z

service iptables save

reboot

2.配置主机名

hostnamectl set-hostname mail.zimbra.com

echo "192.168.127.132  mail.zimbra.com">> /etc/hosts

3.安装zimbra所需要的包和库

yum -y update && yum –y install java

yum -y install perl perl-core nmap sudo libidn gmp
libaio libstdc++ unzip sysstat sqlite nc

4.关闭安装的MTA服务

systemctl stop postfix.service

systemctl disable postfix.service

配置dns服务器

1.安装bind

yum -y install bind bind-utils

2.修改主配置文件

vi /etc/named.conf

添加下面的配置:

zone "zimbra.com" IN {

type master;

file "zimbra.com";

allow-update { none;
};

};

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

type master;

file
"192.168.127.arpa";

allow-update { none;
};

};

2.配置区域配置文件

vi /var/named/zimbra.com

$TTL 1D

@  IN
SOA  @ rname.invalid. (

0       ;
serial

1D      ;
refresh

1H      ;
retry

1W      ;
expire

3H )    ; minimum

NS      ns.zimbra.com.

MX 10   mail.zimbra.com.

nsA       192.168.127.132

mail       A       192.168.127.132

# vim
/var/named/192.168.127.arpa

$TTL 1D

@       IN
SOA  @ rname.invalid. (

0       ;
serial

1D      ; refresh

1H      ; retry

1W      ;
expire

3H )    ; minimum

NS      ns.zimbra.com.

109     PTR     ns.zimbra.com.

109     PTR     mail.zimbra.com.

3.重启pc
和重启bind

systemctl restart named.service

4.使用本地dns服务器

echo "nameserver 127.0.0.1" >>
/etc/resolv.conf

reboot

systemctl status named.service

安装zimbra

1.下载zimbra

wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

2.解压压缩包并修改文件夹名,运行脚本开始安装zimbra

tar -zxvf
zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

mv zcs-8.6.0_GA_1153.RHEL7_64.20141215151110
zimbra

cd /root/zimbra

./install.sh --platform-override

*******************************************************************************

*******************************************************************************

Operations logged to /tmp/install.log.2744

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-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:
nmap-ncat-6.40-7

FOUND:
sudo-1.8.6p7-17

FOUND:
libidn-1.28-4

FOUND:
gmp-6.0.0-12

FOUND:
libaio-0.3.109-13

FOUND:
libstdc++-4.8.5-4

FOUND:
unzip-6.0-15

FOUND:
perl-core-5.16.3-286

Checking for suggested prerequisites...

FOUND:
perl-5.16.3

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-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/logrotate.d/zimbra...done.

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

Finished removing Zimbra Collaboration
Server.

Installing packages

zimbra-core......zimbra-core-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done

zimbra-ldap......zimbra-ldap-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done

zimbra-logger......zimbra-logger-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done

zimbra-mta......zimbra-mta-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done

zimbra-snmp......zimbra-snmp-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done

zimbra-store......zimbra-store-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done

zimbra-apache......zimbra-apache-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done

zimbra-spell......zimbra-spell-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done

zimbra-memcached......zimbra-memcached-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done

zimbra-proxy......zimbra-proxy-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done

Operations logged to
/tmp/zmsetup04082016-205457.log

Installing LDAP configuration
database...done.

Setting defaults...

DNS ERROR resolving MX for mail.zimbra.com

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

Change domain name? [Yes] y

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

MX:
mail.zimbra.com(192.168.127.132)

Interface: 127.0.0.1

Interface: ::1

Interface:
192.168.127.132

done.

Checking for port conflicts

Main menu

1) Common Configuration:

2) zimbra-ldap:                             Enabled

3) zimbra-logger:                           Enabled

4) zimbra-mta:                              Enabled

5) zimbra-snmp:                             Enabled

6) zimbra-store:                            Enabled

+Create Admin User:                    yes

+Admin user to create:                 admin@zimbra.com

******* +Admin Password                        UNSET

+Anti-virus quarantine user:           virus-quarantine.vhwa2pqsa7@zimbra.com

+Enable automated spam
training:       yeyess

+Spam training user:                   spam.jqlkpspj@zimbra.com

+Non-spam(Ham) training
user:          ham.jztdgrii_b@zimbra.com

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

+Enable version update
checks:         TRUE

+Enable version update
notifications:  TRUE

+Version update notification
email:    admin@zimbra.com

+Version update source
email:          admin@zimbra.com

+Install mailstore (service
webapp):   yes

+Install UI (zimbra,zimbraAdmin
webapps): yes

7)
zimbra-spell:                            Enabled

8) zimbra-proxy:                            Enabled

9) Default Class of Service
Configuration:

s) Save config to
file

x) Expand menu

q) Quit

Address unconfigured (**) items  (? - help) 6

Store configuration

1) Status:                                  Enabled

2) Create Admin User:                       yes

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

** 4) Admin Password                           UNSET

5) Anti-virus quarantine
user:              virus-quarantine.vhwa2pqsa7@zimbra.com

6) Enable automated spam
training:          yes

7) Spam training user:                      spam.jqlkpspj@zimbra.com

8) Non-spam(Ham) training
user:             ham.jztdgrii_b@zimbra.com

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

19) Enable version update
checks:            TRUE

20) Enable version update
notifications:     TRUE

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

22) Version update source
email:             admin@zimbra.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@zimbsera.com (min 6 characters): [5okG5xTdX]
123456

Store configuration

1) Status:                                  Enabled

2) Create Admin User:                       yes

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

4) Admin Password                           set

5) Anti-virus quarantine
user:              virus-quarantine.vhwa2pqsa7@zimbra.com

6) Enable automated spam
training:          yes

7) Spam training user:                      spam.jqlkpspj@zimbra.com

8) Non-spam(Ham) training
user:             ham.jztdgrii_b@zimbra.com

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

19) Enable version update
checks:            TRUE

20) Enable version update
notifications:     TRUE

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

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

6) zimbra-store:                            Enabled

7) zimbra-spell:                            Enabled

8) zimbra-proxy:                            Enabled

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

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

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

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

Operations logged to
/tmp/zmsetup04082016-205457.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.zimbra.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.zimbra.com...done.

Setting
zimbraFeatureTasksEnabled=TRUE...done.

Setting
zimbraFeatureBriefcasesEnabled=TRUE...done.

Setting TimeZone Preference...done.

Initializing mta config...done.

Setting services on
mail.zimbra.com...done.

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

Creating domain zimbra.com...done.

Setting default domain name...done.

Creating domain zimbra.com...already
exists.

Creating admin account
admin@zimbra.com...done.

Creating root alias...done.

Creating postmaster alias...done.

Creating user
spam.jqlkpspj@zimbra.com...done.

Creating user
ham.jztdgrii_b@zimbra.com...done.

Creating user
virus-quarantine.vhwa2pqsa7@zimbra.com...done.

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

Initializing store sql database...done.

Setting zimbraSmtpHostname for
mail.zimbra.com...done.

Configuring SNMP...done.

Setting up syslog.conf...done.

Starting servers...done.

Installing common zimlets...

com_zimbra_adminversioncheck...done.

com_zimbra_attachcontacts...done.

com_zimbra_attachmail...done.

com_zimbra_bulkprovision...done.

com_zimbra_cert_manager...done.

com_zimbra_clientuploader...done.

com_zimbra_date...done.

com_zimbra_email...done.

com_zimbra_mailarchive...done.

com_zimbra_phone...done.

com_zimbra_proxy_config...done.

com_zimbra_srchhighlighter...done.

com_zimbra_tooltip...done.

com_zimbra_url...done.

com_zimbra_viewmail...done.

com_zimbra_webex...done.

com_zimbra_ymemoticons...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.6.0_GA_1153_RHEL7_64)

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

Notify Zimbra of your installation? [Yes] n

Notification skipped

Setting up zimbra crontab...done.

Moving /tmp/zmsetup04082016-205457.log to
/opt/zimbra/log

Configuration complete -press return to
exit

4.启动zimbra并查看状态

su - zimbra        //切换到zimbra用户

zmcontrol start    //启动zimbra

zmcontrol status   //查看启动状态

5.访问zimbra管理页面,在浏览器输入:https://192.168.127.132:7071

用户邮箱界面:

关键:

1.防火墙 disable,stop
systemctl disable firewalld
systemctl stop firewalld

vi /etc/sysconfig/iptables

Add the following

-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 53 -j ACCEPT

-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 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 443 -j ACCEPT

-A INPUT -m state –state NEW -m tcp -p tcp –dport 389 -j ACCEPT

-A INPUT -m state –state NEW -m tcp -p tcp –dport 465 -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

-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 7025 -j ACCEPT

2.修改Networkmanager,让其不管理电脑上dns,将管理dns的权力给予/etc/resolv.conf

echo ‘nds=none’ >> /etc/NetworkManager/NetworkManager.conf
echo "nameserver 127.0.0.1" >> /etc/resolv.conf

3. su – zimbra

CentOS 7.0安装Zimbra 8.6邮件服务器的更多相关文章

  1. CentOS 7.0安装配置Vsftp服务器

    一.配置防火墙,开启FTP服务器需要的端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop fi ...

  2. CentOS 7.0安装配置LAMP服务器(Apache+PHP+MariaDB)

    CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop firewalld.service #停止fir ...

  3. CentOS 7.0安装

    CentOS 7.0安装 本次通过虚拟机的方法安装CentOS 7.0操作系统,开启虚拟机后会出现以下界面 1.选择第一项,Install CentOS 7 (安装CentOS 7),进入下面的界面 ...

  4. CentOS 7.0安装配置Vsftp服务器步骤详解

    安装Vsftp讲过最多的就是在centos6.x版本中了,这里小编看到有朋友写了一篇非常不错的CentOS 7.0安装配置Vsftp服务器教程,下面整理分享给各位. 一.配置防火墙,开启FTP服务器需 ...

  5. CentOS 7.0 安装配置LAMP服务器方法(Apache+PHP+MariaDB)(转)

    转自:http://www.jb51.net/os/188488.html 作者:佚名 字体:[增加 减小] 来源:osyunwei  准备篇: CentOS 7.0系统安装配置图解教程 http:/ ...

  6. 【转发】【linux】【ftp】CentOS 7.0安装配置Vsftp服务器

    adduser -d /var/www/android -g ftp -s /sbin/nologin ftp2 一.配置防火墙,开启FTP服务器需要的端口 CentOS 7.0默认使用的是firew ...

  7. CentOS 7.0 安装 ZCS 8.6.0

    简介 Zimbra的核心产品是Zimbra协作套件(Zimbra Collaboration Suite,简称ZCS).除了它的核心功能是电子邮件和日程安排服务器,当然还包括许多其它的功能,就象是下一 ...

  8. Centos 7.0 安装Mono 3.4 和 Jexus 5.6

    2013-07-26 写过一篇<CentOS 6.3下 安装 Mono 3.2 和Jexus 5.4>,CentOS 7在CentOS 6的基础上有很大的调整,本文是这篇文章的更新,主要介 ...

  9. asp.net core 简单部署之FTP配置(CentOS 7.0安装配置Vsftp服务器)

    配置过程原文地址:http://www.osyunwei.com/archives/9006.html 坑和结果 正确的跟着这个内容走,是靠谱的. 我自己给自己踩了个坑,请参照文章的朋友注意第七条:七 ...

随机推荐

  1. activitymq 集群构建

    测试zk是否正常 [root@node2 bin]# cd /zk/1/zookeeper-3.4.10/bin/ [root@node2 bin]# ./zkCli.sh -server 10.50 ...

  2. matlab 随笔

    <<matlab高级编程技巧与应用:45个案例分析>> 一. 重新认识向量化编程 1.向量化编程与循环的比较 2.预分配内存更好 3.matlab中是列优先 4.归一化 数据归 ...

  3. 区间DP || HDU 6249 Alice’s Stamps

    题意:标号为1-n的n种邮票,m个邮票集,每个集里有标号从Li到Ri的邮票,要从中选K个邮票集,使这K个邮票集能覆盖最多种的邮票,问最多能覆盖多少种邮票 思路:区间DP (我:??? f[i][j]表 ...

  4. 树状数组 || POJ 2352 Stars

    Astronomers often examine star maps where stars are represented by points on a plane and each star h ...

  5. LinkedHashMap/HashMap(数҉据҉缓҉存҉准҉备҉)

    顾名思义LinkedHashMap是比HashMap多了一个链表的结构.与HashMap相比LinkedHashMap维护的是一个具有双重链表的HashMap,LinkedHashMap支持2中排序一 ...

  6. MySQL InnoDB配置统计信息

    MySQL InnoDB配置统计信息 1. 配置持久化(Persistent)统计信息参数 1.1 配置自动触发更新统计信息参数 1.2 配置每张表的统计参数 1.3 配置InnoDB优化器统计信息的 ...

  7. Week06-继承、多态、抽象类与接口

    Week06-继承.多态.抽象类与接口 1. 本周学习总结 1.1 写出你认为本周学习中比较重要的知识点关键词 关键字:接口,Comparable,interface关键字,Comparator,继承 ...

  8. 深入理解JavaScript的设计模式

    使用适当的设计模式可以帮助你编写更好.更易于理解的代码.这样的代码也更容易维护.但是,重要的是不要过度使用它们.在使用设计模式之前,你应该仔细考虑你的问题是否符合设计模式. 当你开始一个新的项目时,你 ...

  9. tornado框架基础01-路由简介

    tornado 小而精 Django 大而全 Web框架 Tornado是一个由Python开发的Web框架 Web服务 利用Tornado,可以快速搭建和一个高性能的Web服务 非阻塞 Tornad ...

  10. 【练习】reserving.kr 之imageprc write up

    补充:c++ builder 与 windows  API经典范例 #include <vcl.h> #pragma hdrstop #include "Unit1.h" ...