您的位置:首页 > 其它

Ubunt Server 14.04 安装 Zimbra 邮件服务器

2017-06-21 10:41 232 查看
我的Ubuntu Server是安装在虚拟机上的,安装系统服务时,只选择SSH服务,等待系统安装完成。

一、首先配置网络环境,保证Ubuntu Server能够正常上网。

1. 设置静态IP地址 vi /etc/network/interfaces

点我试试

2. 修改hosts,vi /etc/hosts

192.168.10.98   mail.mailman.com    mail
// 我的Ubuntu主机名是mail


二、 安装配置bind

1. 安装bind9

apt-get install bind9
如果提示没有包,就要更新Ubuntu的安装源
apt-get update
apt-get upgrade


2. 添加zone:

vi /etc/bind/named.conf.local



3. 根据
named.conf.local
中的路径创建
db.mymails.com


vi /etc/bind/db.mailman.com



4. 设置DNS

vi /etc/resolv.conf,增加



【注意】

需要在/etc/network/interfaces同时添加一行

nameserver 192.168.10.98


如果没有,系统重启后,resolv.conf会被重写,导致设置无效。

5. 启动bind9服务

service bind9 restart


注意:配置文件中行首是用Tab键分隔,不是用空格!

我配置好后,启动bind服务报错[fail],

后来用
named -g
检查,提示
unkonwn option forwardrs


重新修改
named.conf.options
文件,将
8.8.8.8
前面的空格改为Tab后重新启动bind9服务正常。

6. 测试

host mail.mailman.com


四、下载Zimbra的安装包

两种方式:

1. 在windows平台,点我下载 选择对应的版本(开源版本),然后FileZilla传给Ubuntu

2. 在Ubuntu 的命令行:

wget https://files.zimbra.com/downloads/8.7.11_GA/zcs-8.7.11_GA_1854.UBUNTU14_64.20170531151956.tgz


五、安装Zimbra

1. 安装一些必备的Zimbra依赖库(如果不安装依赖库,在后面install时也会被提示中止安装)

apt-get install sudo libgmp3c2 libpcre3 libgmp3-dev sysstat libexpat1  wget netcat-openbsd pax sqlite3

apt-get remove sendmail sendmail-bin


如果提示
Unable to locate package libgmp3c2
,单独下载安装:

wget http://th.archive.ubuntu.com/ubuntu/pool/universe/g/gmp4/libgmp3c2_4.3.2+dfsg-2ubuntu1_amd64.deb 
dpkg -i libgmp3c2_4.3.2+dfsg-2ubuntu1_amd64.deb


2. 将 .tgz 压缩包复制到你希望的文件目录下,tar解压,cd进入安装目录

tar xzvf zcs*
cd zcs*


3. 安装

./install.sh


Do you agree with the terms of the software license agreement?
–输入
Y


Use Zimbra's package repository [Y]
– 一开始输入
Y
不能下载安装包,后来输入
N
成功了

Select the packages to install
– 全部输入
Y


The system will be modified. Continue?
– 输入
Y


开始
Downloading packages
,进入漫长的等待……

如果你的网速不够快,你会以为系统挂了……

It is suggested that the hostname be resolvable via DNS
Change hostname [Yes]


根据提示实际情况确认,我这里输入
no


It is suggested that the domain name an MX record configured in DNS
Change domain name? [Yes]


根据提示实际情况确认,我这里输入
yes
改成
mailman.com


Checking for port conflicts
Port conflict detected: 53 (zimbra-dnscache)
Port conflict detected: 53 (zimbra-dnscache)
Port conflict detected: 53 (zimbra-dnscache)
port conflict detected! Press Enter/Return key to continue


意思是端口冲突。解决方法:

再开一个远程登录关闭postfix

/etc/init.d/postfix stop


我这里直接回车跳过



输入
7
选择
zimbra-store


设置
Admin Password
后输入
r


重新进入
Main menu
,提示
apply config
,输入
a




等待……

Notify Zimbra of your installation? [Yes]
–输入
NO


Configuration complete - press return to exit
回车

reboot
重启系统

在浏览器输入
https://192.168.10.98


Zimbra邮件服务器,相当的吃内存
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubuntu zimbra