辉克's Blog

创造机会的人是勇者;等待机会的人是愚者

Zimbra8 安装说明

一、准备

环境:

操作系统:Ubuntu 12.04_x64 LTS

Zimbra版本: zcs-8.0.0_GA_5434.UBUNTU12_64.20120907144631

域名:mail.huike007.cn

二、安装

1.安装配置dns:

由于zimbra很依赖dns,特别是ldap,所以要预先配置好dns。

root@mail:~#apt-get install bind9

root@mail:~#vi /etc/bind/named.conf.local

//

// Do any local configuration here

// Consider adding the 1918 zones here, if they are not used in your

// organization

//include “/etc/bind/zones.rfc1918″;

zone “huike007.cn” { #添加huike007.cn域

type master;

file “/etc/bind/db.huike007.cn”;

};

添加区域数据文件:

root@mail:~# cat db.huike007.cn

; BIND data file for local loopback interface

;

$TTL 604800

@ IN SOA huike007.cn. admin.huike007.cn. (

2 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS huike007.cn.

@ IN A 192.168.100.10

mail IN A 192.168.100.10

@ IN MX 10 mail.huike007.cn.

修改dns服务器地址:

root@mail:~# cat /etc/resolv.conf

# Generated by NetworkManager

nameserver 192.168.100.10

测试解析:

root@mail:~#nslookup
> server 192.168.100.10
Default server: 192.168.100.10
Address: 192.168.100.10#53
> mail.huike007.cn
Server: 192.168.100.10
Address: 192.168.100.10#53

Name: mail.huike007.cn
Address: 192.168.100.10
> set type=ns
> huike007.cn
Server: 192.168.100.10
Address: 192.168.100.10#53

huike007.cn nameserver = huike007.cn.
> set type=mx
> huike007.cn
Server: 192.168.100.10
Address: 192.168.100.10#53

huike007.cn mail exchanger = 10 mail.huike007.cn.

 

2.安装依赖包:

root@mail:~#apt-get install sqlite3 sysstat libperl5.14

3.安装:

下载解压

下载连接:www.zimbra.com/downloads/zca-downloads.html

root@mail:~#tar xzvf /opt/zcs-8.0.0_GA_5434.UBUNTU12_64.20120907144631.tgz

root@mail:~#cd /opt/zcs-8.0.0_GA_5434.UBUNTU12_64.20120907144631

root@mail:~#./install.sh

Operations logged to /tmp/install.log.16922
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-convertd…NOT FOUND
zimbra-memcached…NOT FOUND
zimbra-proxy…NOT FOUND
zimbra-archiving…NOT FOUND
zimbra-cluster…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.1.html

Do you agree with the terms of the software license agreement? [N] y

Oracle Binary Code License Agreement for the Java SE Platform Products

……

Do you agree with the terms of the software license agreement? [N] y

Checking for prerequisites…
FOUND: NPTL
FOUND: netcat-openbsd-1.89-4ubuntu1
FOUND: sudo-1.8.3p1-1ubuntu3
FOUND: libidn11-1.23-2
FOUND: libpcre3-8.12-4
FOUND: libgmp3c2-2:4.3.2+dfsg-2ubuntu1
FOUND: libexpat1-2.0.1-7.2ubuntu1
FOUND: libstdc++6-4.6.3-1ubuntu5
FOUND: libperl5.14-5.14.2-6ubuntu2.1

Checking for suggested prerequisites…
FOUND: perl-5.14.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-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-snmp [Y] y

Install zimbra-store [Y] y

Install zimbra-apache [Y] y

Install zimbra-spell [Y] y

Install zimbra-memcached [N] y

Install zimbra-proxy [N] y
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

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.0.0.GA.5434.UBUNTU12.64_amd64.deb…done
zimbra-ldap……zimbra-ldap_8.0.0.GA.5434.UBUNTU12.64_amd64.deb…done
zimbra-logger……zimbra-logger_8.0.0.GA.5434.UBUNTU12.64_amd64.deb…done
zimbra-mta……zimbra-mta_8.0.0.GA.5434.UBUNTU12.64_amd64.deb…done
zimbra-snmp……zimbra-snmp_8.0.0.GA.5434.UBUNTU12.64_amd64.deb…done
zimbra-store……zimbra-store_8.0.0.GA.5434.UBUNTU12.64_amd64.deb…done
zimbra-apache……zimbra-apache_8.0.0.GA.5434.UBUNTU12.64_amd64.deb…done
zimbra-spell……zimbra-spell_8.0.0.GA.5434.UBUNTU12.64_amd64.deb…done
Operations logged to /tmp/zmsetup.10012012-172717.log
Installing LDAP configuration database…done.
Setting defaults…

DNS ERROR resolving MX for mail.huike007.cn
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes]
Create domain: [mail.huike007.cn] huike007.cn #注意,这里一定要改成这样,不要加mail.要不然等会你会哭的。
MX: mail.huike007.cn (192.168.100.10)

Interface: 192.168.100.10
Interface: 127.0.0.1
Interface: ::1
done.
Checking for port conflicts

Main menu

