zimbra攻防笔记-邮件服务器搭建

发布于 2023-02-11  1215 次阅读


Zimbra是什么?

Zimbra是Synacor,Inc.开发的开源电子邮件、日历和协作软件套件。它附带一个shell脚本,可以自动在Linux服务器上安装和配置所有必要的邮件服务器组件,从而消除手动安装和配置。使用Zimbra,您可以轻松地在基于web的管理面板中创建无限邮箱和无限邮件域。

搭建zimbra

首先准备个ubantu 14.04服务器
安装对应环境

apt-get install libgmp10 libperl5.18 unzip pax sysstat sqlite3 dnsmasq wget

1.配置hostname

sudo hostnamectl set-hostname mail.test.com

2.配置dns

sudo vim /etc/hosts

3.下载安装zimbra

先配置下dnsmasq

vi /etc/dnsmasq.conf

server=192.168.161.128
domain=test.com
mx-host=test.com, mail.test.com, 5
mx-host=mail.test.com, mail.test.com, 5
listen-address=127.0.0.1

任意地方加入这四行

重启服务器

使用以下命令下载8.6版本zimbra

wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz

接着解压进入文件夹,执行./install.sh安装
如果依赖全部安装边直接进入安装程序
我这里缺少了依赖报错了

直接apt install 安装缺失的依赖
然后重新执行安装

root@ubuntu:/home/test/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116# ./install.sh
Operations logged to /tmp/install.log.6972
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: netcat-openbsd-1.105-7ubuntu1
     FOUND: sudo-1.8.9p5-1ubuntu1.4
     FOUND: libidn11-1.28-1ubuntu2.2
     FOUND: libpcre3-1:8.31-2ubuntu2.3
     FOUND: libgmp10-2:5.1.3+dfsg-1ubuntu1
     FOUND: libexpat1-2.1.0-4ubuntu1.4
     FOUND: libstdc++6-4.8.4-2ubuntu1~14.04.4
     FOUND: libperl5.18-5.18.2-2ubuntu1.7
     FOUND: libaio1-0.3.109-4
     FOUND: resolvconf-1.69ubuntu1.4
     FOUND: unzip-6.0-9ubuntu1.5

Checking for suggested prerequisites...
     FOUND: pax
     FOUND: perl-5.18.2
     FOUND: sysstat
     FOUND: sqlite3
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] N

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/security/limits.conf...done.

Finished removing Zimbra Collaboration Server.

Installing packages

    zimbra-core......zimbra-core_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done
    zimbra-ldap......zimbra-ldap_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done
    zimbra-logger......zimbra-logger_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done
    zimbra-mta......zimbra-mta_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done
    zimbra-snmp......zimbra-snmp_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done
    zimbra-store......zimbra-store_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...

基本上一路Y就可以了
zimbra-dnscache是因为安装了dnsmasq所以不用安装了
过程中会提示配置MX记录
选择No

这里设置密码
选择6

再选择4

设置完密码后返回上一层

按a应用配置

接着就开始应用配置了
期间要选择就yes

到这儿zimbra就安装完成了。
这时候访问https://mail.test.com:7071就可以看到的登录界面了

至此zimbra邮件服务器安装完成。

届ける言葉を今は育ててる
最后更新于 2023-02-11