vim /etc/named.conf添加下面的配置:zone "zimbra.com" IN { type master; file "zimbra.com"; allow-update { none; };};zone "1.168.192.in-addr.arpa" IN { type master; file "192.168.1.arpa"; allow-update { none; };};
2.配置区域配置文件
# vim /var/named/zimbra.com$TTL 1D@ IN SOA @ rname.invalid. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimumNS ns.zimbra.com.MX 10 mail.zimbra.com.ns A 192.168.1.109mail A 192.168.1.109# vim /var/named/192.168.1.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.
# tar -zxvf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110# mv zcs-8.6.0_GA_1153.RHEL7_64.20141215151110 zimbra
3.运行脚本开始安装zimbra
# cd zimbra# ./install.sh --platform-overrideOperations logged to /tmp/install.log.2744Checking for existing installation... ... ...Do you agree with the terms of the software license agreement? [N] y ... ...Install zimbra-ldap [Y]Install zimbra-logger [Y]Install zimbra-mta [Y]Install zimbra-dnscache [Y] nInstall zimbra-snmp [Y]Install zimbra-store [Y]Install zimbra-apache [Y]Install zimbra-spell [Y]Install zimbra-memcached [Y]Install zimbra-proxy [Y] ... ...The system will be modified. Continue? [N] y ... ...DNS ERROR resolving MX for mail.zimbra.comIt is suggested that the domain name have an MX record configured in DNSChange domain name? [Yes]Create domain: [mail.zimbra.com] zimbra.comMX: mail.zimbra.com (192.168.1.109)Interface: 127.0.0.1Interface: ::1Interface: 192.168.1.109done.Checking for port conflictsMain menu 1) Common Configuration: 2) zimbra-ldap: Enabled 3) zimbra-logger: Enabled 4) zimbra-mta: Enabled 5) zimbra-snmp: Enabled 6) zimbra-store: Enabled +Create Admin User: yes +Admin user to create: admin@zimbra.com ******* +Admin Password UNSET +Anti-virus quarantine user: virus-quarantine.vhwa2pqsa7@zimbra.com ... ...Address unconfigured (**) items (? - help) 6Store configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@zimbra.com ** 4) Admin Password UNSET ... ... Select, or 'r' for previous menu [r] 4Password for admin@zimbra.com (min 6 characters): [5okG5xTdX] 123456Store configuration ... Select, or 'r' for previous menu [r] r ... ...*** CONFIGURATION COMPLETE - press 'a' to applySelect from menu, or press 'a' to apply config (? - help) aSave configuration data to a file? [Yes]Save config in file: [/opt/zimbra/config.11982]Saving config in /opt/zimbra/config.11982...done.The system will be modified - continue? [No] yes ... ...Notify Zimbra of your installation? [Yes] noNotification skippedSetting up zimbra crontab...done.Moving /tmp/zmsetup04082016-205457.log to /opt/zimbra/logConfiguration complete - press return to exit
4.启动zimbra并查看状态
# su - zimbra //切换到zimbra用户# zmcontrol start //启动zimbra# zmcontrol status //查看启动状态# zmcontrol stop //停止zimbra