本文介绍在Ubuntu 18.04操作系统上安装Zimbra Collaboration的方法,以下方法仅适用于单服务器安装,用于Zimbra协作的多服务器安装。支持最多50个用户的Zimbra服务器的推荐系统要求是:4vCPU或更多、8GB RAM或更多、50GB可用磁盘空间及DNS服务器。
一、安装和配置Dnsmasq 在本文中,我们将使用dnsmasq作为DNS服务器,参考在Ubuntu 18.04 LTS系统上安装和配置Dnsmasq的步骤。 设置Zimbra Domain,DNS服务器转发器和MX记录: 运行:$ sudo vim /etc/dnsmasq.conf server=8.8.8.8 listen-address=127.0.0.1 domain=example.com # Define domain mx-host=example.com,mail.example.com,0 # Set MX record for the domain, preference is 0 address=/mail.example.com/62.15.116.167 # Send example.com to 62.15.116.167 设置服务器主机名: sudo hostnamectl set-hostname mail.example.com 重启dnsmasq服务并测试: sudo systemctl restart dnsmasq Zimbra服务器的A记录: # dig A mx-01.zimbra.computingforgeeks.com ; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> A mx-01.zimbra.computingforgeeks.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40465 ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mx-01.zimbra.computingforgeeks.com. IN A ;; ANSWER SECTION: mx-01.zimbra.computingforgeeks.com. 0 IN A 62.15.116.167 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Aug 21 14:16:01 UTC 2018 ;; MSG SIZE rcvd: 68 另外,查询: # dig MX zimbra.computingforgeeks.com ; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> MX zimbra.computingforgeeks.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17175 ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;zimbra.computingforgeeks.com. IN MX ;; ANSWER SECTION: zimbra.computingforgeeks.com. 0 IN MX 10 62.15.116.167 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Feb 19 10:18:29 2019 ;; MSG SIZE rcvd: 107 现在我们同时拥有A记录和MX,让我们开始安装。
二、下载Zimbra Collaboration Open Source Edition 我们选择的版本是8.8.9,你也可以选择其它的版本,可到zimbra网站下载: wget https://files.zimbra.com/downloads/8.8.9_GA/zcs-8.8.9_GA_3019.UBUNTU16_64.20180809160254.tgz 解压文件: tar xvf zcs-8.8.9_GA_3019.UBUNTU16_64.20180809160254.tgz 切换到zcs-*目录: cd zcs*/
三、在Ubuntu 18.04 LTS上安装Zimbra Collaboration Open Source Edition Ubuntu 18.04没有Zimbra Collaboration软件包,我们将使用Ubuntu 16.04 LTS的存储库。 添加Ubuntu 16.04 Zimbra存储库,将存储库内容添加到/etc/apt/sources.list.d/zimbra.list: # cat /etc/apt/sources.list.d/zimbra.list deb [arch=amd64] https://repo.zimbra.com/apt/87 xenial zimbra deb [arch=amd64] https://repo.zimbra.com/apt/889 xenial zimbra deb-src [arch=amd64] https://repo.zimbra.com/apt/87 xenial zimbra 然后导入GPG密钥: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9BE6ED79 更新apt索引: $ sudo apt-get update Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:2 http://sfo1.mirrors.digitalocean.com/ubuntu bionic InRelease Get:3 http://sfo1.mirrors.digitalocean.com/ubuntu bionic-updates InRelease [88.7 kB] Get:4 http://sfo1.mirrors.digitalocean.com/ubuntu bionic-backports InRelease [74.6 kB] Hit:5 http://mirror.zol.co.zw/mariadb/repo/10.3/ubuntu bionic InRelease Get:6 https://repo.zimbra.com/apt/87 xenial InRelease [2506 B] Get:7 https://repo.zimbra.com/apt/87 xenial/zimbra Sources [66.8 kB] Get:8 https://repo.zimbra.com/apt/87 xenial/zimbra amd64 Packages [77.5 kB] Fetched 310 kB in 3s (117 kB/s) Reading package lists... Done 通过运行开始安装: ./install.sh --platform-override 选项--platform-override允许安装程序在未知操作系统上继续。 安装过程将开始,请选择要安装的软件包,并接受安装: ... operations logged to /tmp/install.log.xGLw1m7m Checking for existing installation... zimbra-drive...NOT FOUND zimbra-imapd...NOT FOUND zimbra-patch...NOT FOUND zimbra-license-tools...NOT FOUND zimbra-license-extension...NOT FOUND zimbra-network-store...NOT FOUND zimbra-network-modules-ng...NOT FOUND zimbra-chat...NOT FOUND zimbra-talk...NOT FOUND 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. SYNACOR, INC. ("SYNACOR") 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 this Zimbra Collaboration Suite Software: https://www.zimbra.com/license/zimbra-public-eula-2-6.html Do you agree with the terms of the software license agreement? [N] y Use Zimbra's package repository [Y] Configuring package repository Checking for installable packages Found zimbra-core (local) Found zimbra-ldap (local) Found zimbra-logger (local) Found zimbra-mta (local) Found zimbra-dnscache (local) Found zimbra-snmp (local) Found zimbra-store (local) Found zimbra-apache (local) Found zimbra-spell (local) Found zimbra-memcached (repo) Found zimbra-proxy (local) Found zimbra-drive (repo) Found zimbra-imapd (local) Found zimbra-patch (repo) Select the packages to install Install zimbra-ldap [Y] Install zimbra-logger [Y] Install zimbra-mta [Y] Install zimbra-dnscache [Y] Install zimbra-snmp [Y] Install zimbra-store [Y] Install zimbra-apache [Y] Install zimbra-spell [Y] Install zimbra-memcached [Y] Install zimbra-proxy [Y] Install zimbra-drive [Y] Install zimbra-imapd (BETA - for evaluation only) [N] Install zimbra-chat [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-dnscache zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-memcached zimbra-proxy zimbra-drive zimbra-patch zimbra-chat The system will be modified. Continue? [N] y .... Downloading packages (11): zimbra-core-components zimbra-ldap-components zimbra-mta-components zimbra-dnscache-components zimbra-snmp-components zimbra-store-components zimbra-jetty-distribution zimbra-apache-components zimbra-spell-components zimbra-memcached zimbra-proxy-components ... 等待下载包。
四、设置管理员帐户密码及访问Zimbra管理控制台 1、设置管理员帐户密码 存储配置如下图:
完成配置并申请: *** 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.22612] Saving config in /opt/zimbra/config.22612...done. The system will be modified - continue? [No] yes 安装程序脚本将开始配置Zimbra服务器,完成后,输出信息如下: 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.8.9_GA_3019_UBUNTU16_64) The ADMIN EMAIL ADDRESS created (admin@zimbra.computingforgeeks.com) Notify Zimbra of your installation? [Yes] n Notification skipped Setting up zimbra crontab...done. Moving /tmp/zmsetup.20180821-153003.log to /opt/zimbra/log Configuration complete - press return to exit 这说明配置完成了。 2、访问Zimbra管理控制台 如果你有一个活动防火墙,请使用Zimbra防火墙配置为Uimntu配置Zimbra,可以参考在Ubuntu 18.04/16.04系统上安装和使用Firewalld的方法。 使用https://ip-addres|hostname:7071访问管理界面:
然后使用前面配置的用户名admin和密码即可登录。 至此,整个安装Zimbra Collaboration过程全部完成了。
相关主题 |