zimbra搭建文档 centos7

2022-10-04 14:56:12 浏览数 (1)

安装前准备

  • 将主机名设置为:mail.cd-hst.com
代码语言:javascript复制
hostnamectl set-hostname mail.cd-hst.com
  • DNS服务器设置:
代码语言:javascript复制
cat /etc/resolv.conf
nameserver 192.168.139.215
nameserver 192.168.139.216
yum update -y
  • 安装所需的依赖包和库文件
代码语言:javascript复制
yum install perl perl-core ntpl nmap sudo libidn gmp libaio libstdc   unzip sysstat sqlite nc -y
  • 下载安装解压zimbra
代码语言:javascript复制
wget https://files.zimbra.com/downloads/8.8.10_GA/zcs 8.8.10_GA_3039.RHEL7_64.20180928094617.tgz
  • 解压
代码语言:javascript复制
tar -zxvf zcs-8.8.10_GA_3039.RHEL7_64.20180928094617.tgz
  • 移动到zimbra目录
代码语言:javascript复制
mv zcs-8.8.10_GA_3039.RHEL7_64.20180928094617 zimbra
开始安装

cd /Zimbra

运行目录下的install.sh脚本

./install.sh --platform-override

然后是漫长的等待后输入y同意安装:

代码语言:javascript复制
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-16
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
#输入Y安装zimbra所需组件
Select the packages to install
Install zimbra-ldap [Y]  #需要安装ldap服务从系统上连接我们的ldap
Install zimbra-logger [Y] Y
Install zimbra-mta [Y] Y
Install zimbra-dnscache [Y] N  #这里我们用自己的DNS选NO
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-dnscache
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
zimbra-memcached
zimbra-proxy
The system will be modified.  Continue? [N] Y    #输入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

> 安装完成后有如下提示

代码语言:javascript复制
Checking for port conflicts
Main menu
1) Common Configuration:
2) zimbra-ldap:                             Enabled
3) zimbra-logger:                           Enabled
4) zimbra-mta:                              Enabled
5) zimbra-dnscache:                         Enabled
6) zimbra-snmp:                             Enabled
7) zimbra-store:                            Enabled Create Admin User:                    yes Admin user to create:                 admin@cd-hst.com*******  Admin Password                        UNSET Anti-virus quarantine user:           virus-quarantine.92q5ww2xk@hongxue.com
    Enable automated spam training:       yes Spam training user:                   spam.4jzqlif9fd@hongxue.com Non-spam(Ham) training user:          ham.bhxkaz_w@hongxue.com SMTP host:                            cd-hst.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://hongxue.com:7780/aspell.php
    Enable version update checks:         TRUE Enable version update notifications:  TRUE Version update notification email:    admin@cd-hst.com Version update source email:          admin@cd-hst.com Install mailstore (service webapp):   yes Install UI (zimbra,zimbraAdmin webapps): yes
8) zimbra-spell:                            Enabled
9) zimbra-proxy:                            Enabled
10) Default Class of Service Configuration:
    s) Save config to file
    x) Expand menu
    q) Quit
Store configuration

1) Status:                                  Enabled
2) Create Admin User:                       yes
3) Admin user to create:                    admin@cd-hst.com** 4) Admin Password                           UNSET
4) Anti-virus quarantine user:              virus-quarantine.92q5ww2xk@hongxue.com
5) Enable automated spam training:          yes
6) Spam training user:                      spam.4jzqlif9fd@hongxue.com
7) Non-spam(Ham) training user:             ham.bhxkaz_w@hongxue.com
8) SMTP host:                               cd-hst.com
9) Web server HTTP port:                    8080
10) Web server HTTPS port:                   8443
11) Web server mode:                         https
12) IMAP server port:                        7143
13) IMAP server SSL port:                    7993
14) POP server port:                         7110
15) POP server SSL port:                     7995
16) Use spell check server:                  yes
17) Spell server URL:                        http://hongxue.com:7780/aspell.php
18) Enable version update checks:            TRUE
19) Enable version update notifications:     TRUE
20) Version update notification email:       admin@cd-hst.com
21) Version update source email:             admin@cd-hst.com
22) Install mailstore (service webapp):      yes
23) Install UI (zimbra,zimbraAdmin webapps): yes
  • 选择4,设置管理员密码
  • 按r 返回上一级菜单
代码语言:javascript复制
Main menu
1) Common Configuration:
2) zimbra-ldap:                             Enabled
3) zimbra-logger:                           Enabled
4) zimbra-mta:                              Enabled
5) zimbra-dnscache:                         Enabled
6) zimbra-snmp:                             Enabled
7) zimbra-store:                            Enabled
8) zimbra-spell:                            Enabled
9) zimbra-proxy:                            Enabled
10) Default Class of Service Configuration:
    s) Save config to file
    x) Expand menu
    q) Quit
  • 按a以完成系统配置,并且yes。之后就是超长的等待安装
  • 最后会有个通知选择no
代码语言:javascript复制
Notify Zimbra of your installation? [Yes] no
Notification skipped
Setting up zimbra crontab...done.
Moving /tmp/zmsetup02252016-105150.log to /opt/zimbra/log
Configuration complete - press return to exit
查看服务是否正常运行

su – zimbra

代码语言:javascript复制
zmcontrol status
Host mail.cd-hst.com
amavis                  Running
antispam                Running
antivirus               Running
imapd                   Running
ldap                    Running
logger                  Running
mailbox                 Running
memcached               Running
mta                     Running
opendkim                Running
proxy                   Running
service webapp          Running
snmp                    Running
spell                   Running
stats                   Running
zimbra webapp           Running
zimbraAdmin webapp      Running
zimlet webapp           Running
zmconfigd               Running
  • 本地测试: 网页打开mail.cd-hst.com 附件:zimbra管理员手册-(tips:花了6块大洋下载的、o(╥﹏╥)o)

0 人点赞