zimbra的安装

环境:centos:7.4

zimbra版本:8.6.0

IP地址:192.168.58.130

更改主机名:mail.zimbra.com

写入hosts文件:192.168.58.130 mail.zimbra.com

1.关闭selinux

sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux

  1. 挂载镜像

 mount /dev/cdrom /mnt/

  1. 下载iptable并重启

yum -y install iptables-services.x86_64

   iptables -F

   iptables -X

   iptables -Z

   service iptables save

   reboot

  1. 设置网络yum源;下载wget

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

  1.  升级yum所有包的版本和内核(需要等待10分钟左右)

yum -y update

  1. 安装zimbra所需要的包

yum -y install perl perl-core nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite nc

  1. 永久关闭SMTP服务

[root@mail ~]# systemctl stop postfix.service

[root@mail ~]# systemctl disable  postfix.service

Removed symlink /etc/systemd/system/multi-user.target.wants/postfix.service.

[root@mail ~]# echo $?

0

  1. 安装bind服务

yum -y install bind bind-utils

  1. 修改named.conf文件

[root@mail ~]# vi /etc/named.conf

zone "zimbra.com" IN {

        type master;

        file "zimbra.com";

        allow-update { none; };

};

zone "58.168.192.in-addr.arpa" IN {

        type master;

        file "192.168.58.arpa";

        allow-update { none; };

};

  1. 配置区域配置文件

[root@mail ~]# vim /var/named/zimbra.com

$TTL 1D

@ IN SOA @ rname.invalid. (

0 ; serial

1D ; refresh

1H ; retry

1W ; expire

3H ) ; minimum

NS ns.zimbra.com.

MX 10 mail.zimbra.com.

ns A 192.168.58.130

mail A 192.168.58.130

[root@mail ~]# vim /var/named/192.168.58.arpa

$TTL 1D

@       IN SOA  @ rname.invalid. (

                                        0       ; serial

                                        1D      ; refresh

                                        1H      ; retry

                                        1W      ; expire

                                        3H )    ; minimum

        NS      ns.zimbra.com.

109     PTR     ns.zimbra.com.

109     PTR     mail.zimbra.com.

  1. 重启named.service

systemctl restart named.service

  1. 使用本地dns服务器

echo “nameserver 127.0.0.1” >> /etc/resolv.conf

  1. 下载zimbra

wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

[root@mail ~]# ls

anaconda-ks.cfg  zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

tar -zxvf  zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

改名

[root@mail ~]# mv zcs-8.6.0_GA_1153.RHEL7_64.20141215151110 zimbra

  1. 运行脚本安装zimbra

  [root@mail ~]# cd zimbra/

[root@mail zimbra]# ./install.sh --platform-override

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

Would you like to delete /opt/zimbra before installing? [N] n  出现这个不要选择yes,如果选择yes结果或许安装失败,而且也没有安装包,需要再次解压

install的都选择y 除了dnscache选择no

The system will be modified.  Continue? [N] y

Change domain name? [Yes]     回车

Create domain: [mail.zimbra.com] zimbra.com

Re-Enter domain name? [Yes] no

Select, or 'r' for previous menu [r] 4   密码

Password for admin@zimbra.com (min 6 characters): [7o4Z9G4o4C] 123456

Store configuration

   1) Status:                                  Enabled

   2) Create Admin User:                       yes

   3) Admin user to create:                    admin@zimbra.com

   4) Admin Password                           set

   5) Anti-virus quarantine user:              virus-quarantine.a7vixjwtu@zimbra.com

   6) Enable automated spam training:          yes

   7) Spam training user:                      spam.__gxwxvrh@zimbra.com

   8) Non-spam(Ham) training user:             ham.4qrgx437k@zimbra.com

   9) SMTP host:                               mail.zimbra.com

  10) Web server HTTP port:                    8080

  11) Web server HTTPS port:                   8443

  12) Web server mode:                         https

  13) IMAP server port:                        7143

  14) IMAP server SSL port:                    7993

  15) POP server port:                         7110

  16) POP server SSL port:                     7995

  17) Use spell check server:                  yes

  18) Spell server URL:                        http://mail.zimbra.com:7780/aspell.php

  19) Enable version update checks:            TRUE

  20) Enable version update notifications:     TRUE

  21) Version update notification email:       admin@zimbra.com

  22) Version update source email:             admin@zimbra.com

  23) Install mailstore (service webapp):      yes

  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] r  返回上一步

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

*** CONFIGURATION COMPLETE - press 'a' to apply

Select from menu, or press 'a' to apply config (? - help) a   保存

Save configuration data to a file? [Yes] yes

Save config in file: [/opt/zimbra/config.52371]

Saving config in /opt/zimbra/config.52371...done.

The system will be modified - continue? [No] yes

Operations logged to /tmp/zmsetup09042023-163312.l

Notify Zimbra of your installation? [Yes] no   到这里就结束

  1. 启动zimbra并查看状态

[root@mail ~]# su - zimbra

上一次登录:一 9月  4 16:51:43 CST 2023pts/0 上

[zimbra@mail ~]$ zmcontrol start   启动

[zimbra@mail ~]$ zmcontrol status   查看状态

[zimbra@mail ~]$ zmcontrol stop    关闭

  1. 创建用户

[root@mail ~]# su zimbra  进入zimbra

[zimbra@mail root]$ zmprov createAccount zm@zimbra.com admin123 displayName 'zm'    创建名为zm的用户

17292018-1578-4519-a5f8-6ef2a9608531    

  1. 开启smtp认证

[zimbra@mailroot]$zmprov modifyServer mail.zimbra.com zimbraMtaTlsAuthOnly FALSE

[zimbra@mail root]$ zmcontrol restart  重启zimbra

  1. 打开浏览器访问http://192.168.58.131

账号:zm@zimbra.com   密码:123456

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值