centos7如何部署mail-zimbra

如何快速的部署企业及邮件服务? zimbra

zimbra

env

  • centos7.x 2c4g
  • zimbra //zcs8.6

1.pre-request

  • hosts
  • selinux
  • firewalld
  • ntp

#hosts

hostnamectl set-hostname mail.local.com

/etc/hosts
172.24.100.5 mail.local.com

#stop mail

systemctl stop postfix && systemctl disable postfix
systemctl stop sendmail && systemctl disable sendmail

#ntp

*/20 * * * * root /usr/sbin/ntpdate ntp.aliyun.com && /usr/sbin/hwclock -w &>/dev/null

2.download

3.install

#request pkg

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

#download

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

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

#install

[root@mail zcs-8.6.0_GA_1153.RHEL7_64.20141215151110]# ./install.sh --help
./install.sh [-r <dir> -l <file> -a <file> -u -s -c type -x -h] [defaultsfile]

-h|--help               Usage
-l|--license <file>     License file to install.
-a|--activation <file>  License activation file to install. [Upgrades only]
-r|--restore <dir>      Restore contents of <dir> to localconfig
-s|--softwareonly       Software only installation.
-u|--uninstall          Uninstall ZCS
-x|--skipspacecheck     Skip filesystem capacity checks.
--beta-support          Allows installer to upgrade Network Edition Betas.
--platform-override     Allows installer to continue on an unknown OS.
--skip-activation-check Allows installer to continue if license activation checks fail.
--skip-upgrade-check    Allows installer to skip upgrade validation checks.
[defaultsfile]          File containing default install values.

./install.sh --platform-override
y ...

dns/mail mx  //no

4.testing

su - zimbra

//状态检查
[zimbra@mail ~]$ zmcontrol status 
Host mail.local.com
    amavis                  Running
    antispam                Running
    antivirus               Running
    dnscache                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

//控制脚本
/opt/zimbra/bin/zmcontrol [-v -h -H <host>] command [args]

    -v:	display version
    -h:	print usage statement
    -H:	Host name (localhost)

    Command in:
        restart                           Restart services
        shutdown                             Stop services
        start                               Start services
        startup                             Start services
        status                      Display service status
        stop                                 Stop services

//访问相关URL
https://mail.local.com:7071/zimbraAdmin/  //本地hosts

https://mail.local.com:8443/  //mail
https://mail.local.com    //nginx 转发
admin@mail.local.com
1GJq6wuG

reference