1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@huike007.cn
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-quarantine.jvmzzudbz@huike007.cn
+Enable automated spam training: yes
+Spam training user: spam.7yf6fkhq@huike007.cn
+Non-spam(Ham) training user: ham.dsc_vxhfxm@huike007.cn
+SMTP host: mail.huike007.cn
+Web server HTTP port: 80
+Web server HTTPS port: 443
+Web server mode: https
+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.huike007.cn:7780/aspell.php
+Configure for use with mail proxy: FALSE
+Configure for use with web proxy: FALSE
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: admin@huike007.cn
+Version update source email: admin@huike007.cn

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 #输入有星号的那行的数字,有星号的需要去设置。

Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@huike007.cn
** 4) Admin Password UNSET
5) Anti-virus quarantine user: virus-quarantine.jvmzzudbz@huike007.cn
6) Enable automated spam training: yes
7) Spam training user: spam.7yf6fkhq@huike007.cn
8) Non-spam(Ham) training user: ham.dsc_vxhfxm@huike007.cn
9) SMTP host: mail.huike007.cn
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: https
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://mail.huike007.cn:7780/aspell.php
19) Configure for use with mail proxy: FALSE
20) Configure for use with web proxy: FALSE
21) Enable version update checks: TRUE
22) Enable version update notifications: TRUE
23) Version update notification email: admin@huike007.cn
24) Version update source email: admin@huike007.cn

Select, or ‘r’ for previous menu [r] 4 #提示要修改admin密码

Password for admin@huike007.cn (min 6 characters): [A3OSTmUqrt] darren #输入admin的密码

Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@huike007.cn
4) Admin Password set
5) Anti-virus quarantine user: virus-quarantine.jvmzzudbz@huike007.cn
6) Enable automated spam training: yes
7) Spam training user: spam.7yf6fkhq@huike007.cn
8) Non-spam(Ham) training user: ham.dsc_vxhfxm@huike007.cn
9) SMTP host: mail.huike007.cn
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: https
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://mail.huike007.cn:7780/aspell.php
19) Configure for use with mail proxy: FALSE
20) Configure for use with web proxy: FALSE
21) Enable version update checks: TRUE
22) Enable version update notifications: TRUE
23) Version update notification email: admin@huike007.cn
24) Version update source email: admin@huike007.cn

Select, or ‘r’ for previous menu [r] r

Main menu

1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
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

*** CONFIGURATION COMPLETE – press ‘a’ to apply
Select from menu, or press ‘a’ to apply config (? – help) a #输入a,应用并安装
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.23611]
Saving config in /opt/zimbra/config.23611…done.
The system will be modified – continue? [No] y
Operations logged to /tmp/zmsetup.10012012-172717.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.
Installing mailboxd SSL certificates…done.
Installing MTA SSL certificates…done.
Installing LDAP SSL certificate…done.
Initializing ldap…done.
Setting replication password…done.
Setting Postfix password…done.
Setting amavis password…done.
Setting nginx password…done.
Creating server entry for mail.huike007.cn…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.huike007.cn…done.
Adding mail.huike007.cn to zimbraMailHostPool in default COS…done.
Setting zimbraFeatureTasksEnabled=TRUE…done.
Setting zimbraFeatureBriefcasesEnabled=FALSE…done.
Setting MTA auth host…done.
Setting TimeZone Preference…done.
Initializing mta config…done.
Setting services on mail.huike007.cn…done.
Creating domain huike007.cn…done.
Setting default domain name…done.
Creating domain huike007.cn…already exists.
Creating admin account admin@huike007.cn…done.
Creating root alias…done.
Creating postmaster alias…done.
Creating user spam.7yf6fkhq@huike007.cn…done.
Creating user ham.dsc_vxhfxm@huike007.cn…done.
Creating user virus-quarantine.jvmzzudbz@huike007.cn…done.
Setting spam training and Anti-virus quarantine accounts…done.
Initializing store sql database…done.
Setting zimbraSmtpHostname for mail.huike007.cn…done.
Configuring SNMP…done.
Setting up syslog.conf…done.
Starting servers…done.
Installing common zimlets…
com_zimbra_phone…done.
com_zimbra_ymemoticons…done.
com_zimbra_url…done.
com_zimbra_date…done.
com_zimbra_tooltip…done.
com_zimbra_attachcontacts…done.
com_zimbra_bulkprovision…done.
com_zimbra_clientuploader…done.
com_zimbra_adminversioncheck…done.
com_zimbra_cert_manager…done.
com_zimbra_proxy_config…done.
com_zimbra_webex…done.
com_zimbra_srchhighlighter…done.
com_zimbra_email…done.
com_zimbra_attachmail…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.0.0_GA_5434_UBUNTU12_64)
The ADMIN EMAIL ADDRESS created (admin@huike007.cn)

Notify Zimbra of your installation? [Yes]
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.0.0_GA_5434_UBUNTU12_64&MAIL=admin@huike007.cn

Notification complete

Setting up zimbra crontab…done.

Moving /tmp/zmsetup.10012012-172717.log to /opt/zimbra/log

Configuration complete – press return to exit

安装完成,切换到zimbra用户执行zmcontrol命令查看状态
root@mail:/opt/zcs-8.0.0_GA_5434.UBUNTU12_64.20120907144631#su – zimbra
zimbra@mail:~$zmcontrol status
Host mail.huike007.cn
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
stats Running
zmconfigd Running

三、预览

现在,你可以登录:

https://mail.huike007.cn用户登录界面

https://mail.huike007.cn:7071 管理控制台界面

发表评论

电子邮件地址不会被公开。 必填项已用*标注